/* ============================================================
   Lattonerie Faes — Tema «Luce sul tetto» (slug: luce)
   Editoriale, luminosa, lifestyle casa.
   Palette: bianco/avorio, inchiostro profondo, accento azzurro cielo.
   ============================================================ */

:root {
  --ink: #1A1A1A;
  --ink-soft: #4A4A48;
  --paper: #FFFFFF;
  --paper-warm: #FAFAF7;
  --paper-warm-2: #F3F2EC;
  --sky: #5B8CB7;
  --sky-deep: #3E6E97;
  --sky-tint: #EAF1F7;
  --line: #E5E3DC;
  --shadow: 0 24px 60px -28px rgba(26, 26, 26, 0.28);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1240px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.08; }

p { margin: 0 0 1.1rem; }

::selection { background: var(--sky); color: #fff; }

:focus-visible {
  outline: 3px solid var(--sky-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Utilities ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: .76rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sky-deep);
  margin: 0 0 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px; background: var(--sky);
  display: inline-block;
}

.display {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 380;
  letter-spacing: -0.015em;
}

.lede { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--ink-soft); max-width: 70ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .95rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
  cursor: pointer;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--sky-deep); transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(62,110,151,.7); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--sky-tint); transform: translateY(-2px); }
.btn--on-dark { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--on-dark:hover { background: #fff; color: var(--ink); border-color:#fff; transform: translateY(-2px); }

.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s ease, box-shadow .35s ease, color .35s ease;
  color: #fff;
}
.site-header .header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
  padding-block: 1.1rem;
}
.site-header.solid {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(0,0,0,.4);
  color: var(--ink);
}
/* pagine senza hero: header solido da subito (.no-hero sul body) */
body.no-hero .site-header {
  position: sticky;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
}

.brand { display: flex; align-items: center; gap: .8rem; flex: 0 0 auto; }
/* Logo sempre a colori, anche sull'header trasparente (Alex 21/09/2026): una leggera
   targhetta chiara lo tiene leggibile sulle foto scure; sull'header bianco sparisce. */
.brand img { height: 46px; width: auto; }
.brand { padding: .35rem .6rem; margin-left: -.6rem; border-radius: 8px; background: rgba(255,255,255,.92); transition: background .35s ease; }
.site-header.solid .brand,
body.no-hero .brand { background: transparent; }
.brand-text { line-height: 1.15; display: flex; flex-direction: column; }
.brand-name { font-family: var(--serif); font-size: 1.18rem; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.brand-tag { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; opacity: .8; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: .9rem; font-weight: 600; letter-spacing: .01em;
  position: relative; padding-bottom: 3px; white-space: nowrap;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: currentColor; transition: width .25s ease;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }

.nav-cta { white-space: nowrap; }

.hamburger {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 0; color: inherit;
}
.hamburger span { display:block; width: 26px; height: 2px; background: currentColor; margin: 5px auto; transition: .3s; }
.hamburger[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer */
/* 20/10/2026 (Alex): voci più contenute, il menu parte sotto la testata (prima "Home" finiva sotto il logo
   sui telefoni bassi), X scura sul fondo chiaro, pulsante di misura normale */
.mobile-nav {
  position: fixed; inset: 0; z-index: 99;
  background: var(--paper-warm);
  color: var(--ink);
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.6,.05,.2,1);
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: calc(92px + 1rem) var(--gutter) 2rem;
  overflow-y: auto; overscroll-behavior: contain;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li { border-bottom: 1px solid var(--line); }
.mobile-nav li a {
  display: block; padding: .8rem .2rem;
  font-family: var(--serif); font-size: 1.2rem; font-weight: 400; line-height: 1.3;
}
.mobile-nav .btn { margin-top: 1.6rem; align-self: stretch; justify-content: center; font-size: .95rem; padding: .85rem 1.5rem; }
.hamburger[aria-expanded="true"] { color: var(--ink); }
html.menu-aperto .fwa, html.menu-aperto .a11y-fab, html.menu-aperto .a11y-panel { display: none !important; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;  /* testo al centro dello schermo (Alex 21/09) */
  color: #fff;
  overflow: hidden;
}
.hero__img { position: absolute; inset: 0; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,28,38,.50) 0%, rgba(20,28,38,.12) 30%, rgba(15,22,32,.62) 62%, rgba(15,22,32,.88) 100%);
}
.hero__content {
  position: relative; z-index: 2;
  padding-bottom: clamp(3rem, 8vh, 6rem);
  padding-top: 8rem;
  width: 100%;
  text-align: center;
}
.hero .eyebrow { justify-content: center; }
.hero__title { margin-inline: auto; }
.hero__sub { margin-inline: auto; }
.hero__actions { justify-content: center; }
.hero .eyebrow { color: #cfe0ee; }
.hero .eyebrow::before { background: #cfe0ee; }
.hero__title {
  font-size: clamp(2.6rem, 7vw, 6rem);
  max-width: 26ch;
  margin-bottom: 1.4rem;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.hero__title em { font-style: italic; color: #d6e6f3; }
.hero__sub { font-size: clamp(1.05rem, 1.7vw, 1.28rem); max-width: 70ch; color: #f4f7fa; text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 2px 18px rgba(0,0,0,.45); }
.hero .eyebrow { text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* trust strip: 4 card di fiducia (20/10/2026) */
.trust {
  border-bottom: 1px solid var(--line);
  padding: 0 var(--gutter) clamp(1.6rem, 3vw, 2.4rem);
  /* le card salgono a cavallo del bordo della foto di testata */
  background: linear-gradient(to bottom, transparent 0 2.75rem, var(--paper-warm) 2.75rem);
  margin-top: -2.75rem; position: relative; z-index: 2;
}
.trust__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(.8rem, 1.6vw, 1.4rem);
  max-width: 1280px; margin-inline: auto;
}
.trust__item {
  display: flex; align-items: center; gap: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem 1.25rem;
  box-shadow: 0 1px 2px rgba(26,26,26,.04), 0 12px 28px -20px rgba(26,26,26,.28);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.trust__item:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--sky) 35%, var(--line));
  box-shadow: 0 1px 2px rgba(26,26,26,.04), 0 18px 36px -20px rgba(26,26,26,.34);
}
.trust__icon {
  flex: none; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--sky-tint); color: var(--sky-deep);
}
.trust__text { display: block; min-width: 0; }
.trust__k { font-family: var(--serif); font-size: 1.08rem; font-weight: 500; line-height: 1.25; display: block; }
.trust__v { display: block; font-size: .84rem; line-height: 1.4; color: var(--ink-soft); margin-top: .25rem; }
@media (prefers-reduced-motion: reduce) { .trust__item, .trust__item:hover { transition: none; transform: none; } }

/* ============================================================
   SECTIONS — editorial
   ============================================================ */
section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.bg-warm { background: var(--paper-warm); }
.bg-warm-2 { background: var(--paper-warm-2); }
.bg-sky { background: var(--sky-tint); }
.bg-ink { background: var(--ink); color: #fff; }

.section-head { max-width: 78ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-bottom: 1rem; }
.section-head--center { margin-inline: auto; text-align: center; }

/* Editorial split (asymmetric foto + testo) */
.editorial {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.editorial--reverse { grid-template-columns: 1fr 1.15fr; }
.editorial--reverse .editorial__media { order: 2; }
.editorial__media { position: relative; }
.editorial__media img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 4px;
  box-shadow: var(--shadow);
}
.editorial__media--wide img { aspect-ratio: 5/4; }
.editorial__tag {
  position: absolute; left: -14px; bottom: 24px;
  background: #fff; color: var(--ink);
  padding: .7rem 1.2rem; border-radius: 4px;
  font-size: .8rem; font-weight: 600;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: .6rem;
}
.editorial__tag img { width: 30px; height: auto; box-shadow: none; aspect-ratio: auto; border-radius: 0; }
.editorial__body h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); margin-bottom: 1.2rem; }
.bignum {
  font-family: var(--serif); font-weight: 380;
  font-size: clamp(4rem, 11vw, 9rem); line-height: .9; color: var(--sky);
  letter-spacing: -.03em; display: block; margin-bottom: .4rem;
}

.checklist { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.checklist li {
  display: flex; gap: .85rem; padding: .55rem 0;
  border-top: 1px solid var(--line); font-size: 1rem;
}
.checklist li:first-child { border-top: 0; }
.checklist li::before {
  content: ""; flex: none; margin-top: .35rem;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--sky-tint);
  box-shadow: inset 0 0 0 1.5px var(--sky);
  background-image: linear-gradient(45deg, transparent 45%, var(--sky-deep) 45%, var(--sky-deep) 55%, transparent 55%);
}

/* Services — editorial cards */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}
.service {
  background: #fff; border: 1px solid var(--line);
  border-radius: 6px; padding: 2.2rem 2rem;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service__num { font-family: var(--serif); font-size: 1.1rem; color: var(--sky); display:block; margin-bottom: .8rem; }
.service h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 420; margin-bottom: .7rem; }
.service p { font-size: .96rem; color: var(--ink-soft); margin: 0; }
.service--accent { display:flex; flex-direction:column; justify-content:center; background: var(--sky-tint); border-color: transparent; }
.service--accent p { margin:0; font-family: var(--serif); font-size: 1.4rem; line-height: 1.3; color: var(--ink); }

/* Home: card dei servizi con foto (20/10/2026) */
.srvcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 1.8vw, 1.5rem); }
.srvcard {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(26,26,26,.04), 0 14px 32px -22px rgba(26,26,26,.3);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.srvcard:hover, .srvcard:focus-within { transform: translateY(-5px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--sky) 35%, var(--line)); }
.srvcard__media { position: relative; aspect-ratio: 4 / 3; background: var(--sky-tint); overflow: hidden; }
.srvcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.srvcard:hover .srvcard__media img { transform: scale(1.05); }
.srvcard__num {
  position: absolute; left: 1rem; top: 1rem;
  font-family: var(--serif); font-size: 1rem; line-height: 1; color: var(--sky-deep);
  background: rgba(255,255,255,.92); border-radius: 999px; padding: .45rem .7rem;
  box-shadow: 0 4px 14px -6px rgba(26,26,26,.35);
}
.srvcard__body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.4rem 1.5rem; }
.srvcard h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 450; line-height: 1.2; margin-bottom: .6rem; }
.srvcard__link { color: inherit; text-decoration: none; }
.srvcard__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.srvcard__link:focus-visible { outline: none; }
.srvcard:focus-within { outline: 3px solid var(--sky-deep); outline-offset: 3px; }
.srvcard p { font-size: .93rem; line-height: 1.55; color: var(--ink-soft); margin: 0 0 1.1rem; }
.srvcard__more { margin-top: auto; color: var(--sky-deep); font-weight: 600; font-size: .93rem; }
.srvcard__more .arrow { display: inline-block; transition: transform .25s ease; }
.srvcard:hover .srvcard__more .arrow { transform: translateX(4px); }
.srvnote {
  display: flex; align-items: center; gap: 1.4rem;
  margin-top: clamp(1rem, 1.8vw, 1.5rem); padding: 1.5rem 1.8rem;
  background: var(--sky-tint); border-radius: 14px;
}
.srvnote__icon { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--sky-deep); }
.srvnote p { flex: 1; margin: 0; font-family: var(--serif); font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.35; color: var(--ink); }
.srvnote .btn { flex: none; }
.srvcards--tre { grid-template-columns: repeat(3, 1fr); }
.srvcard--nota {
  justify-content: center; gap: 1.2rem; padding: 2rem 1.8rem;
  background: var(--sky-tint); border-color: transparent; box-shadow: none;
}
.srvcard--nota:hover { transform: none; box-shadow: none; border-color: transparent; }
.srvcard--nota p { margin: 0; font-family: var(--serif); font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.35; color: var(--ink); }
.srvduo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 1.8vw, 1.5rem); margin-top: clamp(1rem, 1.8vw, 1.5rem); }
.srvduo .srvnote { margin-top: 0; }
.srvnote--col { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.1rem; }
.srvnote__actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.btn--ghost-ink { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn--ghost-ink:hover { background: var(--ink); color: #fff; }
.srvno {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: #fff; border: 1px dashed color-mix(in srgb, var(--ink) 25%, var(--line)); border-radius: 14px;
  padding: 1.5rem 1.8rem;
}
.srvno__icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--paper-warm-2); color: var(--ink-soft); }
.srvno h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 450; margin-bottom: .45rem; }
.srvno p { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--ink-soft); }
@media (max-width: 1180px) { .srvcards, .srvcards--tre { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .srvnote { flex-direction: column; align-items: flex-start; text-align: left; } .srvduo { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .srvcards, .srvcards--tre { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .srvcard, .srvcard__media img, .srvcard__more .arrow { transition: none; } .srvcard:hover { transform: none; } .srvcard:hover .srvcard__media img { transform: none; } }

/* Process — numbered editorial */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.4rem; }
.step__n {
  font-family: var(--serif); font-size: 3.2rem; color: var(--sky);
  line-height: 1; display: block; margin-bottom: .6rem;
  border-bottom: 1px solid var(--line); padding-bottom: 1rem;
}
.step h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: .5rem; }
.step p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.bg-ink .step__n { color: #8fb6d6; border-color: rgba(255,255,255,.16); }
.bg-ink .step p { color: rgba(255,255,255,.78); }
.bg-ink .section-head h2 { color: #fff; }
.bg-ink .lede { color: rgba(255,255,255,.82); }
.bg-ink .eyebrow { color: #8fb6d6; }
.bg-ink .eyebrow::before { background: #8fb6d6; }

/* Why-us editorial trio */
.feature-trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2.6rem; }
.feature h3 { font-family: var(--serif); font-size: 1.55rem; font-weight: 420; margin-bottom: .7rem; position: relative; padding-top: 1.4rem; }
.feature h3::before { content:""; position:absolute; top:0; left:0; width: 46px; height: 3px; background: var(--sky); }
.feature p { color: var(--ink-soft); margin: 0; }

/* Showroom band */
.showroom { position: relative; color: #fff; overflow: hidden; }
.showroom__img { position: absolute; inset: 0; }
.showroom__img img { width: 100%; height: 100%; object-fit: cover; }
.showroom__overlay { position:absolute; inset:0; background: linear-gradient(100deg, rgba(15,22,32,.86) 0%, rgba(15,22,32,.45) 60%, rgba(15,22,32,.15) 100%); }
.showroom__content { position: relative; z-index: 2; max-width: 64ch; }
.showroom .eyebrow { color: #cfe0ee; }
.showroom .eyebrow::before { background: #cfe0ee; }
.showroom h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin-bottom: 1.1rem; }
.showroom p { color: #eef3f8; }
.showroom .addr { display: flex; align-items: center; gap: .6rem; font-weight: 600; margin: 1.4rem 0 2rem; color:#fff; }

/* Gallery masonry-ish */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px; gap: 1rem; grid-auto-flow: dense;
}
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: 4px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1rem .9rem;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: #fff; font-size: .85rem; font-weight: 600;
}
.gallery__open { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.gallery__open:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 2px; }
.gallery figcaption { pointer-events: none; }
.gallery .tall, .gallery .g4-tall { grid-row: span 2; }
.gallery .wide, .gallery .g4-wide { grid-column: span 2; }
.gallery .g4-full { grid-column: 1 / -1; }

/* Materials / model cards */
.cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 1.6rem; }
.matcard { background:#fff; border:1px solid var(--line); border-radius:6px; overflow:hidden; transition: box-shadow .3s ease, transform .3s ease; }
.matcard:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.matcard__img { aspect-ratio: 16/11; overflow:hidden; background: var(--paper-warm-2); }
.matcard__img img { width:100%; height:100%; object-fit:cover; }
.matcard__body { padding: 1.6rem 1.6rem 1.9rem; }
.matcard h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 420; margin-bottom:.6rem; }
.matcard p { font-size:.94rem; color: var(--ink-soft); margin:0; }
.matcard .badge { display:inline-block; font-size:.72rem; letter-spacing:.12em; text-transform:uppercase; color: var(--sky-deep); font-weight:700; margin-bottom:.5rem; }

/* CTA banner */
.cta { text-align: center; }
.cta h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); max-width: 28ch; margin: 0 auto 1.2rem; }
.cta p { max-width: 66ch; margin-inline: auto; }
.cta .cta__actions { display:flex; justify-content:center; flex-wrap:wrap; gap:1rem; margin-top: 2rem; }

/* ============================================================
   PAGE INTRO (sotto-pagine, hero ridotto)
   ============================================================ */
.pageintro {
  position: relative; color:#fff; overflow:hidden;
  min-height: 100svh; display:flex; align-items:center;  /* a pieno schermo, testo al centro (Alex 21/09) */
}
.pageintro__img { position:absolute; inset:0; }
.pageintro__img img { width:100%; height:100%; object-fit:cover; }
.pageintro__overlay { position:absolute; inset:0; background: linear-gradient(180deg, rgba(15,22,32,.55) 0%, rgba(15,22,32,.15) 35%, rgba(15,22,32,.62) 62%, rgba(15,22,32,.88) 100%); }
.pageintro__content { position:relative; z-index:2; padding-block: 7rem 4rem; max-width: 82ch; margin-inline:auto; text-align:center; }
.pageintro .eyebrow { justify-content:center; }
.pageintro h1 { margin-inline:auto; }
.pageintro p { margin-inline:auto; max-width: 62ch; }
.pageintro .eyebrow { color:#cfe0ee; }
.pageintro .eyebrow::before { background:#cfe0ee; }
.pageintro h1 { font-size: clamp(2.4rem, 6vw, 5rem); margin-bottom: 1.1rem; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.pageintro p { color:#f4f7fa; font-size: clamp(1.02rem,1.6vw,1.25rem); margin:0; text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 2px 18px rgba(0,0,0,.45); }

/* Quote / statement editorial */
.statement { max-width: 30ch; margin: 0 auto; text-align:center; }
.statement p {
  font-family: var(--serif); font-weight: 380;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.25; color: var(--ink);
}
.bg-ink .statement p { color:#fff; }

/* ============================================================
   CONTACTS — colonne + form .fx-*
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2.5rem,5vw,5rem); align-items: start; }

.info-block { margin-bottom: 2.2rem; }
.info-block h3 { font-family: var(--serif); font-size: 1.5rem; font-weight:420; margin-bottom: .7rem; }
.info-block .big-contact { font-family: var(--serif); font-size: 1.8rem; color: var(--sky-deep); display:inline-block; margin:.2rem 0; }
.info-block address { font-style: normal; color: var(--ink-soft); line-height: 1.6; }
.info-block .pin { color: var(--sky-deep); font-weight:600; }
.info-block em { color: var(--ink-soft); }

/* --- Form condiviso (.fx-*) --- */
.fx-hp { display: none; }

.fx-form { margin: 0; }
.fx-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.fx-field { margin-bottom: 1.3rem; }
.fx-label { display:block; font-size:.82rem; font-weight:600; letter-spacing:.04em; margin-bottom:.45rem; color: var(--ink); }
.fx-input {
  width:100%; font-family: var(--sans); font-size:1rem; color: var(--ink);
  padding: .9rem 1rem; border:1px solid var(--line); border-radius:6px;
  background: var(--paper-warm); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
textarea.fx-input { min-height: 150px; resize: vertical; }
.fx-input:focus {
  border-color: var(--sky); box-shadow: 0 0 0 3px var(--sky-tint); outline: none; background:#fff;
}
.fx-err { color: #b3261e; font-size: .85rem; margin: .35rem 0 0; }

.fx-check { display:flex; align-items:flex-start; gap:.7rem; margin: .3rem 0 1.5rem; }
.fx-check input { margin-top:.3rem; width:18px; height:18px; flex:none; accent-color: var(--sky-deep); }
.fx-check label { font-size:.9rem; color: var(--ink-soft); line-height:1.5; }
.fx-check a { color: var(--sky-deep); text-decoration: underline; }

.fx-btn {
  display: inline-flex; align-items: center; gap:.6rem;
  font-family: var(--sans); font-weight:600; font-size:.95rem;
  padding: .95rem 1.9rem; border-radius:999px; border:1px solid transparent; cursor:pointer;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}
.fx-btn--primary { background: var(--ink); color:#fff; }
.fx-btn--primary:hover { background: var(--sky-deep); transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(62,110,151,.7); }

.fx-form-ok {
  margin-bottom:1.6rem; padding: 1rem 1.2rem;
  background: var(--sky-tint); border-left: 3px solid var(--sky-deep);
  border-radius: 4px; font-size:.95rem; color: var(--ink);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: #d9d9d6; padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; }
.footer-top { display:grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: clamp(2rem,5vw,4rem); }
.footer-brand .brand-name { font-family: var(--serif); font-size: 1.6rem; color:#fff; }
.footer-brand p { color: rgba(255,255,255,.6); font-size:.95rem; max-width: 38ch; margin-top:1rem; }
.footer-col h4 { font-size:.76rem; letter-spacing:.2em; text-transform:uppercase; color:#8fb6d6; margin:0 0 1.1rem; font-weight:700; }
.footer-col ul { list-style:none; margin:0; padding:0; }
.footer-col li { margin-bottom:.55rem; }
.footer-col a, .footer-col address { color: rgba(255,255,255,.78); font-size:.95rem; font-style:normal; }
.footer-col a:hover { color:#fff; }
.footer-col address { line-height: 1.6; }
.footer-col address + address { margin-top:1rem; }
.footer-sede-label { color:#8fb6d6; font-weight:600; display:block; font-size:.85rem; }
.footer-bottom {
  margin-top: clamp(2.5rem,5vw,4rem); padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:1rem;
  font-size:.82rem; color: rgba(255,255,255,.5);
}
.made-by { display:flex; align-items:center; gap:.6rem; color: rgba(255,255,255,.5); }
.made-by:hover { color: rgba(255,255,255,.8); }
/* Logo AGstudio gia in versione per sfondi scuri (badge arancio + testo bianco):
   nessun filtro, altrimenti viene appiattito tutto a bianco perdendo il brand. */
.made-by img { height: 20px; width:auto; opacity:.9; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1320px) {
  .nav-links { gap: 1.05rem; }
  .nav-links a { font-size: .86rem; }
}
@media (max-width: 1180px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: block; }
  .editorial, .editorial--reverse { grid-template-columns: 1fr; }
  .editorial--reverse .editorial__media { order: 0; }
  .editorial__tag { left: 16px; }
  .trust__grid { grid-template-columns: repeat(2,1fr); }
  .gallery { grid-template-columns: repeat(2,1fr); grid-auto-rows: 180px; }
  .gallery .wide { grid-column: span 2; }
  .gallery .tall { grid-row: span 1; }
  .gallery .g4-wide, .gallery .g4-full { grid-column: auto; }
  .gallery .g4-tall { grid-row: auto; }
  .gallery .g2-full { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  /* su mobile l'hero non deve spingere titolo/sottotitolo troppo in basso */
  .hero, .pageintro { align-items: center; min-height: 90svh; }
  .hero__content { padding-top: 5.5rem; padding-bottom: 3rem; }
  .pageintro__content { padding-block: 5.5rem 3rem; }
  /* occhiello su una riga anche a 390px: niente lineetta, spaziatura ridotta */
  .pageintro .eyebrow, .hero .eyebrow { justify-content:center; font-size:.68rem; letter-spacing:.16em; }
  .pageintro .eyebrow::before, .hero .eyebrow::before { display:none; }
  .hero__title { font-size: clamp(2.3rem, 9vw, 3.4rem); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .trust__grid { grid-template-columns: 1fr; gap: .7rem; }
  .trust__item { padding: 1rem 1.1rem; }
  .trust__icon { width: 46px; height: 46px; }
  .fx-form-row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery .wide, .gallery .tall, .gallery .g2-full { grid-column: auto; grid-row: auto; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity:1; transform:none; } }

/* ============================================================
   VESTE DEFINITIVA (21/09/2026) — menu con icone, sottopagine,
   testi lunghi, banner cookie, strumento accessibilità
   ============================================================ */
[hidden] { display: none !important; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.linklike { background:none; border:0; padding:0; font:inherit; color:inherit; cursor:pointer; }

/* menu con icone */
.nav-links a { display:inline-flex; align-items:center; gap:.4rem; }
.nav-ico { flex:none; opacity:.85; }
.nav-links a[aria-current="page"] .nav-ico, .nav-links a:hover .nav-ico { opacity:1; }
.mobile-nav li a { display:flex; align-items:center; gap:.85rem; }
.mobile-nav .nav-ico { width:20px; height:20px; color: var(--sky-deep); }

/* footer: link legali */
.footer-legal { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:.4rem 1.1rem; }
.footer-legal a, .footer-legal .linklike { color: rgba(255,255,255,.62); font-size:.82rem; }
.footer-legal a:hover, .footer-legal .linklike:hover { color:#fff; }
.footer-recapiti { margin-top:1rem; }

/* breadcrumb */
.crumbs { list-style:none; margin:0 0 1.6rem; padding:0; display:flex; flex-wrap:wrap; gap:.4rem; font-size:.84rem; color: var(--ink-soft); }
.crumbs li + li::before { content:"/"; margin-right:.4rem; opacity:.5; }
.crumbs a:hover { color: var(--sky-deep); }

/* testi lunghi (schede servizio, modelli, pagine legali) */
.prose { max-width: 72ch; }
.prose p { margin-bottom: 1.05rem; }
.prose h2 { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 420; margin: 2.2rem 0 .8rem; }
.prose h3 { font-family: var(--serif); font-size: 1.32rem; font-weight: 460; margin: 1.8rem 0 .6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.1rem; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--sky); }
.prose a { color: var(--sky-deep); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { font-weight: 700; color: var(--ink); }
.prose table { width:100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size:.95rem; }
.prose th, .prose td { border:1px solid var(--line); padding:.6rem .7rem; text-align:left; vertical-align:top; }
.prose th { background: var(--paper-warm-2); font-weight:600; }
.prose .muted { color: var(--ink-soft); font-size:.9rem; }
.prose .linklike { color: var(--sky-deep); text-decoration: underline; }

/* pagine "piatte" (senza foto grande): titolo in testa */
.pagehead { background: var(--paper-warm); border-bottom:1px solid var(--line); padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); }
.pagehead .wrap { text-align:center; }
.pagehead .crumbs { justify-content:center; }
.pagehead .eyebrow { justify-content:center; }
.pagehead h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin: 0 auto .8rem; max-width: 22ch; }
.pagehead p { color: var(--ink-soft); max-width: 70ch; margin:0 auto; font-size: clamp(1rem, 1.5vw, 1.18rem); }
/* 20/10/2026: nelle schede (servizio, modello ROTO) il titolo di chiusura non supera l'h1 della testata */
.pagehead ~ .cta h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }

/* scheda servizio / modello: testo + colonna laterale */
.detail-grid { display:grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .9fr); gap: clamp(2.5rem, 5vw, 5rem); align-items:start; }
.detail-grid > aside { position: sticky; top: 6rem; display:grid; gap:1.4rem; }
.side-card { background:#fff; border:1px solid var(--line); border-radius:6px; padding:1.7rem 1.6rem; }
.side-card--sky { background: var(--sky-tint); border-color: transparent; }
.side-card--ink { background: var(--ink); color:#fff; border-color: transparent; }
.side-card h3 { font-family: var(--serif); font-size:1.4rem; font-weight:420; margin-bottom:.6rem; }
.side-card p { font-size:.95rem; color: var(--ink-soft); }
.side-card--ink p { color: rgba(255,255,255,.8); }
.side-card .btn { width:100%; justify-content:center; margin-top:.6rem; }
.side-card ul { list-style:none; margin:0; padding:0; }
.side-card li { border-top:1px solid var(--line); padding:.6rem 0; }
.side-card li:first-child { border-top:0; padding-top:0; }
.side-card li a { font-weight:600; display:flex; justify-content:space-between; gap:.6rem; }
.side-card li a:hover { color: var(--sky-deep); }
.detail-media img { width:100%; aspect-ratio: 16/10; object-fit: cover; border-radius:4px; box-shadow: var(--shadow); margin-bottom: 2rem; }

/* griglia foto per categoria (pagina Lavori) */
.cat-head { display:flex; align-items:baseline; justify-content:space-between; gap:1rem; flex-wrap:wrap; margin: 0 0 1.4rem; }
.cat-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cat-head span { color: var(--ink-soft); font-size:.9rem; }
.gallery + .cat-head { margin-top: clamp(3rem, 6vw, 4.5rem); }
.gallery figcaption small { display:block; font-weight:400; opacity:.85; }

/* materiali (pagina Lattonerie) */
.mat-list { display:grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; }
.mat { background:#fff; border:1px solid var(--line); border-radius:6px; overflow:hidden; }
.mat img { width:100%; aspect-ratio: 4/3; object-fit:cover; }
.mat div { padding: 1.2rem 1.3rem 1.4rem; }
.mat h3 { font-family: var(--serif); font-size:1.3rem; font-weight:440; margin-bottom:.4rem; }
.mat p { font-size:.92rem; color: var(--ink-soft); margin:0; }

/* modelli ROTO (card con link) */
.matcard a.matcard__link { display:block; color:inherit; }
.matcard__more { display:inline-block; margin-top:.9rem; font-weight:600; color: var(--sky-deep); }

/* ---------- Banner cookie ---------- */
.ck-lock { overflow:hidden; }
.ck-banner { position:fixed; inset-inline:0; bottom:0; z-index:1000; padding: 1rem; }
.ck-banner__box { max-width: 1060px; margin:0 auto; background:#fff; border:1px solid var(--line); border-radius:10px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.35); padding: 1.3rem 1.5rem; display:flex; gap:1.4rem; align-items:center; flex-wrap:wrap; }
.ck-banner__text { flex: 1 1 380px; }
.ck-banner__text h2 { font-family: var(--sans); font-size:1rem; font-weight:700; margin-bottom:.3rem; }
.ck-banner__text p { font-size:.9rem; color: var(--ink-soft); margin:0; }
.ck-banner__text a { color: var(--sky-deep); text-decoration: underline; }
.ck-banner__actions { display:flex; gap:.6rem; flex-wrap:wrap; }
.ck-btn { font-family: var(--sans); font-size:.9rem; font-weight:600; padding:.7rem 1.2rem; border-radius:999px; border:1px solid var(--ink); background:#fff; color: var(--ink); cursor:pointer; }
.ck-btn:hover { background: var(--paper-warm-2); }
.ck-btn--primary { background: var(--ink); color:#fff; }
.ck-btn--primary:hover { background: var(--sky-deep); border-color: var(--sky-deep); }
.ck-modal { position:fixed; inset:0; z-index:1001; display:flex; align-items:center; justify-content:center; padding:1rem; }
.ck-modal__backdrop { position:absolute; inset:0; background: rgba(0,0,0,.5); }
.ck-modal__panel { position:relative; background:#fff; width:100%; max-width: 640px; max-height: 90vh; overflow:auto; border-radius:10px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
.ck-modal__head, .ck-modal__foot { display:flex; align-items:center; justify-content:space-between; gap:.6rem; padding: 1rem 1.4rem; border-bottom:1px solid var(--line); }
.ck-modal__foot { border-bottom:0; border-top:1px solid var(--line); justify-content:flex-end; flex-wrap:wrap; }
.ck-modal__head h2 { font-family: var(--sans); font-size:1.05rem; font-weight:700; }
.ck-x, .a11y-x { background:none; border:0; font-size:1.6rem; line-height:1; cursor:pointer; color: var(--ink-soft); padding:.2rem .4rem; }
.ck-modal__body { padding: 1.2rem 1.4rem; display:grid; gap:.9rem; }
.ck-modal__body > p { font-size:.92rem; color: var(--ink-soft); margin:0; }
.ck-row { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; padding:1rem; border:1px solid var(--line); border-radius:8px; }
.ck-row--fixed { background: var(--paper-warm); border-color: transparent; }
.ck-row h3 { font-family: var(--sans); font-size:.95rem; font-weight:700; margin-bottom:.25rem; }
.ck-row p { font-size:.85rem; color: var(--ink-soft); margin:0; }
.ck-always { flex:none; font-size:.75rem; font-weight:700; color:#1d6b3a; background:#dff3e6; padding:.35rem .8rem; border-radius:999px; }
.ck-switch { position:relative; flex:none; width:44px; height:24px; cursor:pointer; margin-top:.15rem; }
.ck-switch input { position:absolute; inset:0; z-index:2; opacity:0; width:100%; height:100%; margin:0; cursor:pointer; }
.ck-switch span:first-of-type { position:absolute; inset:0; background: #cfcdc4; border-radius:999px; transition: background .2s; }
.ck-switch span:first-of-type::after { content:""; position:absolute; top:3px; left:3px; width:18px; height:18px; background:#fff; border-radius:50%; transition: transform .2s; }
.ck-switch input:checked + span { background: var(--sky-deep); }
.ck-switch input:checked + span::after { transform: translateX(20px); }
.ck-switch input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }

/* ---------- Strumento accessibilità ---------- */
.a11y-fab { position:fixed; left:18px; bottom:18px; z-index:900; width:48px; height:48px; border-radius:50%; border:0; background: var(--sky-deep); color:#fff; cursor:pointer; box-shadow: 0 10px 24px -8px rgba(0,0,0,.45); display:flex; align-items:center; justify-content:center; }
.a11y-fab:hover { background: var(--ink); }
.a11y-panel { position:fixed; left:18px; bottom:78px; z-index:901; width: 19rem; max-width: calc(100vw - 36px); background:#fff; border:1px solid var(--line); border-radius:10px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.45); overflow:hidden; }
.a11y-head { display:flex; align-items:center; justify-content:space-between; background: var(--sky-deep); color:#fff; padding:.7rem 1rem; }
.a11y-head h2 { font-family: var(--sans); font-size:.95rem; font-weight:700; }
.a11y-head .a11y-x { color:#fff; }
.a11y-body { padding: 1rem; display:grid; gap:.7rem; max-height:70vh; overflow:auto; }
.a11y-lbl { font-size:.78rem; font-weight:700; margin:0; }
.a11y-size { display:flex; align-items:center; gap:.5rem; }
.a11y-size button { flex:1; padding:.5rem; border:1px solid var(--line); background:#fff; border-radius:6px; font-weight:600; cursor:pointer; }
.a11y-size span { width:3.2rem; text-align:center; font-size:.8rem; color: var(--ink-soft); }
.a11y-opts { display:grid; gap:.4rem; }
.a11y-opts button { text-align:left; padding:.55rem .8rem; border:1px solid var(--line); background:#fff; border-radius:6px; font-size:.88rem; cursor:pointer; display:flex; justify-content:space-between; }
.a11y-opts button[aria-pressed="true"] { background: var(--sky-tint); border-color: var(--sky); font-weight:600; }
.a11y-opts button[aria-pressed="true"]::after { content:"✓"; color: var(--sky-deep); }
.a11y-reset { padding:.55rem; border:0; background: var(--paper-warm-2); border-radius:6px; font-weight:600; cursor:pointer; }
.a11y-link { text-align:center; font-size:.8rem; color: var(--sky-deep); text-decoration: underline; }
/* effetti delle opzioni */
html.a11y-contrast body { background:#fff !important; color:#000 !important; }
html.a11y-contrast p, html.a11y-contrast span, html.a11y-contrast li, html.a11y-contrast h1, html.a11y-contrast h2, html.a11y-contrast h3, html.a11y-contrast h4 { color:#000 !important; text-shadow:none !important; }
html.a11y-contrast a { color:#00329b !important; text-decoration: underline !important; }
html.a11y-contrast .hero__overlay, html.a11y-contrast .pageintro__overlay, html.a11y-contrast .showroom__overlay { background: rgba(0,0,0,.78) !important; }
html.a11y-contrast .hero *, html.a11y-contrast .pageintro *, html.a11y-contrast .showroom *, html.a11y-contrast .bg-ink *, html.a11y-contrast .site-footer *, html.a11y-contrast .site-header:not(.solid) * { color:#fff !important; }
html.a11y-contrast .bg-ink, html.a11y-contrast .site-footer { background:#000 !important; }
html.a11y-grayscale { filter: grayscale(100%); }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 2px; font-weight: 600 !important; }
html.a11y-readable, html.a11y-readable body, html.a11y-readable .display, html.a11y-readable h1, html.a11y-readable h2, html.a11y-readable h3, html.a11y-readable button, html.a11y-readable input, html.a11y-readable textarea, html.a11y-readable select { font-family: Verdana, Tahoma, Arial, sans-serif !important; }
html.a11y-spacing body { letter-spacing:.06em; word-spacing:.12em; line-height:1.9; }
html.a11y-spacing p, html.a11y-spacing li { margin-bottom: 1.4rem; }
html.a11y-noanim *, html.a11y-noanim *::before, html.a11y-noanim *::after { animation: none !important; transition: none !important; }
html.a11y-noanim .reveal { opacity:1 !important; transform:none !important; }

@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid > aside { position: static; }
}
@media (max-width: 560px) {
  .ck-banner { padding:.6rem; }
  .ck-banner__actions { width:100%; }
  .ck-banner__actions .ck-btn { flex:1 1 auto; text-align:center; }
  .a11y-fab { width:44px; height:44px; left:12px; bottom:12px; }
  .a11y-panel { left:12px; bottom:66px; }
}

/* ===== Finestra "Preventivo gratuito" (22/09/2026, v2: pannello largo a due colonne, senza scorrimento) ===== */
.pv-modal { position: fixed; inset: 0; z-index: 1002; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.pv-modal__backdrop { position: absolute; inset: 0; background: rgba(26,26,26,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: pvFade .25s ease; }
.pv-modal__dialog { position: relative; width: min(980px, 100%); display: grid; grid-template-columns: 320px 1fr; background: var(--paper); border-radius: 20px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0,0,0,.55); animation: pvIn .32s cubic-bezier(.2,.8,.2,1); outline: none; }
.pv-modal__close { position: absolute; top: .8rem; right: .8rem; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--paper-warm-2); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .2s; }
.pv-modal__close:hover { background: var(--line); transform: rotate(90deg); }
.pv-modal__head { padding: 2.1rem 1.9rem; color: #fff; background: linear-gradient(160deg, #1A1A1A 0%, #3E6E97 100%); position: relative; overflow: hidden; display: flex; flex-direction: column; }
.pv-modal__head::after { content: ""; position: absolute; right: -90px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.08); }
.pv-modal__kicker { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: #cfe1f0; margin: 0 0 .6rem; position: relative; }
.pv-modal__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.15rem); line-height: 1.1; margin: 0 0 .7rem; color: #fff; position: relative; }
.pv-modal__text { margin: 0; color: rgba(255,255,255,.85); line-height: 1.5; font-size: .96rem; position: relative; }
.pv-modal__list { list-style: none; margin: 1.5rem 0 0; padding: 0; position: relative; }
.pv-modal__list li { position: relative; padding-left: 1.7rem; margin: .45rem 0; font-size: .92rem; color: rgba(255,255,255,.92); }
.pv-modal__list li::before { content: ""; position: absolute; left: 0; top: .2rem; width: 17px; height: 17px; border-radius: 50%; background: rgba(255,255,255,.16); border: 1.5px solid rgba(255,255,255,.7); }
.pv-modal__list li::after { content: ""; position: absolute; left: 5.5px; top: 5px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pv-phone { margin: auto 0 0; padding-top: 1.6rem; font-size: .9rem; color: rgba(255,255,255,.8); position: relative; }
.pv-phone a { color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
.pv-form { padding: 1.5rem 1.9rem 1.4rem; }
.pv-hp { position: absolute; left: -9999px; opacity: 0; }
.pv-step { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.pv-label { display: block; font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .4rem; }
.pv-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.pv-chip { position: relative; cursor: pointer; }
.pv-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.pv-chip span { display: inline-block; padding: .45rem .8rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper-warm); font-size: .86rem; font-weight: 500; color: var(--ink); transition: all .18s; }
.pv-chip:hover span { border-color: var(--sky); }
.pv-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 8px 18px -10px rgba(0,0,0,.5); }
.pv-chip input:focus-visible + span { outline: 3px solid var(--sky-tint); outline-offset: 2px; }
.pv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem .9rem; }
.pv-field { min-width: 0; }
.pv-field--full { grid-column: 1 / -1; }
.pv-input { width: 100%; font-family: var(--sans); font-size: .96rem; color: var(--ink); background: var(--paper-warm); border: 1.5px solid var(--line); border-radius: 11px; padding: .68rem .85rem; transition: border-color .18s, box-shadow .18s, background .18s; }
.pv-input::placeholder { color: #9a9a95; }
.pv-input:focus { outline: none; border-color: var(--sky-deep); background: #fff; box-shadow: 0 0 0 4px var(--sky-tint); }
textarea.pv-input { resize: none; min-height: 72px; }
.pv-field.has-error .pv-input { border-color: #c0392b; background: #fff6f5; }
.pv-err { display: none; margin: .3rem 0 0; font-size: .8rem; color: #c0392b; line-height: 1.3; }
.pv-err.show { display: block; }
.pv-err--global { margin: 0 0 .6rem; padding: .6rem .8rem; background: #fff6f5; border-radius: 10px; }
.pv-file { position: relative; display: flex; align-items: center; gap: .7rem; padding: .6rem .9rem; border: 1.5px dashed var(--line); border-radius: 11px; background: var(--paper-warm); cursor: pointer; color: var(--sky-deep); transition: border-color .18s, background .18s; flex-wrap: wrap; }
.pv-file:hover, .pv-file.drag { border-color: var(--sky-deep); background: var(--sky-tint); }
.pv-file input { position: absolute; opacity: 0; width: 0; height: 0; }
.pv-file__txt { flex: 1; font-size: .86rem; color: var(--ink); line-height: 1.3; }
.pv-file__txt em { font-style: normal; color: var(--ink-soft); }
.pv-file__name { width: 100%; font-size: .82rem; color: var(--sky-deep); font-weight: 600; }
.pv-file__name:empty { display: none; }
.pv-check { display: flex; align-items: flex-start; gap: .6rem; margin: .85rem 0 .2rem; }
.pv-check input { margin-top: .2rem; width: 17px; height: 17px; flex: none; accent-color: var(--sky-deep); }
.pv-check label { font-size: .8rem; color: var(--ink-soft); line-height: 1.45; }
.pv-check a { color: var(--sky-deep); text-decoration: underline; }
.pv-submit { position: relative; width: 100%; margin-top: .7rem; padding: .85rem 1.4rem; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-family: var(--sans); font-weight: 600; font-size: 1.02rem; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; }
.pv-submit:hover { background: var(--sky-deep); transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(62,110,151,.7); }
.pv-submit[disabled] { opacity: .75; cursor: progress; transform: none; }
.pv-submit__spinner { display: none; position: absolute; right: 1.1rem; top: 50%; width: 20px; height: 20px; margin-top: -10px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: pvSpin .8s linear infinite; }
.pv-submit.loading .pv-submit__spinner { display: block; }
.pv-note { text-align: center; font-size: .78rem; color: var(--ink-soft); margin: .7rem 0 0; letter-spacing: .02em; }
.pv-ok { padding: 3rem 2.2rem 2.6rem; text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 420px; }
.pv-ok__icon svg { width: 84px; height: 84px; }
.pv-ok__icon circle { stroke: #16a34a; stroke-width: 2; stroke-dasharray: 166; stroke-dashoffset: 166; animation: pvStroke .6s cubic-bezier(.65,0,.45,1) forwards; }
.pv-ok__icon path { stroke: #16a34a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: pvStroke .4s cubic-bezier(.65,0,.45,1) .5s forwards; }
.pv-ok__title { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; margin: 1.2rem 0 .6rem; }
.pv-ok__text { color: var(--ink-soft); max-width: 44ch; margin: 0 auto 1.6rem; line-height: 1.55; }
@keyframes pvFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes pvIn { from { opacity: 0; transform: translateY(24px) scale(.97) } to { opacity: 1; transform: none } }
@keyframes pvUp { from { opacity: 0; transform: translateY(60px) } to { opacity: 1; transform: none } }
@keyframes pvSpin { to { transform: rotate(360deg) } }
@keyframes pvStroke { to { stroke-dashoffset: 0 } }
/* schermi bassi (portatili piccoli): solo se davvero non ci sta, si scorre dentro */
@media (max-height: 700px) and (min-width: 821px) { .pv-modal__dialog { max-height: 96vh; overflow: auto; } }
@media (max-width: 820px) {
  .pv-modal { padding: 0; align-items: flex-end; }
  .pv-modal__dialog { width: 100%; grid-template-columns: 1fr; max-height: 94vh; overflow: auto; border-radius: 22px 22px 0 0; animation-name: pvUp; }
  .pv-modal__close { background: rgba(255,255,255,.18); color: #fff; }
  .pv-modal__head { padding: 1.7rem 1.3rem 1.3rem; }
  .pv-modal__list { display: none; }
  .pv-phone { margin: 0; padding-top: .9rem; }
  .pv-form { padding: 1.2rem 1.3rem 1.5rem; }
  .pv-grid { grid-template-columns: 1fr; }
  .pv-ok { padding: 2.4rem 1.3rem 2rem; min-height: 0; }

  /* 20/10/2026 (Alex): al telefono la finestra non si vedeva tutta (iPhone 13: metà). Testata compatta,
     campi più stretti, Invia sempre visibile in fondo, testo dei campi a 16px (sotto, l'iPhone zooma la pagina) */
  .pv-modal__dialog { max-height: calc(100vh - .75rem); max-height: calc(100dvh - .75rem); overscroll-behavior: contain; }
  .pv-modal__close { top: .55rem; right: .55rem; width: 34px; height: 34px; }
  .pv-modal__head { padding: 1rem 3.2rem .9rem 1.15rem; }
  .pv-modal__head::after { width: 160px; height: 160px; right: -60px; bottom: -60px; }
  .pv-modal__kicker { font-size: .62rem; letter-spacing: .18em; margin-bottom: .3rem; }
  .pv-modal__title { font-size: 1.35rem; margin-bottom: .3rem; }
  .pv-modal__text { font-size: .84rem; line-height: 1.4; }
  .pv-phone { padding-top: .45rem; font-size: .82rem; }
  .pv-form { padding: .9rem 1.15rem 0; }
  .pv-step { margin-bottom: .75rem; }
  .pv-label { font-size: .66rem; margin-bottom: .28rem; }
  .pv-chips { gap: .32rem; }
  .pv-chip span { font-size: .78rem; padding: .36rem .68rem; }
  .pv-grid { grid-template-columns: 1fr 1fr; gap: .6rem .6rem; }
  .pv-input { font-size: 16px; padding: .5rem .7rem; border-radius: 10px; }
  textarea.pv-input { min-height: 58px; }
  .pv-file { padding: .5rem .7rem; gap: .5rem; }
  .pv-file svg { width: 18px; height: 18px; }
  .pv-file__txt { font-size: .8rem; }
  .pv-file__txt em { display: none; }
  .pv-check { margin: .6rem 0 0; }
  .pv-check label { font-size: .74rem; line-height: 1.4; }
  .pv-submit {
    position: sticky; bottom: 0; z-index: 3; margin-top: .6rem; padding: .8rem 1.2rem; font-size: .98rem;
    box-shadow: 0 -14px 18px -6px var(--paper);
  }
  .pv-note { font-size: .72rem; margin: .45rem 0 0; padding-bottom: .9rem; }
}
@media (max-width: 340px) { .pv-grid { grid-template-columns: 1fr; } }
/* telefoni bassi: la presentazione ripete il titolo, restano titolo e telefono */
@media (max-width: 820px) and (max-height: 760px) { .pv-modal__text { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .pv-modal__backdrop, .pv-modal__dialog, .pv-ok__icon circle, .pv-ok__icon path { animation: none; stroke-dashoffset: 0; }
}
/* con la finestra Preventivo aperta i bottoni fissi (WhatsApp, accessibilità) restano sotto */
body.pv-open .fwa, body.pv-open .a11y-fab, body.pv-open .a11y-panel { visibility: hidden; }

/* 25/09/2026 — allineamento alla riunione del 18/09: pagina Come lavoriamo, blocco rivenditori, riquadro foto in arrivo */
.ph-foto {
  width: 100%; aspect-ratio: 4/5; border: 2px dashed var(--sky); border-radius: 4px;
  background: rgba(255,255,255,.55); color: var(--ink-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem;
  text-align: center; padding: 2rem; font-size: 1rem; line-height: 1.5;
}
.ph-foto svg { color: var(--sky); }
.ph-foto small { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--sky-deep); }
/* Trio di foto con didascalia (Servizi, linea vita come sistema · 25/09/2026) */
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.8rem; }
.trio figure { margin: 0; }
.trio img, .trio .ph-foto { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; box-shadow: var(--shadow); }
.trio .ph-foto { padding: 1.4rem; font-size: .92rem; }
.trio figcaption { margin-top: .9rem; font-size: .95rem; color: var(--ink-soft); line-height: 1.45; }
.trio__n { font-family: var(--serif); font-weight: 600; color: var(--sky-deep); margin-right: .3rem; }
.editorial--text { grid-template-columns: 1.3fr 1fr; align-items: start; }
.bg-ink .checklist li { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.16); }
.bg-ink .editorial--text .lede p + p { margin-top: 1rem; }
.band { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.band h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); margin-bottom: 1rem; }
.band__cta { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.band__cta .btn { white-space: nowrap; }
.band__cta p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.twocol { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.twocol > div { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 1.8rem 1.9rem; }
.twocol h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 440; margin-bottom: .8rem; }
.twocol--no h3::before { content: "✕ "; color: #b3452b; }
.twocol--yes h3::before { content: "✓ "; color: var(--sky-deep); }
.twocol p { color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) {
  .editorial--text, .band { grid-template-columns: 1fr; }
}
/* testata con le persone (Chi siamo): volti in alto, titolo in basso */
/* 20/10/2026 (Alex): testo centrato nello spazio libero fra il menu (sopra) e le card di fiducia che salgono di 2,75rem (sotto) */
.pageintro--persone { align-items: center; }
.pageintro--persone .pageintro__content { padding-block: 6rem 2.75rem; }
@media (max-width: 760px) { .pageintro--persone .pageintro__content { padding-block: 5.5rem 2.75rem; } }
.pageintro--persone .pageintro__img img { object-position: 50% 12%; }
.pageintro--persone .pageintro__overlay { background: linear-gradient(180deg, rgba(15,22,32,.10) 0%, rgba(15,22,32,.45) 40%, rgba(15,22,32,.55) 65%, rgba(15,22,32,.82) 100%); }

/* Galleria a tutto schermo (20/10/2026) */
html.lb-aperta { overflow: hidden; }
.lb {
  position: fixed; inset: 0; z-index: 1100;
  display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto 1fr; align-items: center;
  background: rgba(12, 16, 22, .94); color: #fff;
  padding: clamp(.5rem, 2vw, 1.5rem);
}
.lb[hidden] { display: none; }
.lb__top { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: .6rem; }
.lb__count { font-size: .9rem; letter-spacing: .02em; color: rgba(255,255,255,.8); }
.lb__btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.lb__btn:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.5); }
.lb__btn:focus-visible { outline: 3px solid #8fb6d6; outline-offset: 2px; }
.lb__nav { margin-inline: clamp(.25rem, 1.5vw, 1rem); }
.lb__stage { margin: 0; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; }
.lb__img {
  max-width: 100%; max-height: calc(100svh - 11rem); object-fit: contain;
  border-radius: 6px; box-shadow: 0 20px 60px -20px rgba(0,0,0,.6);
  transition: opacity .2s ease;
}
.lb--cambio .lb__img { opacity: .35; }
.lb__cap { text-align: center; max-width: 70ch; }
.lb__cap strong { display: block; font-family: var(--serif); font-weight: 450; font-size: 1.15rem; }
.lb__cap span { display: block; font-size: .9rem; color: rgba(255,255,255,.75); margin-top: .2rem; }
@media (max-width: 760px) {
  .lb { grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto; }
  .lb__stage { grid-column: 1 / -1; grid-row: 2; }
  .lb__prev { grid-row: 3; justify-self: end; }
  .lb__next { grid-row: 3; justify-self: start; }
  .lb__img { max-height: calc(100svh - 13rem); }
}
@media (prefers-reduced-motion: reduce) { .lb__img, .lb__btn { transition: none; } }
html.lb-aperta .fwa, html.lb-aperta #fwa, html.lb-aperta .a11y-fab, html.lb-aperta .a11y-panel { display: none !important; }
