/* Giglio Bianco – impresa di pulizie | foglio di stile */
:root {
  color-scheme: light;
  --navy: #123b73;
  --blu: #1e6bb8;
  --cielo: #5daee6;
  --nebbia: #eef5fc;
  --bianco: #ffffff;
  --inchiostro: #17294a;
  --grigio: #4f6079;
  --foglia: #3b8a3c;
  --linea: #cfe2f5;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --script: "Allura", "Brush Script MT", cursive;
  --max: 1120px;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 84px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bianco);
  color: var(--inchiostro);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  background: rgba(255,255,255,.96); z-index: 60;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blu); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--cielo); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); color: var(--navy); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; max-width: 68ch; }
.piccolo { font-size: .93rem; color: var(--grigio); }

.contenitore { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.sezione { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.sezione-nebbia { background: var(--nebbia); }
.salta { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; }
.salta:focus { left: 1rem; top: calc(env(safe-area-inset-top, 0px) + .5rem); }

/* Intestazione */
.testata {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--linea);
}
.testata .contenitore { display: flex; align-items: center; justify-content: flex-start; gap: 1rem; min-height: 72px; }
.marchio { margin-right: auto; flex: none; display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy); }
.marchio img { width: 46px; height: 46px; }
.marchio-testo { display: flex; flex-direction: column; line-height: 1; }
.marchio-nome { font-family: var(--serif); font-weight: 700; font-size: 1.45rem; letter-spacing: .06em; white-space: nowrap; }
.marchio-sotto, .nav a { white-space: nowrap; }
.marchio-sotto { font-size: .72rem; letter-spacing: .14em; color: var(--blu); margin-top: .25rem; }
.menu-btn {
  display: none; background: none; border: 1px solid var(--linea); border-radius: 10px; padding: .55rem .7rem;
  color: var(--navy); font: inherit; font-weight: 600; cursor: pointer;
}
.nav ul { list-style: none; display: flex; gap: .1rem; margin: 0; padding: 0; align-items: center; }
.nav a { display: block; padding: .5rem .7rem; color: var(--inchiostro); text-decoration: none; font-weight: 500; font-size: .98rem; border-radius: 8px; }
.nav a:hover { color: var(--navy); background: var(--nebbia); }
.nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--cielo); border-radius: 0; }
.nav .nav-cta { background: var(--navy); color: #fff; border-radius: 999px; padding: .55rem 1.1rem; margin-left: .4rem; }
.nav .nav-cta:hover { background: var(--blu); color: #fff; }

@media (max-width: 1260px) {
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--linea); display: none; }
  .nav.aperto { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: .5rem 1.25rem 1.25rem; gap: 0; }
  .nav a { padding: .85rem .25rem; border-bottom: 1px solid var(--nebbia); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--blu); }
  .nav .nav-cta { margin: 1rem 0 0; text-align: center; border-bottom: 0; }
}

/* Pulsanti */
.pulsanti { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: var(--sans); line-height: 1.2;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-pieno { background: var(--navy); color: #fff; }
.btn-pieno:hover { background: var(--blu); color: #fff; }
.btn-bordo { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-bordo:hover { background: var(--nebbia); color: var(--navy); }

/* Apertura (hero) */
.apertura { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.apertura .contenitore { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.apertura-immagine { position: relative; }
.apertura-immagine::before {
  content: ""; position: absolute; inset: 6% 10% -4% -6%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--nebbia), rgba(238,245,252,0) 100%);
  z-index: -1;
}
.motto { font-family: var(--script); font-size: clamp(1.9rem, 4vw, 2.5rem); color: var(--blu); line-height: 1.1; margin: .2rem 0 1.2rem; }
.apertura .introduzione { font-size: 1.15rem; color: var(--grigio); max-width: 34rem; }
.garanzie { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: var(--navy); font-weight: 500; font-size: .97rem; }
.garanzie li { display: flex; align-items: center; gap: .45rem; }
.garanzie svg { width: 18px; height: 18px; color: var(--foglia); flex: none; }
@media (max-width: 860px) {
  .apertura .contenitore { grid-template-columns: 1fr; gap: 1rem; }
  .apertura-immagine { order: -1; max-width: 340px; margin: 0 auto; }
}

/* Intestazione pagine interne */
.testa-pagina { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem); background: linear-gradient(180deg, var(--nebbia), #fff); border-bottom: 1px solid var(--linea); }
.testa-pagina .introduzione { font-size: 1.15rem; color: var(--grigio); max-width: 44rem; }

/* Elenco servizi in stile biglietto da visita */
.servizi { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--linea); }
.servizi li { border-bottom: 1px solid var(--linea); }
.servizi a { display: grid; grid-template-columns: 64px 1fr auto; gap: 1.1rem; align-items: center; padding: 1.3rem .25rem; text-decoration: none; color: inherit; }
.servizi a:hover h3 { color: var(--blu); }
.servizi p { margin: .2rem 0 0; color: var(--grigio); }
.servizi h3 { margin: 0; }
.cerchio { width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; }
.cerchio svg { width: 30px; height: 30px; }
.freccia { width: 22px; height: 22px; color: var(--blu); }
@media (max-width: 560px) {
  .servizi a { grid-template-columns: 52px 1fr; }
  .cerchio { width: 52px; height: 52px; }
  .cerchio svg { width: 25px; height: 25px; }
  .freccia { display: none; }
}

/* Due colonne */
.colonne { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 820px) { .colonne { grid-template-columns: 1fr; } }

/* Punti di forza */
.punti { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem 2.2rem; }
.punti li { display: grid; grid-template-columns: 40px 1fr; gap: .9rem; }
.punti svg { width: 34px; height: 34px; color: var(--blu); }
.punti strong { display: block; color: var(--navy); font-size: 1.08rem; margin-bottom: .15rem; }
.punti span { color: var(--grigio); font-size: .98rem; }
@media (max-width: 680px) { .punti { grid-template-columns: 1fr; } }

/* Passaggi (sequenza reale) */
.passaggi { list-style: none; counter-reset: passo; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.passaggi li { counter-increment: passo; position: relative; padding-top: 3.6rem; }
.passaggi li::before {
  content: counter(passo); position: absolute; top: 0; left: 0; width: 2.8rem; height: 2.8rem; border-radius: 50%;
  border: 2px solid var(--cielo); color: var(--navy); font-family: var(--serif); font-weight: 700; font-size: 1.45rem;
  display: grid; place-items: center; background: #fff;
}
.passaggi strong { display: block; font-family: var(--serif); font-size: 1.45rem; color: var(--navy); margin-bottom: .3rem; }
.passaggi span { color: var(--grigio); }
@media (max-width: 760px) { .passaggi { grid-template-columns: 1fr; gap: 1.4rem; } .passaggi li { padding: 0 0 0 4rem; } }

/* Liste con spunta */
.spunte { list-style: none; padding: 0; margin: 1rem 0 1.4rem; }
.spunte li { position: relative; padding-left: 1.9rem; margin-bottom: .6rem; }
.spunte li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--nebbia) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e6bb8' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
  box-shadow: inset 0 0 0 1px var(--linea);
}

/* Riquadro evidenziato */
.riquadro { background: #fff; border: 1px solid var(--linea); border-radius: 18px; padding: clamp(1.4rem, 3vw, 2rem); }
.riquadro-blu { background: var(--navy); color: #e9f2fc; border: 0; }
.riquadro-blu h2, .riquadro-blu h3 { color: #fff; }
.riquadro-blu a:not(.btn) { color: #fff; }
.riquadro-blu .btn-bordo { background: transparent; color: #fff; border-color: #fff; }
.riquadro-blu .btn-bordo:hover { background: rgba(255,255,255,.12); }
.riquadro-blu .btn-pieno { background: #fff; color: var(--navy); }
.riquadro-blu .btn-pieno:hover { background: var(--nebbia); }

/* Invito finale con arco */
.invito { position: relative; overflow: hidden; background: var(--navy); color: #e9f2fc; text-align: center; }
.invito::before {
  content: ""; position: absolute; width: 900px; height: 900px; border-radius: 50%;
  border: 46px solid rgba(93,174,230,.18); left: -620px; top: -260px;
}
.invito .contenitore { position: relative; }
.invito h2 { color: #fff; }
.invito p { margin-inline: auto; }
.invito .pulsanti { justify-content: center; }
.invito .btn-pieno { background: #fff; color: var(--navy); }
.invito .btn-pieno:hover { background: var(--nebbia); }
.invito .btn-bordo { background: transparent; border-color: #fff; color: #fff; }
.invito .btn-bordo:hover { background: rgba(255,255,255,.12); }

/* Domande frequenti */
.faq details { border-bottom: 1px solid var(--linea); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; font-weight: 600; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: .8rem; font-size: 1.6rem; font-weight: 400; color: var(--blu); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--grigio); }

/* Lingua tedesca */
.deutsch { border-left: 4px solid var(--cielo); padding: .4rem 0 .4rem 1.2rem; margin-top: 2rem; }
.deutsch h3 { font-size: 1.35rem; }

/* Modulo */
.modulo { display: grid; gap: 1.1rem; }
.campo label, .campo legend { display: block; font-weight: 600; color: var(--navy); margin-bottom: .35rem; }
.campo .aiuto { font-weight: 400; color: var(--grigio); font-size: .9rem; }
.campo input, .campo select, .campo textarea {
  width: 100%; font: inherit; color: var(--inchiostro); background: #fff; border: 1.5px solid var(--linea); border-radius: 12px; padding: .8rem .9rem;
}
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--blu); box-shadow: 0 0 0 3px rgba(93,174,230,.35); }
.campo textarea { min-height: 120px; resize: vertical; }
fieldset.campo { border: 0; padding: 0; margin: 0; }
.scelte { display: flex; flex-wrap: wrap; gap: .5rem; }
.scelte label { font-weight: 500; color: var(--inchiostro); border: 1.5px solid var(--linea); border-radius: 999px; padding: .5rem .95rem; cursor: pointer; margin: 0; }
.scelte input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.scelte input:checked + span { color: var(--navy); }
.scelte label:has(input:checked) { border-color: var(--navy); background: var(--nebbia); }
.scelte label:has(input:focus-visible) { outline: 3px solid var(--cielo); outline-offset: 2px; }
.errore { color: #b3261e; font-weight: 600; min-height: 1.2em; margin: 0; }

.contatti-elenco { list-style: none; padding: 0; margin: 1rem 0 0; }
.contatti-elenco li { display: grid; grid-template-columns: 48px 1fr; gap: .9rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--linea); }
.contatti-elenco .cerchio { width: 48px; height: 48px; }
.contatti-elenco .cerchio svg { width: 22px; height: 22px; }
.contatti-elenco a { font-weight: 600; font-size: 1.1rem; text-decoration: none; overflow-wrap: anywhere; }

/* Piè di pagina */
.piede { background: #0d2c57; color: #c9daee; padding: 3rem 0 2rem; font-size: .96rem; }
.piede a { color: #fff; text-decoration: none; }
.piede a:hover { text-decoration: underline; }
.piede-griglia { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.piede h2 { color: #fff; font-size: 1.3rem; margin-bottom: .6rem; }
.piede ul { list-style: none; padding: 0; margin: 0; }
.piede li { margin-bottom: .45rem; }
.piede .motto { color: var(--cielo); font-size: 1.7rem; margin: .1rem 0 .6rem; }
.piede-fondo { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2rem; padding-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .88rem; }
@media (max-width: 760px) { .piede-griglia { grid-template-columns: 1fr; } }

/* Barra contatti fissa su smartphone */
.barra-mobile { display: none; }
@media (max-width: 760px) {
  .barra-mobile {
    display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    padding: .65rem .9rem calc(.65rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,.97); border-top: 1px solid var(--linea);
  }
  .barra-mobile .btn { padding: .8rem .5rem; font-size: .98rem; }
  body { padding-bottom: 82px; }
}

/* Testi legali */
.testo-legale h2 { font-size: 1.8rem; margin-top: 2.2rem; }
.testo-legale h3 { font-size: 1.3rem; margin-top: 1.6rem; }

@media (prefers-reduced-motion: no-preference) {
  .apertura-immagine img { animation: sboccia 1.1s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes sboccia { from { opacity: 0; transform: scale(.94) rotate(-2deg); } to { opacity: 1; transform: none; } }
}

@media (max-width: 560px) {
  .marchio-nome { font-size: 1.22rem; }
  .marchio img { width: 40px; height: 40px; }
  .apertura .pulsanti .btn, .testa-pagina .pulsanti .btn { width: 100%; }
}

/* Selettore lingua */
.lingue { display: inline-flex; flex: none; border: 1px solid var(--linea); border-radius: 999px; padding: 3px; font-size: .85rem; font-weight: 600; letter-spacing: .06em; }
.lingue a, .lingue span { padding: .3rem .6rem; border-radius: 999px; text-decoration: none; line-height: 1.2; }
.lingue a { color: var(--grigio); }
.lingue a:hover { color: var(--navy); background: var(--nebbia); }
.lingue span[aria-current] { background: var(--navy); color: #fff; }
@media (max-width: 1260px) { .lingue { order: 2; } .menu-btn { order: 3; } }

/* Adattamenti per testi lunghi (tedesco) e intestazione stretta */
h1, h2, h3 { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
@media (max-width: 560px) {
  .testata .contenitore { gap: .5rem; }
  .marchio { gap: .45rem; }
  .marchio img { width: 34px; height: 34px; }
  .marchio-nome { font-size: 1.08rem; letter-spacing: .04em; }
  .marchio-sotto { font-size: .64rem; letter-spacing: .05em; }
  .lingue { font-size: .78rem; padding: 2px; }
  .lingue a, .lingue span { padding: .28rem .45rem; }
  .menu-btn { padding: .5rem .6rem; }
  html[lang="de"] h1 { font-size: 2.05rem; }
}
@media (min-width: 1261px) and (max-width: 1520px) {
  html[lang="de"] .menu-btn { display: inline-flex; order: 3; }
  html[lang="de"] .lingue { order: 2; }
  html[lang="de"] .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--linea); display: none; }
  html[lang="de"] .nav.aperto { display: block; }
  html[lang="de"] .nav ul { flex-direction: column; align-items: stretch; padding: .5rem 1.25rem 1.25rem; gap: 0; }
  html[lang="de"] .nav a { padding: .85rem .25rem; border-bottom: 1px solid var(--nebbia); border-radius: 0; }
  html[lang="de"] .nav a[aria-current="page"] { box-shadow: none; color: var(--blu); }
  html[lang="de"] .nav .nav-cta { margin: 1rem 0 0; text-align: center; border-bottom: 0; color: #fff; }
}
.nav.aperto .nav-cta, .nav .nav-cta { color: #fff; }
