/* ── CSS Variables ─────────────────────────────────── */
:root {
  --yellow: #FFDA00;
  --black: #000000;
  --navy: #192564;
  --navy-mid: #1A2D42;
  --gray-bg: #F4F5F6;
  --gray-card: #D9D9D9;
  --text: #1A1A1A;
  --white: #FFFFFF;
  --bg-servizi: #FBF6D6;
}
/* ── Base ──────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
.navbar-toggler:focus {
  box-shadow: none;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  position: relative;
  font-family: "Beiruti", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  padding-top: 93px;
}
body #hero_background {
  position: absolute;
  top: 0;
  right: -30%;
  width: auto;
  height: 100vh;
  z-index: 1021;
  opacity: 0.3;
  pointer-events: none;
}
body p a {
  color: var(--navy);
}
/* ── Navbar ────────────────────────────────────────── */
.navbar {
  padding: 0;
  background-color: transparent;
}
.navbar .navbar-brand {
  width: 170px;
  height: auto;
  padding: 0;
}
.navbar.navbar-scrolled {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
}
.navbar .nav-item {
  padding-left: 15px;
  padding-right: 15px;
}
.navbar .nav-item .nav-link {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--black);
  padding: 0;
  position: relative;
}
.navbar .nav-item .nav-link.dropdown-toggle {
  padding-right: 25px;
}
.navbar .nav-item .nav-link.dropdown-toggle::after {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  content: url(../img/arrowDown.svg);
  display: block;
  width: 14px;
  height: 8px;
  border: none;
  margin: 0;
  vertical-align: unset;
  background-color: currentColor;
  mask: url('../img/arrowDown.svg') no-repeat center;
  -webkit-mask: url('../img/arrowDown.svg') no-repeat center;
}
.navbar .nav-item .nav-link:hover {
  color: var(--yellow);
}
.navbar .nav-item .nav-link.active {
  border-bottom: 1px solid var(--yellow);
}
.navbar .nav-item .dropdown-item {
  font-size: 1.25rem;
}
.navbar .lang-flag img {
  width: 33px;
  height: auto;
}
@media (max-width: 767px) {
  .navbar .cont-lang {
    padding: 5px 15px 15px 15px;
  }
}
.btn.btn-primary,
.btn.btn-secondary {
  font-family: "Recursive", sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  border: unset;
  border-radius: 15px;
  padding: 10px 30px;
}
.btn.btn-primary {
  background-color: var(--navy);
  color: var(--white);
}
.btn.btn-primary:hover {
  background-color: var(--yellow);
  color: var(--navy);
}
.btn.btn-secondary {
  background-color: var(--yellow);
  color: var(--black);
}
.btn.btn-secondary:hover {
  background-color: var(--navy);
  color: var(--white);
}
@media (max-width: 767px) {
  .btn.btn-primary,
  .btn.btn-secondary {
    font-size: 1rem;
    padding: 5px 15px;
  }
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Recursive", sans-serif;
  font-weight: 400;
}
h1 {
  font-size: 4rem;
}
h2 {
  font-size: 4rem;
}
h3 {
  font-size: 3.5rem;
}
h4 {
  font-size: 3rem;
}
h5 {
  font-size: 2.5rem;
}
h6 {
  font-size: 2rem;
}
@media (max-width: 767px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.8rem;
  }
  h4 {
    font-size: 1.7rem;
  }
  h5 {
    font-size: 1.6rem;
  }
  h6 {
    font-size: 1.5rem;
  }
}
p,
li {
  font-family: "Beiruti", sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.5;
}
@media (max-width: 767px) {
  p,
  li {
    font-size: 1.25rem;
  }
}
p {
  margin-bottom: 0.5rem;
}
ul,
ol {
  list-style-position: inside;
}
.default {
  padding-top: 100px;
  padding-bottom: 100px;
}
.default h2 {
  font-size: 2.5rem;
}
.default h3,
.default h4,
.default h5,
.default h6 {
  font-size: 2rem;
}
.default .text p + h3,
.default h4,
.default h5,
.default h6 {
  margin-top: 1.2rem;
}
@media (max-width: 767px) {
  .default {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  .default h3,
  .default h4,
  .default h5,
  .default h6 {
    font-size: 1.8rem;
  }
}
/* ── Hero ──────────────────────────────────────────── */
#hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 50px;
  padding-bottom: 100px;
}
#hero .lottie {
  width: 50%;
  height: auto;
}
@media (max-width: 767px) {
  #hero .lottie {
    width: 100%;
  }
}
/* ── Hero ──────────────────────────────────────────── */
#chi-siamo {
  scroll-margin-top: 100px;
  padding: 0 0 100px 0;
  text-align: center;
  position: relative;
}
#chi-siamo .sfondo {
  position: absolute;
  top: 50px;
  left: 0;
  width: 100%;
  z-index: 2;
}
#chi-siamo .sfondo img {
  width: 100%;
}
#chi-siamo h2 {
  color: var(--black);
  position: relative;
  z-index: 1;
}
#chi-siamo .content {
  position: relative;
  z-index: 3;
}
#chi-siamo .content p {
  color: var(--black);
}
@media (max-width: 767px) {
  #chi-siamo {
    padding: 0 0 50px 0;
  }
  #chi-siamo .sfondo {
    top: -60px;
    left: 0;
  }
  #chi-siamo .content {
    padding-left: 35%;
  }
}
/* ── Services ──────────────────────────────────────── */
#servizi {
  padding: 50px 0 100px 0;
  position: relative;
  z-index: 3;
}
#servizi h2 {
  color: var(--black);
}
#servizi p {
  color: var(--black);
  margin-bottom: 0;
}
@media (max-width: 767px) {
  #servizi {
    padding: 50px 0 0 0;
  }
}
/* Service cards */
.service-row {
  position: relative;
  z-index: 3;
}
.service-row .service-card {
  position: relative;
  background: transparent;
  padding: 30px;
  transition: transform 0.25s;
  gap: 0;
}
.service-row .service-card .lottie {
  height: 150px;
}
.service-row .service-card h3 {
  font-family: "Recursive", sans-serif;
  font-size: 1.875rem;
  font-weight: 400;
  color: var(--black);
}
.service-row .service-card p {
  color: var(--black);
  margin-bottom: 0;
}
.service-row .service-card:hover {
  transform: translateY(-3px);
}
@media (max-width: 767px) {
  .service-row .service-card {
    padding: 15px;
    flex-direction: column;
    text-align: center;
  }
  .service-row .service-card h3 {
    font-size: 1.5rem;
  }
}
/* ── Projects ──────────────────────────────────────── */
#progetti {
  position: relative;
  z-index: 3;
  padding: 100px 0;
  text-align: center;
}
#progetti .sfondo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: -1;
}
#progetti .sfondo img {
  width: 100%;
}
#progetti h2 {
  color: var(--black);
}
#progetti p {
  color: var(--black);
  margin-bottom: 0;
}
#progetti a.project-card {
  text-decoration: none;
}
#progetti a.project-card .inner {
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
  text-align: left;
  border: 1px solid var(--navy);
  border-radius: 20px;
  overflow: hidden;
}
#progetti a.project-card .inner img {
  width: 100%;
  object-fit: cover;
}
#progetti a.project-card .inner .ph-label h3 {
  font-family: "Beiruti", sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--black);
  text-align: center;
}
#progetti a.project-card:hover .inner {
  transform: translateY(-4px);
}
/* ── Pagina Contatti ──────────────────────────────────────── */
#pagina_contatti {
  position: relative;
  padding-top: 100px;
  padding-bottom: 100px;
  margin-top: 100px;
  margin-bottom: 50px;
  background-image: url(../img/sfondo_pagina_chi_siamo.svg);
  background-position: top center;
  background-size: contain;
  background-repeat: no-repeat;
}
#pagina_contatti h1 {
  font-family: "Recursive", sans-serif;
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--black);
}
#pagina_contatti h1 span {
  text-shadow: 0 4px 4px var(--yellow);
}
#pagina_contatti p {
  font-size: 1.688rem;
  color: var(--navy);
}
#pagina_contatti p a {
  font-size: 1.688rem;
  color: var(--navy);
  text-decoration: none;
  position: relative;
}
#pagina_contatti p a:after {
  content: " ";
  border-bottom: 1px solid var(--navy);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
}
@media (max-width: 767px) {
  #pagina_contatti {
    margin-top: 50px;
    padding-bottom: 0;
  }
  #pagina_contatti h1 {
    font-size: 2rem;
  }
  #pagina_contatti p {
    font-size: 1.25rem;
  }
  #pagina_contatti p a {
    font-size: 1.25rem;
  }
}
#map_contatti {
  padding-top: 150px;
  padding-bottom: 200px;
}
@media (max-width: 767px) {
  #map_contatti {
    padding-top: 50px;
    padding-bottom: 100px;
  }
}
/* ── Footer ────────────────────────────────────────── */
footer {
  position: relative;
  z-index: 3;
  overflow: hidden;
}
footer #contatti {
  position: relative;
  padding: 250px 0 100px 0;
  z-index: 3;
  background-image: url(../img/onda_yellow.svg);
  background-position: top;
  background-size: cover;
  background-repeat: no-repeat;
}
footer #contatti h2 {
  color: var(--black);
}
footer #contatti p {
  color: var(--black);
  margin-bottom: 0;
}
@media (max-width: 767px) {
  footer #contatti {
    padding: 150px 0 100px 0;
  }
}
footer .onda {
  position: relative;
  width: 100%;
  z-index: 4;
}
footer #footer_bottom {
  position: relative;
  z-index: 3;
  color: var(--white);
  padding: 100px 0 32px 0;
  background-color: var(--navy);
}
footer #footer_bottom .cont-brand {
  z-index: 1022;
}
footer #footer_bottom .cont-brand img {
  max-width: 170px;
}
footer #footer_bottom h4 {
  font-family: "Recursive", sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--white);
}
footer #footer_bottom p,
footer #footer_bottom ul,
footer #footer_bottom ol {
  font-family: "Beiruti", sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--white);
  margin-bottom: 0;
}
footer #footer_bottom p a,
footer #footer_bottom ul a,
footer #footer_bottom ol a {
  font-family: "Beiruti", sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--white);
  margin-bottom: 0;
}
footer #footer_bottom .copyright p {
  font-size: 1rem;
}
footer #footer_bottom .copyright p a {
  font-size: 1rem;
}
footer #footer_bottom a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}
footer #footer_bottom a:hover {
  color: var(--yellow);
}
footer #footer_bottom .footer-divider {
  border-color: var(--white);
  margin: 1.5rem 0;
}
@media (max-width: 767px) {
  footer #footer_bottom {
    padding: 50px 0 32px 0;
  }
}
.wpcf7 form .form-group {
  margin-top: 50px;
}
.wpcf7 form .form-control {
  font-family: "Recursive", sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--navy);
  border: none;
  border-bottom: 1px solid var(--black);
  border-radius: 0;
  padding: 0;
}
.wpcf7 form .form-control:focus {
  color: unset;
  background-color: unset;
  border-color: unset;
  outline: 0;
  box-shadow: unset;
}
.wpcf7 form .form-control::placeholder {
  color: var(--black);
  opacity: 1;
  /* Evita che alcuni browser lo rendano più trasparente */
}
.wpcf7 form label,
.wpcf7 form p,
.wpcf7 form a,
.wpcf7 form .wpcf7-response-output {
  font-family: "Beiruti", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: var(--navy);
}
.wpcf7 form .wpcf7-response-output {
  font-size: 1.25rem;
}
.wpcf7 form .wpcf7-spinner {
  float: left;
}
.wpcf7 form .wpcf7-list-item {
  margin: 0;
}
@media (max-width: 767px) {
  .wpcf7 form .form-control {
    font-size: 1.1rem;
  }
}
