/* FISSO (modello del kit): le regole che servono agli elementi fissi di ogni sito.
   Lo stile del sito va negli altri fogli (base.css, componenti.css...), elencati
   dopo questo in site.yaml «css». Colori e caratteri qui non si decidono. */

/* campo esca del modulo: mai visibile, mai raggiungibile */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* "Vai al contenuto" per chi naviga da tastiera */
.salta { position: absolute; left: 1rem; top: -4rem; z-index: 1000; padding: .6rem 1rem; background: #fff; color: #000; }
.salta:focus { top: 1rem; }

/* focus sempre visibile */
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* hidden vince su qualunque display */
[hidden] { display: none !important; }

/* torna su */
.su { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; width: 2.75rem; height: 2.75rem;
      display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
      opacity: 0; transform: translateY(.5rem); pointer-events: none; transition: opacity .25s, transform .25s; }
.su.vis { opacity: 1; transform: none; pointer-events: auto; }
.su svg { width: 1.25rem; height: 1.25rem; }

/* banner cookie: compare con una transizione; posizione e stile sono del sito */
.cookie { position: fixed; z-index: 100; opacity: 0; transform: translateY(1rem); transition: opacity .4s, transform .4s; }
.cookie.vis { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Font self-hosted: nessuna chiamata a Google Fonts. Generato da tools/fonts.py e corretto a mano:
   Manrope è un font variabile (un file per tutti i pesi), fonts.py teneva solo il peso 200. */
@font-face{font-family:'Manrope';font-style:normal;font-weight:200 800;font-display:swap;src:url(../fonts/manrope-xn7gyhe41ni1adirggmxsuxd.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Manrope';font-style:normal;font-weight:200 800;font-display:swap;src:url(../fonts/manrope-xn7gyhe41ni1adirggexsg.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Volkhov';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/volkhov-slgqmqieojckemnectuehq.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Volkhov';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/volkhov-slgvmqieojckemneey4hkhnsbq.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

/* Stile del sito: findmyitalianancestry.com.
   Rifatto identico al sito vecchio (Elementor, tema Hello): stessa palette, stessi
   caratteri (Volkhov per i titoli, Manrope per il testo), stessa griglia a 1140 px. */

:root {
  --nero: #1D1D1B;
  --giallo: #FFB73B;
  --giallo-chiaro: #FFC561;
  --verde: #5A7F57;
  --verde-chiaro: #D3E9DC;
  --crema: #FFF1D8;
  --crema-chiaro: #FFF9EF;
  --grigio: #9CA3AF;
  --grigio-scuro: #6B7280;
  --grigio-bordo: #D1D5DB;
  --bianco: #FFFFFF;
  --titoli: "Volkhov", Georgia, serif;
  --testo: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --larghezza: 1140px;
  --ombra: 0 0 15px 0 rgba(120, 120, 120, .1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bianco); color: var(--nero);
  font-family: var(--testo); font-size: 17px; font-weight: 400; line-height: 29px;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
picture { display: block; }
figure { margin: 0; }
p { margin: 0 0 5px; }
a { color: var(--giallo); text-decoration: none; }
a:hover { color: var(--giallo); }
b, strong { font-weight: 700; }
ul { margin: 0 0 10px; }
h1, h2, h3, h4 { margin: 0; color: var(--nero); }
h1 { font-family: var(--titoli); font-size: 60px; font-weight: 700; line-height: 77px; }
h2 { font-family: var(--titoli); font-size: 35px; font-weight: 700; line-height: 45px; }
h3 { font-family: var(--testo); font-size: 26px; font-weight: 700; line-height: 34px; }
button, input, select, textarea { font: inherit; }
.vis-nascosto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 1024px) {
  h1 { font-size: 46px; line-height: 56px; }
  h2 { font-size: 32px; line-height: 42px; }
  h3 { font-size: 24px; line-height: 34px; }
}
@media (max-width: 767px) {
  h1 { font-size: 37px; line-height: 47px; }
  h2 { font-size: 30px; line-height: 40px; }
}

/* ---------------------------------------------------------------- bottoni */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 24px; border: 2px solid var(--giallo); border-radius: 100px;
  background: transparent; color: var(--giallo); cursor: pointer;
  font-family: var(--testo); font-size: 15px; font-weight: 600; line-height: 20px;
  letter-spacing: 1.2px; text-transform: uppercase; text-align: center;
  transition: background-color .3s, color .3s, border-color .3s;
}
.btn:hover, .btn:focus-visible { background: var(--giallo); color: var(--bianco); }
.btn.ico::after {
  content: ""; width: 14px; height: 14px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M190.5 66.9l22.2-22.2a23.9 23.9 0 0 1 33.9 0L441 239a23.9 23.9 0 0 1 0 33.9L246.6 467.3a23.9 23.9 0 0 1-33.9 0l-22.2-22.2a24 24 0 0 1 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2a23.9 23.9 0 0 1-.4-34.3z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M190.5 66.9l22.2-22.2a23.9 23.9 0 0 1 33.9 0L441 239a23.9 23.9 0 0 1 0 33.9L246.6 467.3a23.9 23.9 0 0 1-33.9 0l-22.2-22.2a24 24 0 0 1 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2a23.9 23.9 0 0 1-.4-34.3z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.btn--pieno { background: var(--giallo); color: var(--bianco); border-color: var(--giallo); }
.btn--pieno:hover, .btn--pieno:focus-visible { background: var(--bianco); color: var(--giallo); border-color: var(--giallo); }

/* ---------------------------------------------------------------- intestazione */
.testata { position: absolute; top: 0; left: 0; right: 0; z-index: 99; padding: 0 20px; }
.testata--foto { background-image: linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 100%); }
.l-articolo .testata { background: var(--bianco); }
.testata__in {
  max-width: var(--larghezza); min-height: 90px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
}
.testata__logo { flex: none; margin-right: auto; }
.testata__logo img { width: 180px; height: auto; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu > ul { display: flex; align-items: center; }
.menu > ul > li { position: relative; margin: 0 10px; }
.menu > ul > li > a {
  display: flex; align-items: center; gap: 6px; padding: 13px 0;
  color: var(--nero); font-size: 16px; font-weight: 600; line-height: 20px;
  letter-spacing: 1.2px; text-transform: uppercase;
}
.menu > ul > li > a[aria-current="page"] { color: var(--giallo); }
.testata--foto .menu > ul > li > a { color: var(--bianco); }
.testata--foto .menu > ul > li > a:hover, .testata--foto .menu > ul > li > a[aria-current="page"] { color: var(--crema); }
.menu .freccia { width: 10px; height: 6px; }
.sottomenu {
  position: absolute; top: 100%; left: -10px; z-index: 10; margin-top: 19px !important; min-width: 260px;
  background: var(--bianco); border-radius: 10px; box-shadow: 0 0 20px 2px rgba(0,0,0,.1);
  visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s;
}
.sottomenu::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.ha-figli:hover > .sottomenu, .ha-figli:focus-within > .sottomenu, .ha-figli.aperto > .sottomenu { visibility: visible; opacity: 1; }
.sottomenu a {
  display: block; padding: 10px; color: var(--nero);
  font-size: 15px; font-weight: 500; letter-spacing: .8px; line-height: 20px; border-radius: 10px;
}
.sottomenu a:hover, .sottomenu a[aria-current="page"] { color: var(--giallo); }
.testata__cta { width: 194px; margin-left: 10px; font-size: 16px; line-height: 24px; padding: 9px 20px; }
body[data-lingua="it"] .testata__cta { width: auto; padding: 9px 20px; }
.testata__cta:hover, .testata__cta:focus-visible { background: var(--giallo-chiaro); color: var(--bianco); border-color: var(--giallo-chiaro); }
.testata--foto .testata__cta:hover { background: var(--bianco); color: var(--giallo); border-color: var(--bianco); }
.testata__apri { display: none; margin-left: auto; padding: 6px; border: 0; background: none; color: var(--nero); cursor: pointer; }
.testata--foto .testata__apri { color: var(--bianco); }
.testata__apri svg { width: 40px; height: 40px; }

@media (max-width: 1024px) {
  .menu, .testata__cta { display: none; }
  .testata__apri { display: block; }
  .testata { padding: 0 15px; }
}

/* menu a tutto schermo (telefono e tablet), come il popup di Elementor */
.menu-mobile {
  position: fixed; inset: 0; z-index: 200; overflow-y: auto; background: var(--bianco);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 20px 40px; text-align: center;
}
.menu-mobile[hidden] { display: none !important; }
.menu-mobile__chiudi { position: absolute; top: 14px; right: 14px; border: 0; background: none; padding: 6px; cursor: pointer; color: var(--nero); }
.menu-mobile__chiudi svg { width: 34px; height: 34px; }
.menu-mobile__logo { margin-bottom: 40px; }
.menu-mobile__logo img { width: 100px; }
.menu-mobile ul { list-style: none; margin: 0; padding: 0; }
.menu-mobile > ul > li { margin-bottom: 20px; }
.menu-mobile > ul > li > a { color: var(--nero); font-size: 19px; font-weight: 500; line-height: 29px; text-transform: uppercase; }
.menu-mobile ul ul { margin-top: 20px; }
.menu-mobile ul ul li { margin-bottom: 20px; }
.menu-mobile ul ul a { color: var(--nero); font-size: 19px; font-weight: 500; line-height: 29px; }
.menu-mobile a:hover, .menu-mobile a[aria-current="page"] { color: var(--verde); }
.menu-mobile .btn { margin-top: 20px; font-size: 18px; font-weight: 700; letter-spacing: .8px; text-transform: none; border-width: 1px; }
body.menu-aperto { overflow: hidden; }

/* ---------------------------------------------------------------- briciole */
.briciole { font-size: 14px; line-height: 20px; color: var(--grigio); text-align: center; margin-bottom: 10px; }
.briciole a { color: var(--giallo); }

/* ---------------------------------------------------------------- piè di pagina */
.piede { background: #EEEEEE; padding: 50px 15px 20px; color: var(--grigio-scuro); }
.piede__in { max-width: var(--larghezza); margin: 0 auto; text-align: center; }
.piede a { color: var(--grigio-scuro); }
.piede a:hover { color: var(--giallo); }
.piede__logo { display: inline-block; margin-bottom: 20px; }
.piede__logo img { width: 200px; }
.piede__motto { font-size: 14px; line-height: 14px; letter-spacing: .8px; margin-bottom: 20px; }
.piede__email { font-size: 14px; font-weight: 700; line-height: 22px; letter-spacing: .8px; }
.piede hr { border: 0; border-top: 1px solid #E5E7EB; margin: 20px 0 15px; }
.piede__fondo { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.piede__link { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.piede__link a, .piede__link button {
  font-size: 14px; line-height: 20px; color: var(--grigio); background: none; border: 0; padding: 0; cursor: pointer;
}
.piede__link a:hover, .piede__link button:hover { color: var(--giallo); }
.piede__copy { margin: 0; font-size: 14px; line-height: 14px; letter-spacing: .8px; color: var(--grigio); text-align: right; }
@media (max-width: 767px) {
  .piede__fondo { flex-direction: column; justify-content: center; }
  .piede__link { justify-content: center; }
  .piede__copy { text-align: center; line-height: 20px; }
}

/* ---------------------------------------------------------------- torna su */
.su { background: var(--giallo); color: var(--bianco); }

/* solo su un tipo di schermo, come su Elementor */
@media (max-width: 767px) { .no-m { display: none !important; } }
@media (min-width: 768px) { .solo-m { display: none !important; } }

/* iubenda (arriva da GTM): il pulsante tondo in basso a destra no, la barra
   «Notice at collection / Your Privacy Choices» neanche: i suoi due link sono nel piè di pagina */
html body > .iub__us-widget, html body .iubenda-tp-btn.iubenda-tp-btn.iubenda-tp-btn[data-tp-float][data-tp-float] { display: none !important; }
.piede__scelte { display: inline-flex; align-items: center; gap: 6px; }
.piede__scelte svg { flex: none; }

/* Sezioni delle pagine: la stessa griglia di Elementor (sezioni a 1140 px, colonne
   con 10 px di margine, 20 px fra un elemento e l'altro), una classe per ogni tipo
   di blocco del sito vecchio. */

/* ---------------------------------------------------------------- griglia */
.s { position: relative; padding: 0 15px; }
.s__in, .sub { display: flex; max-width: var(--larghezza); margin: 0 auto; }
.sub { width: 100%; max-width: none; }
.col { position: relative; padding: 10px; min-width: 0; }
.sub > .col { padding: 10px; }
.w-100 { width: 100%; }
.w-50 { width: 50%; }
.w-33 { width: 33.333%; }
.w-66 { width: 66.666%; }
.col > *:not(:last-child), .col > .sub:not(:last-child) { margin-bottom: 20px; }
.w-testo p:last-child, .w-testo ul:last-child { margin-bottom: 0; }
.w-testo ul { padding-left: 24px; }
.w-img img { margin: 0 auto; }
.w-btn { margin: 0; }
@media (max-width: 767px) {
  .s__in, .sub { flex-wrap: wrap; }
  .col { width: 100%; }
}

/* titoletto maiuscolo sopra il titolo */
.occhiello {
  font-family: var(--testo) !important; font-size: 18px !important; font-weight: 500 !important;
  line-height: 1em !important; letter-spacing: .8px; text-transform: uppercase; color: var(--giallo) !important;
}
.col > .occhiello { margin-bottom: 8px !important; }
@media (max-width: 767px) { .occhiello { line-height: 1.3em !important; } }

/* icone dei servizi: il disegno verde con il cerchio chiaro dietro */
.w-icona { display: inline-block; padding: 0 0 8px 10px; background: url(/wp-content/uploads/2023/06/circle.svg) left bottom / 58px auto no-repeat; }
.w-icona svg { width: auto; height: 59px; }
.w-icona + h3 { margin-top: -15px; }
.col > .w-icona { margin-bottom: 20px !important; }

/* titolo con una parola sottolineata a pennello (titolo animato di Elementor) */
.evid { position: relative; display: inline-block; z-index: 1; }
.evid::after {
  content: ""; position: absolute; z-index: -1; left: -2%; right: -2%; bottom: .02em; height: .22em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 150' preserveAspectRatio='none'%3E%3Cpath d='M7.7 145.6C109 125 299.9 116.2 401 121.3c42.1 2.2 87.6 11.8 87.3 25.7' fill='none' stroke='%23FFB73B' stroke-width='9' stroke-linecap='round'/%3E%3Cpath d='M7.7 121c80-11 300-25 480-5' fill='none' stroke='%23FFB73B' stroke-width='9' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* immagini con le forme del sito vecchio (maschere di Elementor) */
.s--servizio .col > .w-img:first-child img { -webkit-mask: url(/wp-content/uploads/2023/06/painting1.svg) center / contain no-repeat; mask: url(/wp-content/uploads/2023/06/painting1.svg) center / contain no-repeat; width: 100%; }
.s--servizio.p2 .col > .w-img:first-child img { -webkit-mask-image: url(/wp-content/uploads/2023/06/painting2.svg); mask-image: url(/wp-content/uploads/2023/06/painting2.svg); }
.s--servizio.p3 .col > .w-img:first-child img { -webkit-mask-image: url(/wp-content/uploads/2023/06/painting3.svg); mask-image: url(/wp-content/uploads/2023/06/painting3.svg); }

/* ---------------------------------------------------------------- aperture */
.s--hero-home, .s--hero-foto { padding: 0 15px; background: center / cover no-repeat; }
.s--hero-home::before, .s--hero-foto::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0) 60%, #fff 100%);
}
.s--hero-home { background-image: url(/wp-content/uploads/2023/07/family-visiting-florence.jpg); z-index: 1; }
.s--hero-home .s__in { min-height: 850px; align-items: center; justify-content: center; text-align: center; position: relative; }
.s--hero-home h1 { font-size: 80px; line-height: 1.35; color: var(--bianco); margin-bottom: 0 !important; }
.s--hero-home .sottotitolo { font-family: var(--testo); font-size: 40px; line-height: 1.2; font-weight: 500; color: var(--bianco); }
.s--hero-foto .s__in { min-height: 480px; align-items: center; justify-content: center; text-align: center; position: relative; }
.s--hero-foto h1 { color: var(--bianco); }
.s--hero-esperienze { background-image: url(/wp-content/uploads/2023/06/landscape-in-tuscany.jpg); }
.s--hero-recensioni { background-image: url(/wp-content/uploads/2023/06/chianti-tuscany.jpg); }
.s--hero-chiaro { background: linear-gradient(180deg, var(--crema) 0%, var(--crema-chiaro) 100%); }
.s--hero-chiaro .s__in { min-height: 480px; align-items: center; justify-content: center; text-align: center; padding-top: 30px; }
.s--hero-chiaro .col > *:not(:last-child) { margin-bottom: 10px; }
.s--hero-blog { background: linear-gradient(180deg, var(--crema) 0%, var(--crema-chiaro) 55%, #fff 100%); }
.s--hero-blog .s__in { min-height: 340px; padding-top: 60px; }
@media (max-width: 1024px) {
  .s--hero-home h1 { font-size: 60px; }
  .s--hero-home .sottotitolo { font-size: 32px; }
}
@media (max-width: 767px) {
  .s--hero-home .s__in { min-height: 650px; }
  .s--hero-home h1 { font-size: 46px; line-height: 1.15; }
  .s--hero-home .sottotitolo { font-size: 26px; line-height: 1.3; }
  .s--hero-foto .s__in, .s--hero-chiaro .s__in { min-height: 380px; }
  .s--hero-blog .s__in { min-height: 260px; }
}

/* ---------------------------------------------------------------- home: introduzione con la mappa */
.s--intro-split { margin-top: -50px; z-index: 2; }
.s--intro-split .s__in { align-items: flex-end; }
.s--intro-split .col:first-child { margin: 150px 0 50px; }
.s--intro-split .col:last-child { background: url(/wp-content/uploads/2023/06/IT-Map.svg) right center / contain no-repeat; }
.s--intro-split .w-img { margin: 125px; padding: 10px; border: 1px dashed var(--giallo); border-radius: 50%; }
.s--intro-split .w-img img { width: 100%; border-radius: 50%; }
@media (max-width: 1024px) {
  .s--intro-split { margin: 100px 0; }
  .s--intro-split .s__in { align-items: center; }
  .s--intro-split .col:first-child { margin: 0; }
  .s--intro-split .w-img { margin: 60px; }
}
@media (max-width: 767px) {
  .s--intro-split { margin: 80px 0; padding: 0; }
  .s--intro-split .col:first-child { margin: 0 15px 20px; width: calc(100% - 30px); }
  .s--intro-split .w-img { margin: 80px 50px 80px 35px; }
}

/* ---------------------------------------------------------------- testo centrato */
.s--intro { margin: 120px 0 50px; text-align: center; }
.s--intro-about { margin-top: 100px; }
.s--intro-contatti { margin: 0; padding-top: 0; background: linear-gradient(180deg, var(--crema-chiaro) 0%, #fff 50%); }
.s--intro-contatti .w-testo + .w-testo { margin-top: 20px; }
.s--intro-recensioni { margin: 150px 0 50px; }
.s--intro-recensioni h2 { font-weight: 700; }
@media (max-width: 1024px) { .s--intro { margin-top: 100px; } }
@media (max-width: 767px) {
  .s--intro { margin: 80px 0 40px; text-align: left; }
  .s--intro-contatti, .s--intro-recensioni { text-align: center; }
}

/* tre foto inclinate (About) */
.s--intro-about .sub { width: 100vw; max-width: 1440px; margin: 60px 0 0 calc(50% - min(50vw, 720px)); align-items: center; }
.s--intro-about .sub .col img { max-width: 355px; width: 100%; }
.s--intro-about .sub .col:nth-child(1) img { transform: rotate(-18deg); }
.s--intro-about .sub .col:nth-child(3) img { transform: rotate(18deg); }
.s--intro-about .sub .col { padding: 60px 10px; }
@media (max-width: 767px) {
  .s--intro-about .sub { flex-wrap: nowrap; width: 100%; margin: 40px 0 0; }
  .s--intro-about .sub .col { width: 33.333%; padding: 20px 4px; }
}

/* galleria di quattro foto (home) */
.s--galleria { padding: 0 10px; }
.s--galleria .s__in { max-width: none; }
.w-carosello { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.w-carosello img { width: 100%; height: auto; aspect-ratio: 7 / 5; object-fit: cover; border-radius: 10px; }
@media (max-width: 767px) {
  .w-carosello { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; width: calc(100% - 80px); margin: 0 auto; scrollbar-width: none; }
  .w-carosello::-webkit-scrollbar { display: none; }
  .w-carosello picture { flex: 0 0 100%; scroll-snap-align: center; }
}

/* titolo centrato a sé */
.s--titolo { margin: 100px 0 50px; text-align: center; }
.s--titolo .s__in { max-width: 400px; }
.s--titolo h2 { font-weight: 400; }
.s--titolo-servizi { margin: 100px 0 50px; }
.s--titolo-servizi .s__in { max-width: 700px; }
@media (max-width: 1024px) { .s--titolo { margin: 100px 0 40px; } }
@media (max-width: 767px) { .s--titolo { margin: 80px 0 50px; } }

/* ---------------------------------------------------------------- servizi: testo e foto a pennellate */
.s--servizio { margin: 120px 0; }
.s--titolo + .s--servizio { margin-top: 0; }
.s--servizio .s__in { align-items: center; }
.s--servizio .col:has(> .w-icona) { padding-right: 60px; }
.s--servizio .col:has(> .w-icona):last-child { padding-left: 60px; padding-right: 10px; }
.s--servizio h3 { font-weight: 600; }
.s--servizio .col > .w-img:first-child { position: relative; z-index: 1; }
.s--servizio .col > .w-img + .w-img { position: absolute; z-index: 0; margin: 0 !important; pointer-events: none; }
.s--servizio .col:last-child > .w-img + .w-img { left: -33px; top: 230px; width: 315px; }
.s--servizio .col:first-child > .w-img + .w-img { left: 91px; top: 335px; width: 202px; }
@media (max-width: 1024px) {
  .s--servizio { margin: 50px 0; }
  .s--servizio .col:has(> .w-icona), .s--servizio .col:has(> .w-icona):last-child { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 767px) {
  .s--servizio .col:has(> .w-img) { order: -1; }
  .s--servizio .col:has(> .w-icona) { margin-top: -60px; z-index: 2; }
  .s--servizio .w-icona { background-size: 70px auto; }
}

/* esperienze: l'albero accanto al testo */
.s--albero { margin: 100px 0; }
.s--albero .s__in { align-items: center; }
.s--albero .col:last-child { padding-left: 40px; }
@media (max-width: 767px) { .s--albero .col:last-child { padding-left: 10px; } }

/* ---------------------------------------------------------------- testimonianze (home) */
.s--testimonianze { margin: 150px 0; }
.s--testimonianze .s__in { align-items: center; }
.s--testimonianze .occhiello { font-weight: 400 !important; }
.w-testim {
  position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  width: 90%; margin: -50px auto; padding: 50px 0;
  background: radial-gradient(at center center, #E7E7E7 0%, rgba(255,255,255,0) 70%);
}
.w-testim::-webkit-scrollbar { display: none; }
.testim {
  flex: 0 0 100%; scroll-snap-align: center; margin: 0; padding: 40px;
  background: var(--bianco); border: 1px solid #F0F0F0; border-radius: 10px;
}
.testim img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; margin: 0 0 20px; }
.testim p { color: var(--grigio); font-size: 16px; line-height: 29px; margin-bottom: 20px; }
.testim cite { font-style: normal; display: block; }
.testim cite b { display: block; font-size: 14px; font-weight: 600; line-height: 20px; }
.testim cite span { display: block; color: var(--grigio); font-size: 14px; font-weight: 500; line-height: 24px; }
.carosello-frecce { position: absolute; inset: 50% 0 auto; display: flex; justify-content: space-between; pointer-events: none; transform: translateY(-50%); }
.carosello-frecce button { pointer-events: auto; border: 0; background: none; color: var(--grigio); padding: 8px; cursor: pointer; }
.carosello-frecce button svg { width: 12px; height: 20px; }
.carosello-frecce button[disabled] { opacity: .35; cursor: default; }
.testim-box { position: relative; }
@media (min-width: 768px) { .s--galleria .carosello-frecce { display: none; } }
@media (max-width: 767px) {
  .s--testimonianze { margin: 80px 0; }
  .s--testimonianze .col:first-child { text-align: center; }
  .w-testim { width: calc(88% - 40px); margin: 0 auto; padding: 0; background: radial-gradient(at center center, #E7E7E7 0%, rgba(255,255,255,0) 70%); }
  .testim { padding: 20px; }
  .testim p { font-size: 14px; line-height: 1.7em; }
  .testim cite span { font-size: 12px; line-height: 1.5em; }
  .s--testimonianze .solo-m { text-align: center; margin-top: 20px; }
}

/* ---------------------------------------------------------------- riquadro del modulo */
.s--modulo { margin: 150px 0; }
.s--modulo > .s__in > .col {
  position: relative; padding: 100px 150px; border-radius: 130px 20px 20px 20px; overflow: hidden;
  background: var(--crema) url(/wp-content/uploads/2023/06/background-form.png) center / cover no-repeat;
}
.s--modulo .w-tit { font-family: var(--titoli); font-size: 32px; font-weight: 400; line-height: 42px; text-align: center; color: var(--nero); }
.s--modulo .w-tit + .w-testo { text-align: center; margin-top: -10px; }
.s--modulo-contatti { margin-top: 60px; margin-bottom: 120px; }
@media (max-width: 1024px) { .s--modulo > .s__in > .col { padding: 80px 60px; background-position: center right; } }
@media (max-width: 767px) {
  .s--modulo { margin: 80px 0; }
  .s--modulo > .s__in > .col { padding: 80px 30px; border-radius: 80px 8px 8px 8px; background-position: top right; background-size: 485px auto; }
  .s--modulo .w-tit { font-size: 25px; line-height: 34px; }
}

/* ---------------------------------------------------------------- About */
.s--about-hero { background: linear-gradient(180deg, var(--crema) 0%, #fff 100%); padding-top: 110px; padding-bottom: 90px; }
.s--about-hero .s__in { align-items: center; min-height: 480px; }
.s--about-hero .col:first-child { padding-right: 50px; }
.s--about-hero .w-testo { font-size: 18px; line-height: 29px; }
.s--about-hero .col:last-child > .w-img img {
  width: 100%; max-width: 480px; aspect-ratio: 1.4; object-fit: cover; border-radius: 300px 300px 300px 300px;
  border: 5px solid var(--bianco); box-shadow: var(--ombra);
}
.s--about-hero .sub { position: relative; z-index: 2; margin-top: -90px; max-width: 410px; margin-left: -80px; }
.s--about-hero .sub .col { background: var(--bianco); border-radius: 40px; box-shadow: var(--ombra); padding: 22px 30px; }
.s--about-hero .sub .w-testo { font-size: 13px; line-height: 24px; color: var(--grigio); }
.s--about-hero .sub b { color: var(--grigio-scuro); }
@media (max-width: 767px) {
  .s--about-hero { padding-top: 100px; }
  .s--about-hero .col:first-child { padding-right: 10px; }
  .s--about-hero .sub { margin: -60px auto 0; }
}

/* valori, su fondo verde chiaro */
.s--valori { background: var(--verde-chiaro); padding: 100px 15px; margin-top: 80px; text-align: center; }
.s--valori h2 { color: var(--verde); }
.s--valori .sub { margin-top: 70px; text-align: left; }
.s--valori .sub .col { padding: 10px 20px; }
.s--valori .sub .w-img { margin-bottom: -40px !important; margin-left: -10px; }
.s--valori .sub .w-img img { width: 80px; margin: 0; }
.s--valori h3 { position: relative; font-weight: 500; }
.s--valori .sub .w-testo { font-size: 16px; line-height: 27px; }
@media (max-width: 767px) { .s--valori { padding: 80px 15px; text-align: left; } .s--valori .sub .col { padding: 10px; margin-bottom: 30px; } }

/* chi siamo: le due persone */
.s--persone { margin: 100px 0 0; text-align: center; }
.s--persone .sub { position: relative; margin-top: 20px; }
.s--persone .sub::before {
  content: ""; position: absolute; inset: 10% 5% 10%; z-index: 0;
  background: url(/wp-content/uploads/2023/07/vector-line-about.svg) center / contain no-repeat;
}
.s--persone .sub .col > *:not(:last-child) { margin-bottom: 5px; }
.s--persone .w-img { margin-bottom: 20px !important; position: relative; }
.s--persone .w-img img { width: 350px; max-width: 100%; border-radius: 200px; }
.s--persone .sub p.w-tit:first-of-type { color: var(--giallo); font-size: 22px; font-weight: 600; line-height: 30px; }
.s--persone .sub p.w-tit + p.w-tit { font-size: 16px; line-height: 24px; }
.s--persone .w-btn { margin-top: 30px; }

/* ---------------------------------------------------------------- pagine dei servizi: foto ovali */
.s--ovali { background: linear-gradient(180deg, var(--crema-chiaro) 0%, #fff 50%); }
.s--ovali-2 { background: none; margin: 100px 0 50px; }
.s--ovali .s__in { align-items: center; }
.s--ovali .s__in > .col:has(.sub) .sub { align-items: flex-end; }
.s--ovali-2 .s__in > .col:has(.sub) .sub { align-items: flex-start; }
.s--ovali .s__in > .col:first-child { padding-right: 30px; }
.s--ovali .s__in > .col:last-child { padding-left: 30px; }
.s--ovali .sub .col { padding: 0; }
.s--ovali .sub img { border-radius: 200px; width: auto; max-width: 100%; }
.s--ovali:not(.s--ovali-2) .sub .w-66 { position: relative; z-index: 1; }
.s--ovali:not(.s--ovali-2) .sub .w-66 .w-img { margin: 0 -115px 65px 0; }
.s--ovali:not(.s--ovali-2) .sub .w-33 { position: relative; z-index: 2; }
.s--ovali:not(.s--ovali-2) .sub .w-33 .w-img { margin-left: -74px; }
.s--ovali:not(.s--ovali-2) .sub .w-33 img { border: 10px solid var(--bianco); }
.s--ovali-2 .sub .w-33 { position: relative; z-index: 2; }
.s--ovali-2 .sub .w-33 .w-img { margin-right: -100px; }
.s--ovali-2 .sub .w-33 img { border: 10px solid var(--bianco); }
.s--ovali-2 .sub .w-66 .w-img { margin: 65px 0 0 -115px; }
.s--ovali h2.w-tit:not(.occhiello) { margin-top: -12px; }
@media (max-width: 767px) {
  .s--ovali .s__in > .col:first-child, .s--ovali .s__in > .col:last-child { padding: 10px; }
  .s--ovali .s__in > .col:has(.sub) { order: -1; padding: 20px 40px; }
  .s--ovali .sub { flex-wrap: nowrap; }
  .s--ovali .sub .w-66 { width: 66.666%; }
  .s--ovali .sub .w-33 { width: 33.333%; }
  .s--ovali:not(.s--ovali-2) .sub .w-66 .w-img { margin: 0 -60px 40px 0; }
  .s--ovali:not(.s--ovali-2) .sub .w-33 .w-img { margin-left: -40px; }
  .s--ovali-2 .sub .w-33 .w-img { margin-right: -50px; }
  .s--ovali-2 .sub .w-66 .w-img { margin: 40px 0 0 -60px; }
}

/* requisiti in quattro schede (cittadinanza) e passi in tre schede (tour, ricerca) */
.s--schede, .s--passi { padding: 100px 15px 150px; background: url(/wp-content/uploads/2023/06/linea-tratteggiata.svg) 50% 72% / 46% auto no-repeat; }
.s--passi { background-position: center; background-size: auto; }
.s--schede > .s__in > .col > .sub:first-child { max-width: 710px; margin: 0 auto 20px; text-align: center; }
.s--schede > .s__in > .col > .w-testo, .s--passi > .s__in > .col > .w-testo { text-align: center; }
.s--schede h2, .s--passi h2, .s--passi > .s__in > .col > p.w-tit { font-weight: 400; text-align: center; }
.s--passi > .s__in > .col > p.w-tit { font-family: var(--testo); font-size: 20px; font-weight: 500; line-height: 30px; color: var(--nero); }
.s--schede .sub.g-2 { margin-top: 20px; margin-bottom: 50px; }
.s--schede .sub.g-2 + .sub.g-2 { margin-top: 0; }
.s--schede .sub.g-2 > .col, .s--passi .sub.g-1 {
  background: var(--bianco); border-radius: 6px; box-shadow: var(--ombra); padding: 50px;
}
.s--schede .sub.g-2 > .col:first-child { margin-right: 20px; }
.s--schede .sub.g-2 > .col:last-child { margin-left: 20px; }
.s--schede h3, .s--passi h3 { font-size: 26px; }
.s--passi .sub.g-1 { margin-top: 20px; }
.s--passi .sub.g-1 + .sub.g-1 { margin-top: 50px; margin-bottom: 50px; }
.s--passi .sub.g-1 > .col { padding: 0; }
@media (max-width: 767px) {
  .s--schede, .s--passi { padding: 80px 15px; background-size: 90% auto; }
  .s--schede .sub.g-2 { margin-bottom: 20px; }
  .s--schede .sub.g-2 > .col:first-child, .s--schede .sub.g-2 > .col:last-child { margin: 0 0 20px; }
  .s--schede .sub.g-2 > .col, .s--passi .sub.g-1 { padding: 30px; }
}

/* banda verde con la foto che sfuma (vantaggi, perché, famiglia) */
.s--banda { padding: 100px 15px; background: var(--verde-chiaro) left center / cover no-repeat; }
.s--banda::before { content: ""; position: absolute; inset: 0; background: linear-gradient(-90deg, var(--verde-chiaro) 45%, rgba(211,233,220,.27) 100%); }
.s--banda .s__in { position: relative; }
.s--banda h2 { color: var(--verde); }
.s--banda .w-testo + .w-testo { margin-top: -5px; }
.s--banda-roma { background-image: url(/wp-content/uploads/2023/06/view-on-rome.jpg); }
.s--banda-tour { padding: 150px 15px; background-image: url(/wp-content/uploads/2023/06/tourist-walk-exploring-town-in-ialy.jpg); background-position: 0% 30%; }
.s--banda-coppia { padding: 150px 15px; background-image: url(/wp-content/uploads/2023/06/back-view-senior-couple.jpg); background-position: center; }
.s--banda-coppia::before { background: linear-gradient(90deg, var(--verde-chiaro) 40%, rgba(211,233,220,.27) 80%); }
@media (max-width: 767px) {
  .s--banda, .s--banda-tour, .s--banda-coppia { padding: 50px 20px 300px; background-position: center bottom; background-size: 100% auto; }
  .s--banda::before, .s--banda-coppia::before { background: linear-gradient(180deg, var(--verde-chiaro) 60%, rgba(211,233,220,0) 100%); }
  .s--banda .col:empty { display: none; }
}

/* ---------------------------------------------------------------- domande frequenti */
.s--faq { margin: 150px 0; }
.s--faq .s__in { max-width: 1000px; }
.s--faq h2 { text-align: center; }
.faq details { border: 0; }
.faq summary {
  list-style: none; display: flex; justify-content: space-between; gap: 20px; cursor: pointer;
  padding: 10px 0; font-size: 21px; font-weight: 600; line-height: 29px; color: var(--nero);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin: 8px 20px 0 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq__r { padding: 0 10px 10px 0; font-size: 17px; line-height: 28px; color: var(--grigio-scuro); }
@media (max-width: 767px) { .s--faq { margin: 80px 0; } .faq summary { font-size: 18px; line-height: 26px; } }

/* ---------------------------------------------------------------- invito al contatto */
.s--cta { padding: 80px 15px 150px; background: var(--crema-chiaro); text-align: center; }
.s--cta .s__in { max-width: var(--larghezza); }
.s--cta .w-anim { max-width: 880px; margin-left: auto; margin-right: auto; }
.s--servizio:has(+ .s--cta) { margin-bottom: 0; padding-bottom: 120px; background: linear-gradient(180deg, #fff 0%, var(--crema-chiaro) 100%); }
.s--cta .w-anim { font-family: var(--titoli); font-size: 45px; font-weight: 700; line-height: 58px; color: var(--nero); }
.s--cta .w-testo { font-size: 24px; line-height: 38px; }
.s--cta .w-btn { margin-top: 40px; }
.s--cta .btn { background: var(--giallo); color: var(--bianco); font-size: 18px; font-weight: 500; text-transform: uppercase; padding: 15px 38px; }
.s--cta .btn:hover { background: var(--giallo-chiaro); border-color: var(--giallo-chiaro); color: var(--bianco); }
.s--cta-bianco { background: var(--bianco); padding-top: 50px; }
@media (max-width: 767px) {
  .s--cta { padding: 80px 15px; }
  .s--cta .w-anim { font-size: 32px; line-height: 42px; }
  .s--cta .w-testo { font-size: 19px; line-height: 30px; }
}

/* ---------------------------------------------------------------- recensioni */
.s--recensioni { margin-top: 100px; padding-bottom: 100px; background: linear-gradient(180deg, rgba(255,255,255,.49) 80%, var(--crema-chiaro) 100%); }
.s--recensioni .sub.g-1 { background: var(--bianco); border-radius: 6px; box-shadow: var(--ombra); padding: 0 50px 50px; margin-top: 50px; }
.s--recensioni .sub.g-1 + .sub.g-1 { margin-top: 130px; }
.s--recensioni .sub .col { padding: 0; }
.s--recensioni .sub .col > *:not(:last-child) { margin-bottom: 10px; }
.s--recensioni .w-img { margin-top: -50px; text-align: left; }
.s--recensioni .w-img img { margin: 0; width: 100px; border-radius: 50%; }
.s--recensioni .sub.g-1 + .sub.g-1 .w-img img { width: 102px; padding: 10px; background: var(--bianco); border: 1px solid #ECECEC; }
.s--recensioni .w-testo:first-of-type { margin: 20px 0 !important; font-size: 14px; line-height: 24px; }
.s--recensioni .w-testo + .w-testo { font-size: 17px; font-weight: 700; line-height: 20px; }
.s--recensioni .w-testo + .w-testo + .w-testo { font-size: 13px; font-weight: 400; line-height: 1.5em; color: var(--grigio); }
@media (max-width: 767px) { .s--recensioni .sub.g-1 { padding: 0 25px 30px; } }

/* ---------------------------------------------------------------- blog */
.s--blog { margin: 0 0 100px; }
.blog__voce { display: flex; gap: 50px; align-items: flex-start; margin-bottom: 50px; }
.blog__img { flex: 0 0 65%; display: block; }
.blog__img img { width: 100%; aspect-ratio: 730 / 400; object-fit: cover; }
.blog__testo { flex: 1; }
.blog__testo h2 { font-family: var(--testo); font-size: 30px; font-weight: 700; line-height: 39px; margin-bottom: 16px; }
.blog__testo h2 a { color: var(--nero); }
.blog__data { font-size: 11px; line-height: 16px; color: var(--grigio); margin-bottom: 10px; }
.blog__estratto { font-size: 16px; line-height: 29px; color: var(--grigio-scuro); }
@media (max-width: 1024px) { .blog__testo h2 { font-size: 26px; line-height: 34px; } }
@media (max-width: 767px) {
  .blog__voce { flex-direction: column; gap: 20px; }
  .blog__img { flex: none; width: 100%; }
  .blog__testo h2 { font-size: 23px; line-height: 31px; }
}

/* ---------------------------------------------------------------- articolo */
.s--testata-articolo { background: var(--verde-chiaro); margin-top: 90px; padding: 110px 15px 110px; text-align: center; }
.s--testata-articolo .s__in { display: block; }
.s--testata-articolo h1 { color: #333333; }
.s--articolo { margin: 100px 0 0; }
.articolo { display: block; }
.articolo__copertina { margin-bottom: 50px; }
.articolo__copertina img { width: 100%; }
.articolo__testo { font-size: 16px; line-height: 29px; }
.articolo__testo p { margin-bottom: 5px; }
.articolo__testo h2 { margin: 30px 0 20px; }
.articolo__testo h3 { margin: 30px 0 10px; font-size: 26px; font-weight: 600; }
.articolo__testo figure { margin: 30px 0; }
.articolo__testo figure img { width: 100%; }
.articolo__testo ul { padding-left: 24px; margin: 10px 0 20px; }
@media (max-width: 767px) {
  .s--testata-articolo { margin-top: 80px; padding: 60px 15px; }
  .s--articolo { margin-top: 50px; }
}

/* ---------------------------------------------------------------- pagine di servizio */
.s--servizio-semplice { padding: 200px 15px 150px; text-align: center; background: linear-gradient(180deg, var(--crema) 0%, #fff 100%); }
.s--servizio-semplice .s__in { display: block; max-width: 760px; }
.s--servizio-semplice h1 { margin-bottom: 30px; }
.s--servizio-semplice ul { list-style: none; padding: 0; margin: 30px 0 0; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* Moduli: stessi campi e stesso aspetto dei moduli Elementor del sito vecchio
   (etichette sopra, campi bianchi con bordo grigio chiaro, due colonne). */
.modulo { margin: 0; }
.modulo__campi { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.campo { width: 50%; padding: 0 10px; margin: 0 0 20px; border: 0; min-width: 0; }
.campo--largo { width: 100%; }
.campo label, .campo legend { display: block; padding: 0; font-size: 14px; font-weight: 600; line-height: 30px; color: var(--nero); }
.campo .obbl { color: #d9534f; padding-left: .2em; }
.campo input:not([type=checkbox]):not([type=radio]), .campo select, .campo textarea {
  width: 100%; min-height: 40px; padding: 5px 14px; border: 1px solid var(--grigio-bordo); border-radius: 5px;
  background: var(--bianco); color: var(--nero); font-size: 14px; line-height: 30px;
}
.campo ::placeholder { color: var(--grigio); opacity: 1; }
.campo select {
  -webkit-appearance: none; appearance: none; padding-right: 40px; color: var(--grigio);
  background: var(--bianco) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%239CA3AF'/%3E%3C/svg%3E") right 14px center / 10px 6px no-repeat;
}
.campo textarea { min-height: 120px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: 2px solid var(--giallo); outline-offset: 0; border-color: var(--giallo); }
.campo [aria-invalid="true"] { border-color: #d9534f !important; }
.err { margin: 4px 0 0; font-size: 13px; line-height: 18px; color: #c0392b; }
.errore-modulo { margin: 0 0 20px; padding: 12px 16px; border-radius: 5px; background: #fdecea; color: #a12a1f; font-size: 15px; line-height: 22px; }
.consenso { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 400 !important; font-size: 12px !important; line-height: 2.2 !important; }
.consenso input { margin: 7px 0 0; flex: none; accent-color: var(--giallo); }
.consenso a { color: var(--nero); text-decoration: underline; }
.modulo__invia { width: 100%; margin: 0; display: flex; gap: 10px; }
.modulo__invia .btn { padding: 12px 24px; font-size: 15px; letter-spacing: 1.2px; border-width: 1px; }
.modulo__invia .btn:hover { background: var(--bianco); color: var(--giallo); }

/* sì / no in linea */
.campo--radio legend { margin-bottom: 0; }
.scelte { display: flex; gap: 20px; min-height: 40px; align-items: center; }
.scelta { display: inline-flex !important; align-items: center; gap: 6px; font-weight: 400 !important; font-size: 14px !important; }
.scelta input { accent-color: var(--giallo); }

/* modulo a passi: indicatori numerati in alto. Il passo in corso è giallo e in
   evidenza, quelli fatti verdi con la spunta, quelli da fare grigi. */
.passi { list-style: none; display: flex; align-items: flex-start; margin: 0 0 40px; padding: 0; }
.passi__voce {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; line-height: 17px; color: var(--grigio-scuro); text-align: center;
}
.passi__voce:not(:first-child)::before {
  content: ""; position: absolute; top: 18px; left: calc(-50% + 30px); right: calc(50% + 30px);
  height: 2px; border-radius: 2px; background: var(--grigio-bordo); transition: background .3s ease;
}
.passi__num {
  display: grid; place-items: center; width: 38px; height: 38px; border: 2px solid var(--grigio-bordo); border-radius: 50%;
  background: var(--bianco); color: var(--grigio-scuro); font-size: 15px; font-weight: 700; line-height: 1;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.passi__nome { max-width: 110px; }
.passi__voce.attivo { color: var(--nero); font-weight: 700; }
.passi__voce.attivo .passi__num { background: var(--giallo); border-color: var(--giallo); color: var(--bianco); box-shadow: 0 0 0 6px rgba(255, 183, 59, .25); }
.passi__voce.fatto { color: var(--verde); font-weight: 600; }
.passi__voce.fatto .passi__num {
  border-color: var(--verde); color: transparent;
  background: var(--verde) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.8' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.passi__voce.attivo::before, .passi__voce.fatto::before { background: var(--verde); }
.passo { border: 0; margin: 0; padding: 0; min-width: 0; }
.passo:not([hidden]) { animation: passo-entra .35s ease both; }
@keyframes passo-entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 767px) {
  .campo { width: 100%; }
  .passi { margin-bottom: 30px; }
  .passi__voce { gap: 8px; font-size: 11px; line-height: 14px; }
  .passi__voce:not(:first-child)::before { top: 15px; left: calc(-50% + 22px); right: calc(50% + 22px); }
  .passi__num { width: 32px; height: 32px; font-size: 13px; }
  .passi__voce.attivo .passi__num { box-shadow: 0 0 0 4px rgba(255, 183, 59, .25); }
}

/* Rifiniture (passo a sé, dopo la ricostruzione fedele): stessi colori, stessi
   caratteri, stesse posizioni. Cambiano solo gli stati e le transizioni.
   Si animano solo opacity e transform; tutto spento con prefers-reduced-motion
   (regola in kit.css). */

/* ---------------------------------------------------------------- bottoni */
.btn { transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.btn:hover { box-shadow: 0 6px 16px -8px rgba(255, 183, 59, .7); transform: translateY(-1px); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:focus-visible { outline: 2px solid var(--nero); outline-offset: 3px; }
.btn.ico::after { transition: transform .18s ease; }
.btn.ico:hover::after, .btn.ico:focus-visible::after { transform: translateX(3px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
@media (max-width: 767px) { .btn { min-height: 44px; } }

/* ---------------------------------------------------------------- menu */
.sottomenu {
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  transition-delay: .12s; /* piccola tolleranza: non si chiude appena il mouse esce */
}
.ha-figli:hover > .sottomenu, .ha-figli:focus-within > .sottomenu, .ha-figli.aperto > .sottomenu {
  transform: none; transition-delay: 0s;
}
.menu .freccia { transition: transform .2s ease; }
.ha-figli:hover .freccia, .ha-figli:focus-within .freccia, .ha-figli.aperto .freccia { transform: rotate(180deg); }
.menu > ul > li > a { position: relative; }
.menu > ul > li > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; border-radius: 2px;
  background: currentColor; opacity: 0; transform: scaleX(.4); transition: opacity .2s ease, transform .2s ease;
}
.menu > ul > li > a:hover::after, .menu > ul > li > a[aria-current="page"]::after { opacity: .5; transform: none; }
.sottomenu a { transition: color .15s ease, background-color .15s ease; }
.sottomenu a:hover, .sottomenu a:focus-visible { background: var(--crema-chiaro); }
.menu-mobile { animation: compari .22s ease; }
.menu-mobile > ul > li, .menu-mobile > p { animation: sali .3s ease both; }
.menu-mobile > ul > li:nth-child(2) { animation-delay: .03s; }
.menu-mobile > ul > li:nth-child(3) { animation-delay: .06s; }
.menu-mobile > ul > li:nth-child(4) { animation-delay: .09s; }
.menu-mobile > ul > li:nth-child(5) { animation-delay: .12s; }
.menu-mobile > ul > li:nth-child(6) { animation-delay: .15s; }
.menu-mobile > ul > li:nth-child(7) { animation-delay: .18s; }
.menu-mobile > p { animation-delay: .21s; }

/* ---------------------------------------------------------------- card */
.blog__voce { position: relative; }
.blog__img { overflow: hidden; }
.blog__img img { transition: transform .4s ease; }
.blog__voce:hover .blog__img img { transform: scale(1.04); }
.blog__testo h2 a::after { content: ""; position: absolute; inset: 0; }   /* tutta la card porta all'articolo */
.blog__testo h2 a { transition: color .18s ease; }
.blog__voce:hover h2 a { color: var(--giallo); }
.s--schede .sub.g-2 > .col, .s--passi .sub.g-1, .s--recensioni .sub.g-1, .testim { transition: box-shadow .25s ease, transform .25s ease; }
.s--schede .sub.g-2 > .col:hover, .s--passi .sub.g-1:hover { box-shadow: 0 8px 28px 0 rgba(120, 120, 120, .14); transform: translateY(-2px); }

/* ---------------------------------------------------------------- domande frequenti */
.faq summary { transition: color .15s ease; }
.faq summary:hover { color: var(--verde); }
.faq summary::after { transition: transform .2s ease; }
.faq details[open] .faq__r { animation: sali .25s ease; }

/* ---------------------------------------------------------------- comparse */
@keyframes compari { from { opacity: 0; } to { opacity: 1; } }
@keyframes sali { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
main { animation: compari .35s ease; }
/* le fasce entrano allo scroll una volta sola; senza JavaScript tutto resta visibile */
.js .rivela { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .rivela.visto { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rivela { opacity: 1; transform: none; }
  .btn:hover, .s--schede .sub.g-2 > .col:hover, .s--passi .sub.g-1:hover { transform: none; }
}
