/* CancelliAutomaticiModena.com
   Colori: il giallo e il blu di Modena. Carattere: Archivo (OFL), ospitato sul sito. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/font/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --blu: #12305C;
  --blu-notte: #0A1F40;
  --blu-velo: #E9EFF8;
  --giallo: #FFD21F;
  --giallo-ombra: #C99A00;
  --inchiostro: #0E1B30;
  --testo: #2A3750;
  --fondo: #F3F6FA;
  --linea: #C8D2E0;
  --bianco: #FFFFFF;
  --wa: #0E7A43;
  --largo: 1160px;
  --raggio: 7px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--testo);
  background: var(--bianco);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blu); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 3px; }
a[href^="tel:"] { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--giallo); outline-offset: 2px; box-shadow: 0 0 0 6px var(--blu-notte); border-radius: 3px; }
h1, h2, h3 { color: var(--inchiostro); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.06; font-weight: 800; font-stretch: 112%; letter-spacing: -.012em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); line-height: 1.15; font-weight: 800; font-stretch: 108%; letter-spacing: -.008em; }
h3 { font-size: 1.125rem; line-height: 1.3; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
strong { font-weight: 700; color: var(--inchiostro); }

.contenitore { width: min(100% - 40px, var(--largo)); margin-inline: auto; }
.stretto { max-width: 780px; }
.salta { position: absolute; left: -9999px; top: 0; background: var(--giallo); color: var(--blu-notte); padding: 10px 16px; font-weight: 700; z-index: 50; }
.salta:focus { left: 10px; top: 10px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.piccolo { font-size: .9375rem; }
.sotto { max-width: 68ch; margin-bottom: 1.6em; font-size: 1.125rem; }
.lead { font-size: clamp(1.125rem, 1.7vw, 1.3rem); line-height: 1.5; max-width: 62ch; }

/* Fascia a righe: richiama l'asta di una sbarra */
.righe { height: 8px; background: repeating-linear-gradient(-45deg, var(--giallo) 0 12px, var(--blu) 12px 24px); }

/* ---------- Testata ---------- */
.testata { background: var(--bianco); position: relative; z-index: 20; }
.testata-in { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.logo { flex: none; display: block; }
.logo img { width: auto; height: 48px; }
.menu { margin-left: auto; }
.menu ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu a { display: block; white-space: nowrap; padding: 8px 7px; text-decoration: none; font-weight: 600; color: var(--inchiostro); border-radius: 5px; font-size: 1rem; }
.menu a:hover { background: var(--blu-velo); }
.menu a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--giallo); }
.testata-tel { display: inline-flex; align-items: center; gap: 8px; background: var(--giallo); color: var(--blu-notte); font-weight: 800; font-stretch: 112%; font-size: 1.125rem; padding: 9px 14px; border-radius: var(--raggio); text-decoration: none; white-space: nowrap; box-shadow: 0 2px 0 var(--giallo-ombra); }
.testata-tel:hover { background: #FFDC4A; }
.menu-mobile { display: none; }

/* ---------- Targhetta con il telefono ---------- */
.contatto-azioni { display: flex; flex-wrap: wrap; align-items: stretch; gap: 14px; margin: 1.4em 0; }
.targhetta {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: 13px 28px 14px;
  background-color: var(--giallo);
  background-image:
    radial-gradient(circle at 11px 11px, rgba(10,31,64,.5) 0 2.6px, transparent 3.2px),
    radial-gradient(circle at calc(100% - 11px) 11px, rgba(10,31,64,.5) 0 2.6px, transparent 3.2px),
    radial-gradient(circle at 11px calc(100% - 11px), rgba(10,31,64,.5) 0 2.6px, transparent 3.2px),
    radial-gradient(circle at calc(100% - 11px) calc(100% - 11px), rgba(10,31,64,.5) 0 2.6px, transparent 3.2px);
  color: var(--blu-notte);
  border-radius: var(--raggio);
  text-decoration: none;
  box-shadow: 0 4px 0 var(--giallo-ombra);
  transition: transform .12s ease, box-shadow .12s ease;
}
.targhetta:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--giallo-ombra); }
.targhetta-riga { display: inline-flex; align-items: center; gap: 7px; font-size: .9375rem; font-weight: 600; line-height: 1.2; }
.targhetta-num { font-size: clamp(1.9rem, 5.2vw, 2.35rem); font-weight: 800; font-stretch: 122%; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 22px; border-radius: var(--raggio); font: inherit; font-weight: 700; font-size: 1.0625rem; text-decoration: none; border: 0; cursor: pointer; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 4px 0 #095730; }
.btn-wa:hover { background: #0B6A3A; }
.btn-wa .ico { width: 1.5em; height: 1.5em; }
.btn-invia { background: var(--blu); color: #fff; padding: 14px 28px; box-shadow: 0 4px 0 var(--blu-notte); }
.btn-invia:hover { background: #1A3F78; }

/* ---------- Apertura della home ---------- */
.eroe { background: var(--blu); color: #E3EAF6; overflow: hidden; }
.eroe-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; padding-block: 56px 64px; }
.eroe h1 { color: #fff; }
.eroe a:not(.targhetta):not(.btn) { color: #fff; font-weight: 700; }
.eroe-lead { font-size: clamp(1.125rem, 1.8vw, 1.3125rem); line-height: 1.5; max-width: 56ch; }
.eroe-punti { list-style: none; padding: 0; margin: 1.6em 0 0; display: flex; flex-wrap: wrap; gap: 8px 26px; font-weight: 600; color: #fff; }
.eroe-punti li { padding-left: 18px; position: relative; }
.eroe-punti li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; background: var(--giallo); border-radius: 2px; }
.eroe-foto img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: var(--raggio); box-shadow: 14px 14px 0 var(--blu-notte); }
.lampeggiante { display: inline-block; width: 13px; height: 13px; border-radius: 50%; background: var(--giallo); margin-right: 10px; vertical-align: .05em; animation: lampo 1s steps(1, end) 4; }
@keyframes lampo { 0%, 100% { opacity: 1; box-shadow: 0 0 0 5px rgba(255,210,31,.3); } 50% { opacity: .15; box-shadow: none; } }

/* ---------- Testa delle pagine interne ---------- */
.testa-pagina { background: var(--blu); color: #E3EAF6; padding: 34px 0 44px; }
.testa-pagina h1 { color: #fff; max-width: 22ch; }
.testa-pagina .lead { color: #fff; }
.testa-pagina a:not(.targhetta):not(.btn) { color: #fff; font-weight: 700; }
.testa-pagina p { max-width: 68ch; }
.briciole { font-size: .9375rem; margin-bottom: 22px; color: #B9C8E0; }
.briciole a { font-weight: 500 !important; color: #DCE6F5 !important; }
.nota-indip { font-size: .9375rem; border-left: 4px solid var(--giallo); padding: 2px 0 2px 16px; margin: 1.4em 0 0; max-width: 72ch; }
.nota-indip p:last-child { margin-bottom: 0; }

/* ---------- Sezioni ---------- */
.sezione { padding: 68px 0; }
.sezione-stretta { padding: 0 0 56px; }
.sezione-tinta { background: var(--fondo); }
.sezione-blu { background: var(--blu); color: #E3EAF6; }
.sezione-blu h2 { color: #fff; }
.sezione-blu a { color: #fff; }
.due { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: start; }
.due-largo { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); }
.testo h2:not(:first-child) { margin-top: 1.7em; }
.testo p, .testo li { max-width: 70ch; }
.foto-colonna { display: grid; gap: 28px; }

.spunte { list-style: none; padding: 0; }
.spunte li { position: relative; padding-left: 26px; margin-bottom: .55em; }
.spunte li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 3px solid var(--blu); border-bottom: 3px solid var(--blu); transform: rotate(-45deg); }
.elenco-num { padding-left: 1.3em; }
.elenco-num li { margin-bottom: .6em; padding-left: .2em; }
.elenco-num li::marker { font-weight: 800; color: var(--blu); }

/* Guasti */
.guasti { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 30px 44px; }
.guasto { border-top: 4px solid var(--giallo); padding-top: 14px; }
.guasto p { margin: 0; }
.guasti + .piccolo { margin-top: 1.8em; }
.due .guasti { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* Servizi */
.servizi { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
.servizi a { display: grid; grid-template-columns: 210px 1fr; gap: 20px; align-items: baseline; padding: 20px 0; border-top: 1.5px solid var(--linea); text-decoration: none; color: var(--testo); }
.servizi strong { font-size: 1.3125rem; font-stretch: 110%; font-weight: 800; color: var(--blu); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--giallo); }
.servizi a:hover strong { text-decoration-color: var(--blu); }

/* Marche */
.targhe { list-style: none; padding: 0; margin: 0 0 1.4em; display: flex; flex-wrap: wrap; gap: 10px; }
.targhe a { display: block; padding: 9px 17px; border: 1.5px solid currentColor; border-radius: 5px; font-weight: 700; font-stretch: 112%; text-decoration: none; }
.sezione-blu .targhe a:hover { background: var(--giallo); color: var(--blu-notte); border-color: var(--giallo); }
.targhe a:hover { background: var(--blu); color: #fff; }
.elenco-marche { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 8px 48px; margin-bottom: 2em; }
.voce-marca { border-top: 1.5px solid var(--linea); padding: 18px 0 6px; }
.voce-marca h2 { font-size: 1.3125rem; margin-bottom: .35em; }
.voce-marca p { margin-bottom: .5em; }

/* Passi */
.passi { list-style: none; padding: 0; margin: 0; counter-reset: passo; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.passi li { counter-increment: passo; position: relative; padding-top: 58px; }
.passi li::before { content: counter(passo); position: absolute; top: 0; left: 0; width: 44px; height: 44px; display: grid; place-items: center; background: var(--giallo); color: var(--blu-notte); font-weight: 800; font-stretch: 122%; font-size: 1.375rem; border-radius: 5px; }
.passi p { margin: 0; }
.passi + .sotto { margin-top: 2.2em; margin-bottom: 0; }
.due .passi { grid-template-columns: 1fr; gap: 20px; }
.due .passi li { padding: 2px 0 0 62px; min-height: 46px; }

/* Foto */
.foto { margin: 0; }
.foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--raggio); }
.foto figcaption { font-size: .875rem; color: #55637C; margin-top: 8px; }
.galleria { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 22px; }
.galleria img { aspect-ratio: 4 / 3; object-fit: cover; }

/* Recensioni */
.recensioni { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.recensione { margin: 0; background: var(--bianco); border-left: 5px solid var(--giallo); padding: 20px 22px; border-radius: 0 var(--raggio) var(--raggio) 0; box-shadow: inset 0 0 0 1.5px var(--linea); }
.sezione:not(.sezione-tinta) .recensione { background: var(--fondo); box-shadow: none; }
.recensione blockquote { margin: 0; }
.recensione blockquote p { margin: 0 0 .9em; }
.stelle { color: #B88A00; letter-spacing: 2px; margin-bottom: 8px; font-size: 1.125rem; }
.recensione figcaption { font-size: .9375rem; }
.recensione figcaption strong { display: block; }

/* Zone */
.zone { columns: 2; column-gap: 56px; }
.zona { break-inside: avoid; margin-bottom: 1.5em; }
.zona h3 { margin-bottom: .25em; }
.zona p { margin: 0; line-height: 1.9; }
.zona p a, .piede-comuni p a { white-space: nowrap; }
.link-colonne { list-style: none; padding: 0; margin: 0 0 1.4em; columns: 3; column-gap: 40px; }
.link-colonne li { break-inside: avoid; padding: 5px 0; }

/* Domande */
.faq details { border-top: 1.5px solid var(--linea); }
.faq details:last-child { border-bottom: 1.5px solid var(--linea); }
.faq summary { cursor: pointer; list-style: none; padding: 17px 40px 17px 0; font-weight: 700; color: var(--inchiostro); position: relative; font-size: 1.125rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 10px; font-size: 1.7rem; font-weight: 500; color: var(--blu); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; max-width: 70ch; }

/* Fascia finale */
.fascia { background: var(--blu-notte); color: #D9E3F3; }
.fascia-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 48px; padding-block: 46px; }
.fascia h2 { color: #fff; margin-bottom: .25em; }
.fascia p { margin: 0; font-size: 1.125rem; }
.fascia .contatto-azioni { margin: 0; }

/* Modulo */
.modulo { max-width: 660px; }
.campi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.modulo label { display: block; font-weight: 700; color: var(--inchiostro); margin-bottom: 5px; font-size: 1rem; }
.opz { font-weight: 400; color: #55637C; }
.modulo input[type=text], .modulo input[type=tel], .modulo input[type=email], .modulo select, .modulo textarea { width: 100%; font: inherit; color: var(--inchiostro); padding: 11px 12px; border: 1.5px solid #7F8FA9; border-radius: 6px; background: #fff; }
.modulo textarea { resize: vertical; }
.consenso label { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; }
.consenso input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.trappola { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.avviso { border: 2px solid #A61B1B; background: #FDF0F0; color: #6E1010; padding: 14px 18px; border-radius: 6px; margin-bottom: 20px; }
.avviso ul { margin: 6px 0 0; }
.modulo-nota { font-size: .9375rem; }
.scheda-azienda { background: var(--fondo); padding: 26px 28px; border-radius: var(--raggio); border-top: 5px solid var(--giallo); }
.scheda-azienda h2 { font-size: 1.5rem; }

/* ---------- Piè di pagina ---------- */
.piede { background: var(--blu); color: #C9D6EA; padding: 56px 0 30px; font-size: .9688rem; }
.piede a { color: #fff; text-decoration-color: rgba(255,255,255,.4); }
.piede h2 { color: #fff; font-size: 1.0625rem; font-stretch: 108%; margin-bottom: .7em; }
.piede ul { list-style: none; padding: 0; margin: 0; }
.piede li { padding: 3px 0; }
.piede-alto { display: grid; grid-template-columns: 1.1fr .8fr 1.4fr; gap: 48px; }
.piede-azienda img { height: 48px; width: auto; margin-bottom: 18px; }
.piede-contatti { line-height: 1.9; }
.piede-contatti a:first-child { font-size: 1.4375rem; font-weight: 800; font-stretch: 115%; color: var(--giallo); text-decoration: none; }
.due-col { columns: 2; column-gap: 30px; }
.piede-comuni, .piede-nota { border-top: 1px solid rgba(255,255,255,.2); margin-top: 34px; padding-top: 26px; }
.piede-comuni p { line-height: 1.95; margin: 0; }
.piede-nota p { max-width: 96ch; font-size: .9063rem; }
.piede-basso { border-top: 1px solid rgba(255,255,255,.2); margin-top: 26px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; font-size: .9063rem; }
.piede-basso p { margin: 0; }

.barra-mobile { display: none; }

/* ---------- Schermi medi e telefoni ---------- */
@media (max-width: 1200px) {
  .menu { display: none; }
  .testata-tel { margin-left: auto; }
  .menu-mobile { display: block; position: relative; }
  .menu-mobile summary { list-style: none; width: 46px; height: 46px; display: grid; place-content: center; gap: 6px; cursor: pointer; border: 1.5px solid var(--linea); border-radius: 6px; }
  .menu-mobile summary::-webkit-details-marker { display: none; }
  .menu-mobile summary span { display: block; width: 22px; height: 2.5px; background: var(--blu); border-radius: 2px; }
  .menu-mobile ul { position: absolute; right: 0; top: 56px; width: min(300px, calc(100vw - 40px)); background: #fff; list-style: none; margin: 0; padding: 8px; border-radius: var(--raggio); box-shadow: 0 12px 34px rgba(10,31,64,.28); border: 1.5px solid var(--linea); }
  .menu-mobile a { display: block; padding: 12px 14px; text-decoration: none; font-weight: 600; color: var(--inchiostro); border-radius: 5px; }
  .menu-mobile a:hover { background: var(--blu-velo); }
  .passi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .servizi a { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 860px) {
  body { padding-bottom: 62px; }
  .eroe-in, .due, .due-largo { grid-template-columns: 1fr; gap: 34px; }
  .eroe-in { padding-block: 34px 44px; }
  .eroe-foto img { aspect-ratio: 16 / 10; box-shadow: 8px 8px 0 var(--blu-notte); }
  .sezione { padding: 46px 0; }
  .sezione-stretta { padding: 0 0 40px; }
  .servizi { grid-template-columns: 1fr; }
  .zone { columns: 1; }
  .link-colonne { columns: 1; }
  .galleria { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .piede-alto { grid-template-columns: 1fr; gap: 30px; }
  .campi { grid-template-columns: 1fr; }
  .fascia-in { padding-block: 36px; }
  .barra-mobile { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1.25fr 1fr; box-shadow: 0 -4px 18px rgba(10,31,64,.25); }
  .barra-mobile a { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 62px; font-weight: 800; font-stretch: 108%; font-size: 1.125rem; text-decoration: none; }
  .barra-tel { background: var(--giallo); color: var(--blu-notte); }
  .barra-wa { background: var(--wa); color: #fff; }
  .barra-mobile .ico { width: 1.4em; height: 1.4em; }
}
@media (max-width: 560px) {
  .contenitore { width: min(100% - 32px, var(--largo)); }
  .logo img { height: 40px; }
  .testata-in { min-height: 64px; gap: 12px; }
  .testata-tel span { display: none; }
  .testata-tel { padding: 11px 13px; }
  .testata-tel .ico { width: 1.3em; height: 1.3em; }
  .contatto-azioni { flex-direction: column; }
  .targhetta, .btn-wa { width: 100%; align-items: center; }
  .passi { grid-template-columns: 1fr; gap: 22px; }
  .passi li { padding: 2px 0 0 60px; min-height: 46px; }
  .due-col { columns: 1; }
  .piede-comuni p a, .zona p a { display: inline-block; padding: 3px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lampeggiante { animation: none; }
  .targhetta { transition: none; }
}
@media print {
  .testata .menu, .menu-mobile, .barra-mobile, .fascia, .righe { display: none; }
  body { padding: 0; }
}
