/* =====================================================================
   BOOMERANG S.R.L. — stili del tema
   Tradotti dal mockup approvato (design/css/style.css, "Proposta 2"):
   blocchi pieni e piatti, angoli vivi, nessuna ombra; navy profondo,
   blu del logo, giallo per pulsanti e icone; titoli grotteschi compatti.
   I colori e i font vengono da theme.json (preset WordPress).
   ===================================================================== */
:root {
  --navy: var(--wp--preset--color--navy, #111a3a);
  --blu: var(--wp--preset--color--blu, #0057a6);
  --blu-scuro: var(--wp--preset--color--blu-scuro, #00447f);
  --giallo: var(--wp--preset--color--giallo, #f5b400);
  --giallo-scuro: var(--wp--preset--color--giallo-scuro, #dba200);
  --nero: var(--wp--preset--color--nero, #15161a);
  --testo: var(--wp--preset--color--testo, #1b1d24);
  --testo-2: var(--wp--preset--color--testo-2, #686c78);
  --linea: var(--wp--preset--color--linea, #e6e7ea);
  --grigio: var(--wp--preset--color--grigio, #f4f4f5);
  --bianco: var(--wp--preset--color--bianco, #ffffff);

  --f-titoli: var(--wp--preset--font-family--titoli, "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif);
  --f-testo: var(--wp--preset--font-family--testo, "DM Sans", "Segoe UI", system-ui, sans-serif);
  --max: 1170px;
  --h-header: 105px;
  color-scheme: only light; /* sito solo chiaro: niente dark mode forzata dai browser */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bianco); color: var(--testo); font-family: var(--f-testo); font-size: 1.04rem; line-height: 1.7; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; z-index: 60; height: env(safe-area-inset-top, 0px); background: var(--bianco); }
img { max-width: 100%; display: block; }
a { color: var(--blu); }
:focus-visible { outline: 2px solid var(--giallo); outline-offset: 3px; }
[id] { scroll-margin-top: calc(var(--h-header) + 16px); }

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { font-family: var(--f-titoli); color: var(--nero); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { max-width: 64ch; }
.testo-2 { color: var(--testo-2); }

.screen-reader-text { border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link.screen-reader-text:focus { clip-path: none; height: auto; width: auto; margin: 0; left: 12px; top: calc(env(safe-area-inset-top, 0px) + 10px); z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; text-decoration: none; font-weight: 700; }

.wrap { max-width: calc(var(--max) + 48px); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }

/* Blocchi core: azzeriamo i margini, la spaziatura la danno le griglie */
.wp-block-image { margin: 0; }
.wp-block-image img { height: auto; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* Pulsanti (tutte le call to action in giallo) */
.wp-block-button__link,
.wpcf7-submit,
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-testo); font-weight: 700; font-size: .78rem; line-height: 1.7; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding: 17px 34px; border: 0; border-radius: 0; cursor: pointer; background: var(--giallo); color: var(--navy); transition: background .25s ease, color .25s ease; }
.wp-block-button__link:hover, .wp-block-button__link:focus-visible,
.wpcf7-submit:hover, .wpcf7-submit:focus-visible,
.btn:hover { background: var(--navy); color: var(--bianco); }

.link-sotto a { font-weight: 700; font-size: .92rem; color: var(--nero); text-decoration: none; padding-bottom: 4px; border-bottom: 2px solid var(--nero); transition: color .2s ease, border-color .2s ease; }
.link-sotto a:hover { color: var(--blu); border-color: var(--blu); }

/* ---------- Header ---------- */
.wp-block-template-part:has(> .site-header),
.wp-block-template-part:has(> .site-footer) { display: contents; }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--bianco); border-bottom: 1px solid var(--linea); transition: transform .3s ease, box-shadow .3s ease; }
.admin-bar .site-header { top: calc(var(--wp-admin--admin-bar--height, 32px) + env(safe-area-inset-top, 0px)); }
.site-header.nascosto { transform: translateY(-110%); }
.site-header.scrolled { box-shadow: 0 4px 18px rgba(17,26,58,.08); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 16px; }
.brand img { height: 72px; width: auto; }
.menu-pannello { display: flex; align-items: center; }
.menu { display: flex; align-items: center; gap: 36px; list-style: none; margin: 0; padding: 0; }
.menu a { position: relative; color: var(--nero); text-decoration: none; font-weight: 500; font-size: .98rem; padding: 6px 0; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--giallo); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.menu a:hover::after, .menu a[aria-current="page"]::after { transform: scaleX(1); }
.menu-extra { display: none; }

/* hamburger → X */
.nav-toggle { width: 48px; height: 48px; display: none; place-items: center; margin-right: -10px; background: none; border: 0; padding: 8px; color: var(--nero); cursor: pointer; }
.hamb { position: relative; display: block; width: 24px; height: 16px; }
.hamb i { position: absolute; left: 0; right: 0; height: 2px; background: var(--nero); border-radius: 2px; transition: transform .3s ease, opacity .2s ease, top .3s ease; }
.hamb i:nth-child(1) { top: 0; } .hamb i:nth-child(2) { top: 7px; } .hamb i:nth-child(3) { top: 14px; }
.menu-aperto .hamb i:nth-child(1) { top: 7px; transform: rotate(45deg); }
.menu-aperto .hamb i:nth-child(2) { opacity: 0; }
.menu-aperto .hamb i:nth-child(3) { top: 7px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  :root { --h-header: 78px; }
  .nav { padding-block: 10px; min-height: var(--h-header); }
  .brand img { height: 56px; }
  .nav-toggle { display: grid; }
  .menu-pannello {
    position: fixed; left: 0; right: 0; bottom: 0;
    top: calc(var(--h-header) + env(safe-area-inset-top, 0px));
    z-index: 49; display: flex; flex-direction: column; justify-content: space-between; align-items: stretch;
    background: var(--navy); color: var(--bianco);
    padding: 28px max(24px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px));
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
  }
  .menu-aperto .menu-pannello { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .3s ease; }
  .menu-pannello .menu { position: static; display: flex; flex-direction: column; align-items: stretch; gap: 0; background: none; border: 0; padding: 0; }
  .menu-pannello .menu li { opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .35s ease; }
  .menu-aperto .menu-pannello .menu li { opacity: 1; transform: none; }
  .menu-aperto .menu-pannello .menu li:nth-child(2) { transition-delay: .06s; }
  .menu-aperto .menu-pannello .menu li:nth-child(3) { transition-delay: .12s; }
  .menu-aperto .menu-pannello .menu li:nth-child(4) { transition-delay: .18s; }
  .menu-pannello .menu a {
    display: flex; align-items: center; justify-content: space-between; min-height: 64px;
    font-family: var(--f-titoli); font-weight: 700; font-size: 1.9rem; letter-spacing: -0.02em;
    color: var(--bianco); padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .menu-pannello .menu a::after { content: "→"; position: static; display: block; width: auto; height: auto; background: none; transform: none; color: var(--giallo); font-size: 1.4rem; }
  .menu-pannello .menu a[aria-current="page"] { color: var(--giallo); }
  .menu-extra { display: grid; gap: 16px; margin-top: 36px; }
  .menu-extra p { margin: 0; display: grid; gap: 2px; color: #c7cde0; }
  .menu-extra span { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--giallo); }
  .menu-extra a { color: var(--bianco); font-size: 1.1rem; text-decoration: none; padding-block: 6px; }
  .menu-aperto .site-header { box-shadow: none; }
  body.menu-aperto { overflow: hidden; }
  .menu-aperto .site-header.nascosto { transform: none; }
}

/* ---------- Hero (home) ---------- */
.hero { background: var(--blu); color: var(--bianco); position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 50%; background-image: radial-gradient(rgba(255,255,255,.14) 1.4px, transparent 1.6px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 50%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 50%, transparent 100%); pointer-events: none; }
.hero-testo { position: relative; display: grid; align-content: center; gap: 22px; padding: clamp(60px, 8vw, 110px) clamp(24px, 5vw, 64px) clamp(60px, 8vw, 110px) max(24px, calc((100vw - var(--max)) / 2)); }
.hero h1 { color: var(--bianco); max-width: 12ch; }
.hero p { color: #d9e7f6; font-size: 1.08rem; max-width: 46ch; }
.hero .hero-foto { position: relative; min-height: 320px; }
.hero .hero-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 85%; }
.hero .hero-foto::after { content: ""; position: absolute; left: 0; bottom: 0; width: 38%; height: 14px; background: var(--giallo); }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-testo { padding: 56px max(24px, env(safe-area-inset-right, 0px)) 48px max(24px, env(safe-area-inset-left, 0px)); }
  .hero .hero-foto { min-height: 260px; }
  .hero::before { width: 100%; }
}

/* ---------- Banner pagine interne ---------- */
.banner { background: var(--navy); color: var(--bianco); position: relative; overflow: hidden; isolation: isolate; }
.banner .banner-bg { position: absolute; inset: 0 0 0 45%; z-index: -1; }
.banner .banner-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.banner .banner-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 0%, rgba(17,26,58,.35) 45%, rgba(17,26,58,.1) 100%); }
.banner .wrap { padding-block: clamp(70px, 9vw, 120px); display: grid; gap: 18px; }
.banner h1 { color: var(--bianco); max-width: 14ch; }
.banner p { color: #c7cde0; font-size: 1.08rem; max-width: 52ch; }
.banner-semplice .wrap { padding-block: clamp(56px, 7vw, 90px); }
.banner-semplice h1 { max-width: 20ch; }
@media (max-width: 760px) { .banner .banner-bg { inset: 0; opacity: .35; } }

/* ---------- Sezioni ---------- */
.sezione { padding-block: clamp(76px, 9vw, 120px); }
.sezione.grigio { background: var(--grigio); }
.testa { display: grid; gap: 16px; margin-bottom: clamp(40px, 5vw, 60px); }
.testa.centro { text-align: center; justify-items: center; }
.testa.centro p { margin-inline: auto; }

/* icone (SVG gialli) */
.icona img { width: 58px; height: 58px; }

/* reparti (servizi in home) */
.reparti { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.reparto { position: relative; background: var(--bianco); padding: 44px 30px 36px; text-align: center; display: grid; gap: 12px; justify-items: center; align-content: start; transition: background .3s ease, color .3s ease; }
.reparto .icona { margin-bottom: 8px; transition: transform .35s ease; }
.reparto h3 a { color: inherit; text-decoration: none; }
.reparto h3 a::after { content: ""; position: absolute; inset: 0; }
.reparto:has(a:focus-visible) { outline: 2px solid var(--giallo); outline-offset: 3px; }
.reparto h3 a:focus-visible { outline: none; }
.reparto p { color: var(--testo-2); font-size: .96rem; }
.reparto::after { content: "···"; color: var(--testo-2); letter-spacing: .3em; font-weight: 700; line-height: 1; margin-top: 4px; transition: color .3s ease; }
.reparto:hover { background: var(--navy); }
.reparto:hover h3 { color: var(--bianco); }
.reparto:hover p { color: #b9c0d6; }
.reparto:hover .icona { transform: translateY(-4px); }
.reparto:hover::after { color: var(--giallo); }
.reparti-piede { justify-content: center; margin-top: 44px; }
@media (max-width: 900px) { .reparti { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .reparti { grid-template-columns: 1fr; } }

/* immagine con riquadro sovrapposto + cronologia */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.duo > * { min-width: 0; }
.foto-box { position: relative; padding: 0 30px 50px 0; }
.foto-box .wp-block-image img { width: 88%; height: auto; aspect-ratio: 4 / 4.8; object-fit: cover; }
.foto-box .riquadro { position: absolute; right: 0; bottom: 0; width: 58%; max-width: none; background: var(--navy); color: var(--bianco); padding: clamp(26px, 3.4vw, 44px); }
.foto-box .riquadro strong { display: block; font-family: var(--f-titoli); font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.12; letter-spacing: -0.02em; }
.duo-testo { display: grid; gap: 22px; justify-items: start; }
.duo-testo p { color: var(--testo-2); }
.cronologia { list-style: none; margin: 0; padding: 0; width: 100%; border-top: 1px solid var(--linea); }
.cronologia li { display: grid; grid-template-columns: 70px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--linea); }
.cronologia strong { font-family: var(--f-titoli); color: var(--blu); }
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; } }

/* split navy + foto */
.split { display: grid; grid-template-columns: 1fr 1fr; background: var(--navy); color: var(--bianco); }
.split-testo { display: grid; align-content: center; gap: 24px; padding: clamp(60px, 8vw, 110px) clamp(24px, 5vw, 80px) clamp(60px, 8vw, 110px) max(24px, calc((100vw - var(--max)) / 2)); }
.split .wp-block-quote { margin: 0; padding: 0; border: 0; }
.split .wp-block-quote::before { content: "”"; display: block; font-family: var(--f-titoli); font-size: 4rem; line-height: .6; color: var(--giallo); font-weight: 800; height: 28px; margin-bottom: 24px; }
.split .wp-block-quote p { font-family: var(--f-titoli); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; color: var(--bianco); max-width: 22ch; }
.split p { color: #b9c0d6; }
.split-firma strong { display: block; color: var(--bianco); font-weight: 700; }
.split-firma span { color: #8f97b1; font-size: .95rem; }
.split .split-foto { position: relative; min-height: 420px; }
.split .split-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split-testo { padding-inline: max(24px, env(safe-area-inset-left, 0px)); } .split .split-foto { min-height: 280px; } }

/* servizi + box numeri */
.spettro { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.spettro > * { min-width: 0; }
.spettro-foto { position: relative; padding-bottom: 90px; }
.spettro-foto .wp-block-image img { width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: cover; }
.numeri-box { position: absolute; right: -40px; bottom: 0; width: 70%; background: var(--blu); color: var(--bianco); padding: 34px 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.numeri-box small { display: block; font-weight: 700; font-size: .8rem; color: #cfe0f3; }
.numeri-box strong { display: block; font-family: var(--f-titoli); font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.1; letter-spacing: -0.02em; margin: 6px 0; font-variant-numeric: tabular-nums; }
.numeri-box span { font-size: .88rem; color: #cfe0f3; line-height: 1.4; display: block; }
.spettro-testo { display: grid; gap: 18px; justify-items: start; padding-top: 10px; }
.spettro-testo p { color: var(--testo-2); }
@media (max-width: 900px) {
  .spettro { grid-template-columns: 1fr; }
  .numeri-box { position: relative; right: auto; width: 100%; margin-top: -40px; }
  .spettro-foto { padding-bottom: 0; }
}
@media (max-width: 480px) { .numeri-box { grid-template-columns: 1fr 1fr; } }

/* percorso */
.processo { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.processo::before, .processo::after { content: ""; position: absolute; top: 33px; left: 12.5%; right: 12.5%; height: 2px; }
.processo::before { background: var(--linea); }
.processo::after { background: var(--giallo); transform-origin: left; }
.fase { display: grid; justify-items: center; text-align: center; gap: 10px; align-content: start; }
.fase-1 { --i: 1; } .fase-2 { --i: 2; } .fase-3 { --i: 3; }
.fase p { color: var(--testo-2); font-size: .96rem; max-width: 28ch; }
.fase .fase-punto { position: relative; z-index: 1; width: 68px; height: 68px; display: grid; place-items: center; background: var(--navy); border: 2px solid var(--navy); box-shadow: 0 0 0 10px var(--bianco); margin-bottom: 8px; }
.sezione.grigio .fase .fase-punto { box-shadow: 0 0 0 10px var(--grigio); }
.fase .fase-punto img { width: 28px; height: 28px; transition: filter .3s ease, opacity .3s ease; }
.processo.attesa::after { transform: scaleX(0); }
.processo.attesa .fase-punto { background: var(--bianco); border-color: var(--linea); }
.processo.attesa .fase-punto img { filter: grayscale(1); opacity: .45; }
.processo.attesa .fase h3, .processo.attesa .fase p { opacity: .3; }
.processo.anima::after { animation: riempi 3.2s cubic-bezier(.45,0,.25,1) both; }
.processo.anima .fase-punto { animation: accendi .6s ease both; animation-delay: calc(var(--i, 0) * 1s); }
.processo.anima .fase-punto img { animation: colora .6s ease both; animation-delay: calc(var(--i, 0) * 1s); }
.processo.anima .fase h3, .processo.anima .fase p { animation: compari .6s ease both; animation-delay: calc(var(--i, 0) * 1s + .1s); }
@keyframes riempi { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes riempi-v { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes accendi { 0% { background: var(--bianco); border-color: var(--linea); transform: scale(1); } 50% { transform: scale(1.1); } 100% { background: var(--navy); border-color: var(--navy); transform: scale(1); } }
@keyframes colora { from { filter: grayscale(1); opacity: .45; } to { filter: none; opacity: 1; } }
@keyframes compari { from { opacity: .3; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .processo { grid-template-columns: 1fr; gap: 30px; }
  .processo::before, .processo::after { top: 34px; bottom: 34px; left: 33px; right: auto; width: 2px; height: auto; }
  .processo::after { transform-origin: top; }
  .processo.attesa::after { transform: scaleY(0); }
  .processo.anima::after { animation-name: riempi-v; }
  .fase { grid-template-columns: 68px 1fr; justify-items: start; text-align: left; column-gap: 22px; row-gap: 4px; }
  .fase .fase-punto { grid-row: span 2; margin: 0; }
}

/* FAQ */
.faq-lista { max-width: 900px; margin: 0 auto; border-top: 1px solid var(--linea); }
.faq-item { border-bottom: 1px solid var(--linea); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-family: var(--f-titoli); font-weight: 700; font-size: 1.12rem; color: var(--nero); letter-spacing: -0.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 34px; height: 34px;
  background:
    linear-gradient(var(--nero), var(--nero)) center / 12px 2px no-repeat,
    linear-gradient(var(--nero), var(--nero)) center / 2px 12px no-repeat,
    var(--grigio);
  transition: background-color .25s ease;
}
.faq-item[open] summary::after {
  background:
    linear-gradient(var(--nero), var(--nero)) center / 12px 2px no-repeat,
    var(--giallo);
}
.faq-item p { padding: 0 60px 24px 0; color: var(--testo-2); }

/* contatto (CTA + recapiti) */
.contatto { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.contatto > * { min-width: 0; }
.contatto-testo { display: grid; gap: 20px; justify-items: start; }
.contatto-testo p { color: var(--testo-2); }
.contatto-dati { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contatto-dati > div { border-top: 3px solid var(--giallo); padding-top: 18px; display: grid; gap: 6px; align-content: start; }
.contatto-dati h3 { font-size: 1rem; }
.contatto-dati p, .contatto-dati a { color: var(--testo-2); text-decoration: none; overflow-wrap: anywhere; }
.contatto-dati a:hover { color: var(--blu); }
@media (max-width: 900px) { .contatto { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .contatto-dati { grid-template-columns: 1fr; } }

/* servizi dettaglio */
.servizio-riga { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; padding-block: clamp(44px, 6vw, 72px); }
.servizio-riga:first-child { padding-top: 0; }
.servizio-riga:last-child { padding-bottom: 0; }
.servizio-riga + .servizio-riga { border-top: 1px solid var(--linea); }
.servizio-riga > * { min-width: 0; }
.servizio-riga:nth-child(even) .servizio-foto { order: 2; }
.servizio-riga .servizio-foto { position: relative; }
.servizio-riga .servizio-foto img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.servizio-riga .servizio-foto::after { content: ""; position: absolute; left: 0; bottom: -14px; width: 32%; height: 14px; background: var(--giallo); }
.servizio-testo { display: grid; gap: 16px; justify-items: start; }
.servizio-testo .icona img { width: 48px; height: 48px; }
.servizio-testo p { color: var(--testo-2); }
.punti { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; width: 100%; }
.punti li { position: relative; padding-left: 26px; }
.punti li::before { content: ""; position: absolute; left: 0; top: .62em; width: 14px; height: 2px; background: var(--giallo); }
@media (max-width: 900px) { .servizio-riga { grid-template-columns: 1fr; } .servizio-riga:nth-child(even) .servizio-foto { order: 0; } }

.motivi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.motivo { background: var(--bianco); padding: 38px 30px; display: grid; gap: 12px; align-content: start; transition: background .3s ease; }
.motivo .icona { margin-bottom: 6px; }
.motivo .icona img { width: 46px; height: 46px; }
.motivo p { color: var(--testo-2); }
.motivo:hover { background: var(--navy); }
.motivo:hover h3 { color: var(--bianco); }
.motivo:hover p { color: #b9c0d6; }
@media (max-width: 820px) { .motivi { grid-template-columns: 1fr; } }

/* ---------- Pagina contatti ---------- */
.contatti-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.contatti-grid > * { min-width: 0; }
.sedi { display: grid; gap: 30px; }
.sede { border-top: 3px solid var(--giallo); padding-top: 20px; display: grid; gap: 6px; }
.sede .sede-titolo { font-size: 1.15rem; letter-spacing: -0.01em; }
.sede p { color: var(--testo-2); overflow-wrap: anywhere; }
.sede .sede-info { display: grid; grid-template-columns: 80px 1fr; gap: 8px; margin: 0; color: var(--testo-2); }
.sede .sede-info span { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--testo); padding-top: 3px; }
.sede .sede-info a { font-weight: 600; }
.sede .link-sotto { justify-self: start; margin-top: 6px; }
.sede a { display: inline-block; padding-block: 6px; }
.sede .sede-info a, .sede .link-sotto a { padding-block: 0 4px; }
@media (max-width: 900px) { .contatti-grid { grid-template-columns: 1fr; } }

/* ---------- Modulo (Contact Form 7) ---------- */
.modulo { display: grid; gap: 22px; }
.modulo-cf7 { display: grid; gap: 22px; }
.modulo-cf7 .hidden-fields-container { display: none; }
.campi { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; }
.campi .pieno { grid-column: 1 / -1; }
@media (max-width: 560px) { .campi { grid-template-columns: 1fr; } }
.campo { display: grid; gap: 4px; min-width: 0; }
.campo label { font-size: .85rem; color: var(--testo-2); }
.campo .wpcf7-form-control-wrap { display: block; }
.campo input, .campo select, .campo textarea { font: inherit; font-size: 16px; min-height: 44px; color: var(--testo); width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid #c9ccd3; border-radius: 0; background: transparent; }
.campo select { padding-right: 20px; }
.campo textarea { min-height: 110px; height: 110px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-bottom-color: var(--blu); }
.campo .wpcf7-not-valid { border-bottom-color: #b3261e; }
.wpcf7-not-valid-tip { display: block; margin-top: 4px; font-size: .85rem; color: #b3261e; }
.privacy { font-size: .9rem; color: var(--testo-2); }
.privacy .wpcf7-list-item { margin: 0; display: block; }
.privacy label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.privacy input { margin-top: 3px; width: 20px; height: 20px; accent-color: var(--blu); flex: none; }
.modulo-cf7 .invio { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.wpcf7-spinner { visibility: hidden; display: inline-block; width: 22px; height: 22px; border: 2px solid var(--linea); border-top-color: var(--blu); border-radius: 50%; animation: gira .8s linear infinite; }
.submitting .wpcf7-spinner { visibility: visible; }
@keyframes gira { to { transform: rotate(360deg); } }
.wpcf7-response-output { margin: 0; padding: 14px 16px; font-weight: 500; }
.wpcf7-response-output:empty { display: none; }
.wpcf7 form.sent .wpcf7-response-output { background: #e6f4ea; color: #1d5a2c; }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output { background: #fff2c9; color: #7a5600; }
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output { background: #fbe9e7; color: #8c1d18; }
.wpcf7 .screen-reader-response { position: absolute; overflow: hidden; clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; padding: 0; border: 0; word-wrap: normal !important; }
.wpcf7 .wpcf7-form-control-wrap { position: relative; }

/* ---------- Pagine di testo (privacy, cookie) ---------- */
.prosa .wp-block-post-content { max-width: 820px; }
.prosa .wp-block-post-content > * + * { margin-top: 1.1em; }
.prosa .wp-block-post-content > :is(h2, h3) + * { margin-top: .6em; }
.prosa h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.prosa .wp-block-post-content > h2 { margin-top: 2em; }
.prosa .wp-block-post-content > h3 { margin-top: 1.6em; }
.prosa ul, .prosa ol { padding-left: 1.3em; }
.prosa li + li { margin-top: .35em; }
.prosa table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prosa th, .prosa td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--linea); vertical-align: top; }
.prosa th { font-family: var(--f-titoli); color: var(--nero); }
.prosa .wp-block-table { margin: 0; overflow-x: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blu); color: #cfe0f3; }
.site-footer .wrap { padding-block: 80px 0; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 60px; }
.footer-top > * { min-width: 0; }
.footer-claim { display: grid; gap: 24px; align-content: start; }
.footer-claim img { height: 96px; width: auto; }
.footer-frase { font-family: var(--f-titoli); font-weight: 700; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; letter-spacing: -0.02em; color: var(--bianco); max-width: 16ch; }
.footer-titolo { font-family: var(--f-titoli); font-weight: 700; color: var(--bianco); font-size: 1rem; line-height: 1.08; letter-spacing: -0.025em; margin-bottom: 16px; }
.footer-top li { font-size: .95rem; overflow-wrap: anywhere; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.footer-top a, .footer-basso a { color: #ffffff; text-decoration: none; display: inline-block; padding-block: 6px; }
.footer-top a:hover, .footer-basso a:hover { color: var(--giallo); }
.footer-basso { border-top: 1px solid rgba(255,255,255,.2); padding-block: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; font-size: .86rem; color: #cfe0f3; }
.footer-basso ul { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.footer-basso [aria-current="page"] { color: var(--giallo); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-claim { grid-column: 1 / -1; } }
@media (max-width: 520px) {
  .site-footer .wrap { padding-top: 56px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; padding-bottom: 36px; }
  .footer-basso { flex-direction: column; align-items: flex-start; }
}

/* ---------- Comparsa allo scroll ---------- */
.pre { opacity: 0; transform: translateY(26px); }
.in { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s ease; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .pre { opacity: 1; transform: none; }
}

/* ---------- Mobile: spaziature e tipografia ---------- */
@media (max-width: 700px) {
  body { font-size: 1rem; }
  .sezione { padding-block: 56px; }
  .testa { margin-bottom: 32px; }
  h1 { font-size: clamp(2.3rem, 10vw, 2.9rem); }
  h2 { font-size: clamp(1.7rem, 7.4vw, 2.1rem); }
  .hero-testo { padding-top: 44px; padding-bottom: 40px; gap: 16px; }
  .hero .hero-foto { min-height: 220px; }
  .banner .wrap { padding-block: 52px; }

  /* servizi in home: elenco compatto, icona a sinistra */
  .reparti { gap: 12px; }
  .reparto { grid-template-columns: 48px 1fr; text-align: left; justify-items: start; align-items: start; column-gap: 16px; row-gap: 4px; padding: 20px 18px; }
  .reparto .icona { margin: 0; grid-row: span 2; }
  .reparto .icona img { width: 40px; height: 40px; }
  .reparto h3 { font-size: 1.05rem; }
  .reparto p { font-size: .93rem; }
  .reparto::after { display: none; }
  .reparti-piede { margin-top: 28px; }
  .reparti-piede .wp-block-button, .reparti-piede .wp-block-button__link { width: 100%; }

  .foto-box { padding: 0 0 40px; }
  .foto-box .wp-block-image img { width: 100%; aspect-ratio: 4 / 3.4; }
  .foto-box .riquadro { width: 72%; padding: 20px 22px; }
  .split-testo { padding-block: 52px; }
  .split .split-foto { min-height: 220px; }
  .numeri-box { padding: 24px 22px; gap: 16px 12px; }
  .faq-item summary { padding: 18px 0; font-size: 1.02rem; min-height: 56px; }
  .faq-item p { padding-right: 0; }
  .contatto-testo .wp-block-buttons, .contatto-testo .wp-block-button, .contatto-testo .wp-block-button__link, .modulo .wpcf7-submit { width: 100%; }
  .contatto-testo { justify-items: stretch; }
  .servizio-riga { padding-block: 36px; gap: 22px; }
  .servizio-testo .icona img { width: 40px; height: 40px; }
  .motivo { padding: 26px 22px; }
}

/* tocco: aree cliccabili ampie, niente evidenziazione grigia */
a, button, summary { -webkit-tap-highlight-color: transparent; }
.contatto-dati a { display: inline-block; padding-block: 6px; }
@media (hover: none) {
  .reparto:hover, .motivo:hover { background: var(--bianco); }
  .reparto:hover h3, .motivo:hover h3 { color: var(--nero); }
  .reparto:hover p, .motivo:hover p { color: var(--testo-2); }
}

/* ---------- Banner cookie (plugin Cookie Notice): adattato allo stile del sito ---------- */
#cookie-notice { font-family: var(--f-testo); font-size: .92rem; line-height: 1.5; }
#cookie-notice .cookie-notice-container,
#cookie-notice .cookie-revoke-container { padding: 18px max(24px, env(safe-area-inset-left, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)); }
#cookie-notice .cn-text-container { margin-bottom: 0; }
#cookie-notice .cn-button:not(.cn-button-custom) { font-family: var(--f-testo); font-weight: 700; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; border-radius: 0; padding: 11px 18px; margin: 4px 0 4px 10px; color: var(--navy); border: 2px solid var(--giallo); line-height: 1.2; }
#cookie-notice #cn-refuse-cookie { background-color: transparent !important; color: var(--bianco); border-color: var(--bianco); }
#cookie-notice #cn-more-info { background-color: transparent !important; color: var(--bianco); border-color: transparent; text-decoration: underline; text-underline-offset: 3px; letter-spacing: 0; text-transform: none; font-weight: 500; font-size: .9rem; }
#cookie-notice .cn-button:not(.cn-button-custom):hover { box-shadow: none; opacity: .85; }
#cookie-notice .cn-close-icon::before, #cookie-notice .cn-close-icon::after { background-color: var(--bianco); }
@media (max-width: 900px) {
  #cookie-notice .cn-buttons-container { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
  #cookie-notice .cn-button:not(.cn-button-custom) { margin: 0; }
}
