/* ================= LAYOUT ================= */
:root {
  --header-h: 60px;
  --gutter: 1.25rem;
  --section-gap: 3.5rem;
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: rgba(240,185,46,0.15); }
a, button, summary, .chip { touch-action: manipulation; }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.skip-link {
  position: absolute; left: 0.75rem; top: -4rem; z-index: 300;
  padding: 0.6rem 1rem; background: var(--gold); color: var(--gold-ink);
  font-weight: 700; text-decoration: none; border-radius: var(--radius-sm);
  transition: top .15s ease;
}
.skip-link:focus { top: 0.75rem; }
#mainContent:focus { outline: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}
.brand-lockup { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; min-width: 0; }
.brand-logo-frame { display: inline-flex; line-height: 0; }
.brand-lockup img { height: 36px; width: auto; }
.brand-lockup .brand-word {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--text);
  white-space: nowrap;
}

.main-nav { display: flex; align-items: center; gap: 0.1rem; }
.main-nav a {
  position: relative;
  display: block;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color .15s ease;
}
.main-nav a::after {
  content: "";
  position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.15rem;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--gold); }
@media (hover: hover) {
  .main-nav a:hover { color: var(--text); }
  .main-nav a:hover::after { transform: scaleX(1); }
}

.nav-toggle { display: none; }

/* ================= BOTTONI ================= */
/* Angolo tagliato = sagoma dei palazzi del logo. Un solo gesto, non una pillola neon. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.2rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  color: var(--gold-ink);
  background: linear-gradient(180deg, #F8C640, #EBAA1B);
  border: 0;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: background .2s ease, transform .2s var(--ease-out);
}
.btn .icon { transition: transform .25s var(--ease-out); }
.btn:active { transform: translateY(1px); }
.btn.btn-ghost {
  color: var(--text);
  background: transparent;
  clip-path: none;
  box-shadow: inset 0 0 0 1.5px var(--border);
}
.btn-sm { padding: 0.55rem 0.9rem; font-size: 0.92rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
@media (hover: hover) {
  .btn:hover { background: linear-gradient(180deg, #FFD65F, #F4B92A); }
  .btn:hover .icon { transform: translateX(3px); }
  .btn.btn-ghost:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--text-faint); }
  .btn.btn-ghost:hover .icon { transform: translate(2px, -2px); }
}
/* Touch: bersagli da almeno 44px */
@media (pointer: coarse) {
  .btn, .chip { min-height: 44px; }
}

/* ================= FOOTER ================= */
.site-footer {
  position: relative;
  margin-top: calc(var(--section-gap) + 26px);
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: var(--fs-small);
  padding-bottom: env(safe-area-inset-bottom);
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -26px; height: 26px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='26' viewBox='0 0 240 26'%3E%3Cpath fill='%23090E18' d='M0 26V16h18V9h12v7h14V5h16v8h12v5h24V8h14v6h18V3h14v9h18v5h22V7h14v8h18v-5h14v8h12v8z'/%3E%3C/svg%3E") repeat-x left bottom / 240px 26px;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr;
  gap: 2rem 3rem;
  padding: 2.4rem 0 2rem;
}
.footer-brand .brand-word {
  display: block;
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.9rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text);
}
.footer-brand p { margin: 0 0 0.3rem; max-width: 34ch; }
.footer-col h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.footer-col a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; color: var(--text-dim); transition: color .15s ease; }
.footer-col a:hover { color: var(--gold); }
.footer-col a.footer-social { gap: 0.55rem; }
.footer-col a.footer-social .icon { width: 1.05rem; height: 1.05rem; }
.footer-base {
  border-top: 1px solid var(--border-soft);
  padding: 1rem 0 1.2rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .3rem 2rem;
  color: var(--text-faint);
  font-size: 0.8rem;
}

/* ================= HERO ================= */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(68vh, 560px);
  padding: 3.2rem 0 7rem;
  overflow: hidden;
  background:
    radial-gradient(55% 70% at 80% 40%, rgba(240,185,46,0.10), transparent 70%),
    linear-gradient(180deg, var(--bg-deep) 0%, rgba(13,19,32,0) 100%);
}
.hero-decor { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }

/* Bagliore caldo dell'orizzonte: i mattoni del logo, accesi dalle luci della strada */
.hero-glow {
  position: absolute; inset: auto 0 0 0; height: 70%;
  background: radial-gradient(70% 100% at 50% 100%, rgba(180,85,47,0.34), rgba(180,85,47,0.08) 55%, transparent 75%);
}
.hero-skyline {
  position: absolute; left: 0; right: 0; bottom: -1px;
  width: 100%; height: clamp(72px, 13vw, 170px);
}
.hero-skyline .skyline-far { fill: #19223A; }
.hero-skyline .skyline-mid { fill: #0F1626; }
.hero-skyline .skyline-windows rect { fill: #FFC857; opacity: 0.8; }
.hero-skyline .skyline-windows rect.off { opacity: 0.14; }
.hero-skyline .skyline-siren circle:first-child { filter: drop-shadow(0 0 3px #E8735A); }
.hero-skyline .skyline-siren circle:last-child { filter: drop-shadow(0 0 3px #8CA6D8); }

/* Grana: toglie la piattezza digitale al cielo */
.hero-grain {
  position: absolute; inset: 0; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Il lampo: unico momento animato autorato del sito. Cala dall'alto una volta,
   il cielo si illumina un istante, poi resta fermo. */
.hero-bolt {
  position: absolute;
  right: clamp(2%, 10vw, 16%); top: -2%;
  height: 100%; width: auto;
  color: var(--gold);
  filter: drop-shadow(0 14px 22px rgba(0,0,0,0.45)) drop-shadow(0 0 26px rgba(240,185,46,0.28));
}
.hero-bolt .bolt-core { fill: #FFF1C2; opacity: .8; }
.hero-bolt .bolt-fork { opacity: .85; }
.hero-flash {
  position: absolute; inset: 0;
  background: radial-gradient(70% 80% at 80% 30%, rgba(255,214,110,0.5), transparent 70%);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-bolt { animation: bolt-strike 0.45s cubic-bezier(0.7, 0, 0.84, 0) 0.1s both; }
  .hero-flash { animation: sky-flash 0.9s ease-out 0.5s both; }
}
/* Dopo il lampo il testo entra a scalare: titolo, sottotitolo, azioni. Una sola sequenza. */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: hero-in 0.6s var(--ease-out) 0.4s both; }
  .hero p.lede { animation: hero-in 0.6s var(--ease-out) 0.5s both; }
  .hero-actions { animation: hero-in 0.6s var(--ease-out) 0.6s both; }
}
@keyframes hero-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes bolt-strike {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes sky-flash {
  0% { opacity: 0; }
  12% { opacity: 1; }
  28% { opacity: 0.2; }
  40% { opacity: 0.65; }
  100% { opacity: 0; }
}

.hero-inner { position: relative; z-index: 1; width: 100%; }
.hero h1 {
  margin: 0 0 1.1rem;
  max-width: 11ch;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: var(--fs-display);
  line-height: 0.9;
  letter-spacing: 0.01em;
}
.hero h1 em { display: block; font-style: normal; color: var(--gold); }
.hero p.lede {
  margin: 0 0 1.5rem;
  max-width: 42ch;
  font-size: 1.05rem;
  color: var(--text-dim);
}
.hero-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }

/* ================= SERVIZI (fascia) ================= */
.service-band { background: var(--surface); border-bottom: 1px solid var(--border); border-top: 1px solid rgba(180,85,47,0.55); position: relative; z-index: 2; }
.service-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.service-list li {
  display: grid; grid-template-columns: auto 1fr; column-gap: 0.85rem; align-items: start;
  padding: 1.2rem 1.5rem 1.2rem 0;
}
.service-list li + li { padding-left: 1.5rem; border-left: 1px solid var(--border); }
.icon-tile {
  display: grid; place-items: center; flex-shrink: 0;
  width: 2.5rem; height: 2.5rem;
  color: var(--gold);
  background: rgba(240,185,46,0.08);
  box-shadow: inset 0 0 0 1px rgba(240,185,46,0.3);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
}
.icon-tile .icon { width: 1.25rem; height: 1.25rem; }
.service-list .icon-tile { margin-top: 0.05rem; }
.service-list .service-title {
  display: block;
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.service-list p:not(.service-title) { margin: 0; color: var(--text-dim); font-size: 0.88rem; line-height: 1.45; max-width: 32ch; }

/* ================= SEZIONI ================= */
section.page-section { padding: var(--section-gap) 0 0; position: relative; }
section.page-section.page-first { padding-top: 2.4rem; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 0.6rem 3rem;
  align-items: end;
  margin: 0 0 1.6rem;
}
.section-head h1, .section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: var(--fs-h2);
  line-height: 1;
  letter-spacing: 0.015em;
  scroll-margin-top: 5rem;
}
.section-head p { margin: 0; color: var(--text-dim); max-width: 46ch; }

/* ================= VANTAGGI (righe, non card) ================= */
.perk-list { border-top: 1px solid var(--border); }
.perk {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 0.3rem 3rem;
  align-items: baseline;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--border);
}
.perk h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-h3);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: color .2s ease, transform .3s var(--ease-out);
}
.perk p { margin: 0; color: var(--text-dim); max-width: 46ch; }
@media (hover: hover) {
  .perk:hover { background: linear-gradient(90deg, rgba(240,185,46,0.06), transparent 70%); }
  .perk:hover h3 { color: var(--gold); transform: translateX(8px); }
}

/* ================= STEP ================= */
.step-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  counter-reset: step;
  border-top: 1px solid var(--border);
}
.step {
  counter-increment: step;
  padding: 1.2rem 1.5rem 1.4rem 0;
}
.step + .step { padding-left: 1.5rem; border-left: 1px solid var(--border); }
.step::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.2rem;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold);
}
.step h3 { margin: 0 0 0.35rem; font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h3); line-height: 1.1; text-transform: uppercase; letter-spacing: 0.03em; }
.step p { margin: 0; color: var(--text-dim); font-size: 0.95rem; max-width: 34ch; }

/* ================= CATALOGO ================= */
.catalog-toolbar { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.4rem; }
.chip {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  cursor: pointer;
  background: transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover { color: var(--text); border-color: var(--text-faint); }
.chip.active { color: var(--gold-ink); background: var(--gold); border-color: var(--gold); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.1rem; }

.product-card {
  position: relative;
  background: linear-gradient(180deg, #1A2340, var(--surface) 60%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: border-color .25s ease, transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
@media (hover: hover) {
  .product-card:hover { border-color: rgba(240,185,46,0.55); transform: translateY(-3px); box-shadow: var(--shadow-2); }
  .product-card:hover .product-media img.active,
  .product-card:hover .product-media video.active { transform: scale(1.05); }
  .product-card:hover .product-hover-arrow { opacity: 1; transform: none; }
}

.product-media { position: relative; aspect-ratio: 4 / 3; background: var(--mono-bg); overflow: hidden; }
.product-media img, .product-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .25s ease, transform .6s var(--ease-out);
}
.product-media img.active, .product-media video.active { opacity: 1; }

.product-hover-arrow {
  position: absolute; bottom: 0.6rem; right: 0.6rem; z-index: 2;
  width: 34px; height: 34px;
  background: var(--gold); color: var(--gold-ink);
  display: flex; align-items: center; justify-content: center;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  opacity: 0; transform: translateY(6px);
  transition: opacity .25s ease, transform .3s var(--ease-out);
}
.product-hover-arrow .icon { width: 16px; height: 16px; }

.media-dots { position: absolute; bottom: 0.6rem; left: 0.7rem; display: flex; gap: 0.3rem; z-index: 2; }
.media-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(241,235,218,0.4); transition: background .2s ease; }
.media-dots span.active { background: var(--gold); }
.media-counter {
  position: absolute; top: 0.6rem; right: 0.6rem; z-index: 2;
  font-family: var(--font-mono); font-size: 0.7rem;
  background: rgba(9,14,24,0.75); color: var(--text);
  padding: 0.1rem 0.45rem; border-radius: var(--radius-sm);
}

/* Etichetta: piatta, angolo tagliato, ferma. */
.badge-tag {
  position: absolute; top: 0.6rem; left: 0.6rem; z-index: 2;
  padding: 0.28rem 0.7rem 0.28rem 0.55rem;
  font-family: var(--font-display); font-weight: 800;
  font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1;
  color: var(--gold-ink); background: var(--gold);
  clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.badge-tag.inline { position: static; display: inline-block; }

.product-body { padding: 0.9rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.product-cat { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; color: var(--text-faint); letter-spacing: 0.12em; }
.product-name { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; line-height: 1.1; letter-spacing: 0.03em; text-transform: uppercase; margin: 0; overflow-wrap: anywhere; }
.product-desc { font-size: 0.9rem; color: var(--text-dim); margin: 0; flex: 1; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.product-price-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 0.4rem; padding-top: 0.6rem; border-top: 1px solid var(--border-soft); }
.product-price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--gold); font-size: 0.95rem; font-weight: 500; }
.product-formats { font-size: 0.8rem; color: var(--text-faint); }

/* Segnaposto quando il prodotto non ha ancora foto: palazzi, mattone caldo, fulmine */
.media-ph {
  position: absolute; inset: 0; display: grid; place-items: center; color: rgba(240,185,46,0.4);
  background:
    radial-gradient(80% 70% at 50% 110%, rgba(180,85,47,0.32), transparent 70%),
    linear-gradient(180deg, #1D2745, var(--mono-bg));
}
.media-ph .icon { width: 28%; height: auto; max-width: 64px; aspect-ratio: 1; }
.empty-note { color: var(--text-dim); margin: 0; padding: 1.2rem 0; }

.skeleton { background: var(--surface-2); }

/* ================= SCHEDA PRODOTTO ================= */
.back-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; margin: 0 0 0.6rem; color: var(--text-dim); text-decoration: none; font-weight: 500; }
.back-link:hover { color: var(--text); }
.back-link .icon { transform: rotate(180deg); }

.product-view { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr); gap: 2.2rem; align-items: start; }
.pv-stage {
  position: relative; aspect-ratio: 4 / 3; background: var(--mono-bg);
  border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); touch-action: pan-y;
}
.pv-stage img, .pv-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s ease; }
.pv-stage img.active, .pv-stage video.active { opacity: 1; }
.pv-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(9,14,24,0.7); border: 1px solid var(--border);
  color: var(--text); display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 3; font-size: 1.1rem; transition: border-color .15s ease, color .15s ease;
}
.pv-nav.prev { left: 0.6rem; } .pv-nav.next { right: 0.6rem; }
.pv-nav:hover { border-color: var(--gold); color: var(--gold); }
.pv-counter {
  position: absolute; bottom: 0.6rem; right: 0.6rem; z-index: 3;
  font-family: var(--font-mono); font-size: 0.75rem;
  background: rgba(9,14,24,0.75); padding: 0.15rem 0.5rem; border-radius: var(--radius-sm);
}
.pv-thumbs { display: flex; gap: 0.45rem; margin-top: 0.6rem; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.pv-thumbs::-webkit-scrollbar { display: none; }
.pv-thumb { flex-shrink: 0; width: 64px; height: 48px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; cursor: pointer; background: var(--mono-bg); padding: 0; opacity: .7; transition: opacity .15s ease; }
.pv-thumb:hover { opacity: 1; }
.pv-thumb.active { border-color: var(--gold); opacity: 1; }
.pv-thumb img, .pv-thumb video { width: 100%; height: 100%; object-fit: cover; }

.pv-info .product-cat { display: block; margin: 0.7rem 0 0; }
.pv-info h1 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.9rem, 4.4vw, 2.8rem); line-height: 1; margin: 0.3rem 0 0.7rem; overflow-wrap: anywhere; }
.pv-desc { color: var(--text-dim); max-width: 52ch; margin: 0; }
.pv-features { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.4rem; }
.pv-features li { display: flex; gap: 0.7rem; align-items: baseline; font-size: 0.95rem; }
.pv-features li::before { content: ""; width: 12px; height: 2px; background: var(--gold); flex-shrink: 0; transform: translateY(-4px); }

.variant-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.variant-table th, .variant-table td { text-align: left; padding: 0.65rem 0; border-bottom: 1px solid var(--border); }
.variant-table th { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; color: var(--text-faint); letter-spacing: 0.12em; }
.variant-table td:last-child, .variant-table th:last-child { text-align: right; }
.variant-table td:last-child { color: var(--gold); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ================= RECENSIONI ================= */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 2.5rem; }
.review-grid.review-grid-list { border-top: 1px solid var(--border); }
.review-item { padding: 1.1rem 0 1.2rem; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 0.5rem; }
.review-stars { display: flex; gap: 0.12rem; }
.star-icon { width: 1rem; height: 1rem; color: var(--border); }
.star-icon.filled { color: var(--gold); }
.review-text { margin: 0; color: var(--text); max-width: 46ch; overflow-wrap: anywhere; }
.review-meta { font-size: 0.8rem; color: var(--text-faint); font-variant-numeric: tabular-nums; }

.review-form-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1rem 3rem; margin-top: var(--section-gap); align-items: start; }
.review-form-wrap .section-head { grid-template-columns: 1fr; margin: 0; }
.review-form { max-width: 520px; }
.review-form label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text-dim); margin: 1rem 0 0.4rem; }
.review-form label:first-child { margin-top: 0; }
.review-form textarea {
  width: 100%; background: var(--mono-bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); padding: 0.75rem 0.85rem; font-family: var(--font-body); font-size: 1rem;
  transition: border-color .15s ease; resize: vertical; min-height: 104px;
}
.review-form textarea:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240,185,46,0.2); }
.review-form textarea::placeholder { color: var(--text-faint); }
.star-picker { display: flex; gap: 0.1rem; }
.star-picker button { background: none; border: none; cursor: pointer; color: var(--border); padding: 0.25rem; line-height: 1; transition: color .15s ease, transform .2s var(--ease-out); }
.star-picker button .icon { width: 1.9rem; height: 1.9rem; }
.star-picker button.selected, .star-picker button:hover { color: var(--gold); }
.char-count { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-faint); text-align: right; margin-top: 0.3rem; }
.form-msg { font-size: 0.92rem; margin-top: 0.9rem; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm); display: none; }
.form-msg.ok { display: block; background: rgba(140,166,216,0.12); color: var(--blue); border: 1px solid rgba(140,166,216,0.5); }
.form-msg.err { display: block; background: rgba(232,115,90,0.12); color: var(--red); border: 1px solid rgba(232,115,90,0.5); }

/* ================= FAQ / REGOLE ================= */
.faq-list { border-top: 1px solid var(--border); max-width: 780px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer; padding: 0.9rem 0; min-height: 48px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.03em; text-transform: uppercase;
  transition: color .15s ease;
}
.faq-item summary:hover { color: var(--gold); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold); font-size: 1.6rem; line-height: 1; transition: transform .3s var(--ease-out); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 0 1.1rem; color: var(--text-dim); max-width: 60ch; }

.rules-list { list-style: none; padding: 0; margin: 0; max-width: 780px; border-top: 1px solid var(--border); }
.rules-list li { padding: 0.85rem 0; border-bottom: 1px solid var(--border); display: flex; gap: 0.9rem; align-items: baseline; color: var(--text-dim); }
.rules-list li::before { content: ""; width: 12px; height: 2px; background: var(--gold); flex-shrink: 0; transform: translateY(-4px); }

/* ================= CONTATTI ================= */
.contact-group + .contact-group { margin-top: 2.4rem; }
.contact-group > h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-faint);
}
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.contact-row {
  display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; gap: 0 1rem; align-items: center;
  padding: 0.85rem 0; border-bottom: 1px solid var(--border);
}
.contact-row { transition: background .2s ease; }
@media (hover: hover) { .contact-row:hover { background: linear-gradient(90deg, rgba(240,185,46,0.05), transparent 60%); } }
.contact-name { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; line-height: 1.05; text-transform: uppercase; letter-spacing: 0.03em; }
.contact-handle { display: block; margin-top: 0.2rem; font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-dim); overflow-wrap: anywhere; }
.contact-note { display: block; margin-top: 0.15rem; font-size: 0.85rem; color: var(--text-faint); }
.contact-row.is-full .contact-name { color: var(--text-faint); }
.contact-row.is-full .icon-tile { color: var(--text-faint); background: transparent; box-shadow: inset 0 0 0 1px var(--border); }
.status-full {
  font-family: var(--font-display); font-weight: 800; font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--red); border: 1.5px solid currentColor; padding: 0.35rem 0.8rem; border-radius: var(--radius-sm); white-space: nowrap;
}
.copy-btn.copied { background: var(--blue); box-shadow: none; color: var(--gold-ink); }
.notice {
  margin: 1rem 0 0; max-width: 62ch; color: var(--text-dim); font-size: 0.9rem;
  display: flex; gap: .6rem; align-items: baseline;
}
.notice .icon { color: var(--gold); transform: translateY(2px); }

.services-wide .service-list { border-top: 1px solid var(--border); }

/* ================= AGE GATE ================= */
.age-gate[hidden] { display: none; }
.age-gate {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(9,14,24,0.97);
  display: flex; align-items: center; justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  overscroll-behavior: contain;
}
.age-gate-box { max-width: 420px; width: 100%; padding: 1.8rem 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-2); }
.age-gate-mark {
  display: inline-block; margin: 0; padding: 0.15rem 0.9rem 0.15rem 0.7rem;
  font-family: var(--font-display); font-weight: 900; font-size: 2.6rem; line-height: 1;
  color: var(--gold-ink); background: linear-gradient(180deg, #F8C640, #EBAA1B);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.age-gate-box h2 { font-family: var(--font-display); font-weight: 900; font-size: 1.9rem; line-height: 1; text-transform: uppercase; margin: 0.7rem 0 0.6rem; }
.age-gate-box p { color: var(--text-dim); font-size: 0.92rem; margin: 0; }
.age-gate-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.3rem; }

/* ================= MANUTENZIONE ================= */
.maintenance-page { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem; }
.maintenance-page h1 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(2rem, 7vw, 3.2rem); line-height: 1; margin: 0; }
.maintenance-page p { color: var(--text-dim); max-width: 480px; margin: 0.8rem auto 0; }

/* ================= RESPONSIVE ================= */
/* Tablet / piccolo laptop: la nav diventa pannello */
@media (max-width: 900px) {
  .main-nav {
    position: fixed; top: calc(var(--header-h) + env(safe-area-inset-top)); left: 0; right: 0;
    background: var(--bg-deep); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; padding: 0.3rem var(--gutter) 0.8rem; gap: 0;
    transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .2s ease, transform .3s var(--ease-out), visibility 0s linear .3s;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .main-nav a { padding: 0.8rem 0; font-size: 1.25rem; border-bottom: 1px solid var(--border-soft); }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav a::after { display: none; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-right: -8px; border-radius: var(--radius-sm);
    background: transparent; border: 0; color: var(--text); cursor: pointer;
  }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 1.6rem 1.5rem; padding: 2rem 0 1.4rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --section-gap: 2.6rem; --gutter: 1rem; }
  .section-head, .perk { grid-template-columns: 1fr; gap: 0.3rem; }
  .section-head { margin-bottom: 1.1rem; }
  .perk { padding: 0.85rem 0; }
  .review-form-wrap { grid-template-columns: 1fr; gap: 0.8rem; }
  .product-view { grid-template-columns: 1fr; gap: 1.2rem; }
  section.page-section.page-first { padding-top: 1.4rem; }

  .service-list { grid-template-columns: 1fr; }
  .service-list li, .service-list li + li { padding: 0.85rem 0; border-left: 0; }
  .service-list li + li { border-top: 1px solid var(--border-soft); }
  .icon-tile { width: 2.2rem; height: 2.2rem; }
  .service-list .service-title { font-size: 1.1rem; margin-bottom: 0.1rem; }
  .service-list p:not(.service-title) { font-size: 0.85rem; max-width: none; }

  /* Passi in riga: numero a sinistra, testo a destra. Molto più corti in verticale. */
  .step-list { grid-template-columns: 1fr; }
  .step, .step + .step { display: grid; grid-template-columns: 2.6rem 1fr; column-gap: 0.8rem; padding: 0.9rem 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--border); }
  .step::before { grid-row: 1 / span 2; margin: 0; font-size: 2.4rem; line-height: 1; }
  .step h3, .step p { grid-column: 2; max-width: none; }

  .hero-bolt { right: -6%; opacity: .26; }
}

@media (max-width: 600px) {
  :root { --header-h: 56px; }
  .brand-lockup img { height: 30px; }
  .brand-lockup .brand-word { font-size: 1.15rem; }

  .hero { min-height: 0; padding: 1.8rem 0 4.6rem; }
  .hero h1 { margin-bottom: 0.8rem; }
  .hero p.lede { font-size: 1rem; margin-bottom: 1.1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .hero-actions .btn { padding-block: 0.85rem; }
  .hero-skyline { height: 64px; }

  /* Filtri: una sola riga scorrevole invece di tre righe di chip */
  .catalog-toolbar { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 0.2rem; scrollbar-width: none; }
  .catalog-toolbar::-webkit-scrollbar { display: none; }

  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .product-body { padding: 0.6rem 0.7rem 0.75rem; gap: 0.2rem; }
  .product-cat { font-size: 0.68rem; }
  .product-name { font-size: 1.05rem; }
  .product-desc { font-size: 0.82rem; }
  .product-price-row { margin-top: 0.2rem; padding-top: 0.4rem; }
  .product-hover-arrow { display: none; }
  .badge-tag { font-size: 0.75rem; top: 0.45rem; left: 0.45rem; }

  .pv-thumb { width: 56px; height: 44px; }

  .contact-row { grid-template-columns: 2.2rem minmax(0, 1fr) auto; gap: 0 0.75rem; padding: 0.7rem 0; }
  .contact-name { font-size: 1.15rem; }
  .contact-handle { font-size: 0.78rem; }
  .contact-group + .contact-group { margin-top: 1.8rem; }

  .review-grid { grid-template-columns: 1fr; }
  .faq-item summary { font-size: 1.05rem; }

  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-col h2 { margin-bottom: 0.4rem; }
  .footer-col a { font-size: 0.88rem; }
  .age-gate-actions .btn { flex: 1; }
}

/* Schermi molto stretti (iPhone SE, 320px) */
@media (max-width: 360px) {
  .brand-lockup .brand-word { font-size: 1.05rem; }
  .contact-row .btn-sm { padding-inline: 0.7rem; }
  .footer-main { grid-template-columns: 1fr; }
}

/* Telefono in orizzontale: hero basso, niente altezza sprecata */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { min-height: 0; padding: 1.6rem 0 4rem; }
  .hero h1 { font-size: 2.2rem; }
}

/* Touch: link del footer e logo raggiungibili con il pollice */
@media (pointer: coarse) {
  .footer-col a { min-height: 44px; }
  .brand-lockup { min-height: 44px; }
}
