/* ==========================================================================
   LS Brands — Redesign Layer ("Editoriale Sicuro")
   --------------------------------------------------------------------------
   Non distruttivo: si appoggia sopra style.css (stessa classe = vince per
   ordine di cascata), stessa palette brand LS, stessa sicurezza/CSP.
   Obiettivo: meno "template clone", più editoriale, sicuro e raffinato.
   ========================================================================== */

/* ---- Token raffinati (stessa brand, base calda, ombre più leggere) ---- */
:root {
  --brand: #ee8324;
  --brand-bright: #f89b48;
  --brand-deep: #9a4a06;

  /* Obsidian caldo invece che nero freddo + base carta calda */
  --obsidian: #14110d;
  --obsidian-soft: #221d18;
  --cream: #fff4e8;
  --cream-border: #ffd9b8;
  --white: #ffffff;
  --soft: #faf6f1;
  --paper: #faf6f1;

  --ink: #1a1511;
  --ink-soft: #5c544c;

  --hair: 1px solid rgba(20, 17, 13, 0.10);
  --hair-strong: 1px solid rgba(20, 17, 13, 0.16);
  --hair-dark: 1px solid rgba(255, 255, 255, 0.12);

  --r: 18px;
  --r-lg: 24px;

  /* Ombre più leggere e naturali */
  --shadow: 0 18px 44px -26px rgba(20, 17, 13, 0.22);
  --shadow-gold: 0 14px 32px -16px rgba(238, 131, 36, 0.34);
  --shadow-soft: 0 1px 2px rgba(20, 17, 13, 0.04), 0 10px 26px -18px rgba(20, 17, 13, 0.12);
}

/* ---- Base calda ---- */
body { background: var(--white); color: var(--ink); }
p { color: var(--ink-soft); }

h1, h2, h3, h4 {
  letter-spacing: -0.02em;
}

/* Eyebrow: niente pillola piena, riga sottile + punto accento */
.etichetta {
  background: transparent;
  border: 0;
  border-left: 3px solid var(--brand);
  border-radius: 0;
  padding: 2px 0 2px 12px;
  color: var(--brand-deep);
  letter-spacing: 0.16em;
}

.etichetta-dark,
.etichetta-white {
  background: transparent;
  border-left-color: var(--brand-bright);
  color: var(--brand-bright);
}

/* ==========================================================================
   HEADER — barra piena invece che pillola vetro (meno "G2M")
   ========================================================================== */
.site-header { inset: 0 0 auto 0; }

.nav-pill {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  border: 0;
  border-bottom: var(--hair);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: none;
  padding: 14px clamp(16px, 4vw, 44px);
}

.site-header.scroll .nav-pill {
  padding: 10px clamp(16px, 4vw, 44px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px -22px rgba(20, 17, 13, 0.28);
}

@media (max-width: 700px) {
  .nav-pill { width: 100%; padding: 12px 14px; }
}

/* CTA nav: più sobrio */
.nav-cta {
  background: var(--obsidian);
  color: #ffffff;
  box-shadow: none;
  border-radius: 12px;
}
.nav-cta:hover { background: var(--brand); color: var(--obsidian); transform: translateY(-1px); }

/* ==========================================================================
   BOTTONI — raggio squadrato, contrasto netto
   ========================================================================== */
.btn { border-radius: 12px; }

.btn-primary {
  background: var(--brand);
  color: var(--obsidian);
  box-shadow: 0 12px 26px -14px rgba(238, 131, 36, 0.5);
}
.btn-primary:hover { background: var(--brand-bright); box-shadow: var(--shadow-gold); }

.btn-white {
  background: #ffffff;
  color: var(--obsidian);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.4);
}
.btn-white:hover { background: var(--brand-bright); color: var(--obsidian); }

.btn-outline { border-color: rgba(20, 17, 13, 0.28); border-radius: 12px; }
.btn-outline:hover { background: var(--obsidian); color: var(--brand-bright); border-color: var(--obsidian); }

/* Pillola titolo: manteniamo accento ma più compatta */
.pill-hl,
.pill-white { border-radius: 8px; padding: 2px 14px 5px; }

/* ==========================================================================
   HERO — più respiro, meno ornamento
   ========================================================================== */
.hero { background: var(--white); }
.hero-watermark { opacity: 0.5; }
.motto-pills span {
  border: var(--hair);
  background: var(--paper);
  border-radius: 8px;
}
.fan-card { border-width: 5px; border-radius: 18px; }
.float-chip { border-radius: 12px; }

/* ==========================================================================
   SEZIONI — ritmo e righelli invece che solo "ombra su bianco"
   ========================================================================== */
.sec-soft { background: var(--paper); }
.sec-dark { background: var(--obsidian); }

.sec-head { margin-bottom: 52px; }

/* ==========================================================================
   SERVIZI — da "card numerate clone" a lista editoriale a righelli
   ========================================================================== */
.svc-list {
  display: grid;
  grid-template-columns: 1fr;
  border-top: var(--hair);
}

.svc-list .srv-card {
  background: transparent;
  border: 0;
  border-bottom: var(--hair);
  border-radius: 0;
  box-shadow: none;
  padding: 38px 4px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "num head"
    "num body"
    "num list";
  column-gap: 32px;
  align-items: start;
  transition: background-color 240ms ease, padding-left 240ms var(--ease);
}

.svc-list .srv-card::before { display: none; }        /* niente flood-fill */
.svc-list .srv-card:hover { transform: none; box-shadow: none; padding-left: 14px; background: var(--paper); }
.svc-list .srv-card:hover::before { display: none; }

.svc-list .srv-num {
  position: static;
  grid-area: num;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
  color: var(--brand);
  letter-spacing: -0.02em;
  min-width: 2.2ch;
  margin-top: 2px;
  transition: color 240ms ease;
}
.svc-list .srv-card:hover .srv-num { color: var(--brand-deep); }

.svc-list .srv-icon { display: none; }                 /* togliamo icona-box rumore */
.svc-list .srv-card h3 { grid-area: head; margin: 0 0 10px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.svc-list .srv-card p { grid-area: body; margin: 0; max-width: 62ch; color: var(--ink-soft); }
.svc-list .srv-mini-list {
  grid-area: list;
  border-top: 0;
  padding: 16px 0 0;
  margin: 14px 0 0;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.svc-list .srv-mini-list li { font-weight: 600; color: var(--ink-soft); }
.svc-list .srv-mini-list li::before { content: ""; }
.svc-list .srv-mini-list li::after { content: ""; }

/* marker accento semplice per le liste */
.svc-list .srv-mini-list li {
  position: relative;
  padding-left: 18px;
}
.svc-list .srv-mini-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--brand);
  color: inherit;
}

/* fallback generico per griglia servizi (altre pagine) */
.grid-3 .srv-card { border: var(--hair); box-shadow: var(--shadow-soft); }

/* ==========================================================================
   METODO — timeline connessa invece di 4 card uguali
   ========================================================================== */
.steps-grid { gap: 0; border-top: var(--hair-dark); }

.steps-grid .dark-card {
  background: transparent;
  border: 0;
  border-bottom: var(--hair-dark);
  border-radius: 0;
  padding: 30px 28px 30px 0;
  transition: background-color 240ms ease;
}
.steps-grid .dark-card:hover { transform: none; background: rgba(255, 255, 255, 0.04); border-color: var(--hair-dark); }
.steps-grid .dc-step { letter-spacing: 0.16em; }

/* numero di step in evidenza */
.dc-step { display: block; }

@media (min-width: 1051px) {
  .steps-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps-grid .dark-card { border-bottom: 0; border-right: var(--hair-dark); padding-right: 24px; padding-left: 24px; }
  .steps-grid .dark-card:first-child { padding-left: 0; }
  .steps-grid .dark-card:last-child { border-right: 0; padding-right: 0; }
}

.pillars-strip { border-radius: var(--r-lg); }

/* ==========================================================================
   PORTFOLIO — più pulito
   ========================================================================== */
.proj-card { border-radius: var(--r-lg); box-shadow: var(--shadow-soft); border: var(--hair); }
.proj-card:hover { box-shadow: var(--shadow); }
.proj-shot { height: 230px; }
.proj-tag { border-radius: 8px; }

/* ==========================================================================
   CARD GENERICHE — raggio + bordo sobrio
   ========================================================================== */
.srv-card, .dark-card, .price-card, .compare-card, .addon-item, .faq-item {
  border-radius: var(--r-lg);
}

/* ==========================================================================
   TEASER + CONTACT — obsidian caldo, niente ring decorativo
   ========================================================================== */
.teaser-card, .contact-card {
  background: var(--obsidian);
  border: var(--hair-dark);
  border-radius: var(--r-lg);
}
.contact-ring { display: none; }

/* ==========================================================================
   FAQ — lista a righelli
   ========================================================================== */
.faq-item { background: transparent; border: var(--hair); box-shadow: none; }
.faq-item[open] { background: var(--paper); box-shadow: var(--shadow-soft); border-color: transparent; }
.faq-item summary i { border-radius: 10px; }

/* ==========================================================================
   MARQUEE — striscia sottile obsidian invece di banner arancio spesso
   ========================================================================== */
.ribbon { background: var(--obsidian); color: #ffffff; padding: 12px 0; box-shadow: none; }
.ribbon-track { font-size: 0.86rem; letter-spacing: 0.12em; }
.ribbon-track i { color: var(--brand-bright); opacity: 0.8; }

/* ==========================================================================
   FOOTER — più sobrio, meno watermark/arco
   ========================================================================== */
.site-footer { background: var(--obsidian); }
.site-footer::before { opacity: 0.5; }
.footer-glass { border: var(--hair-dark); background: rgba(255, 255, 255, 0.04); border-radius: var(--r-lg); }
.footer-watermark { opacity: 0.55; }
.fg-col h3 { color: var(--brand-bright); }

/* ==========================================================================
   ACCESSIBILITÀ / MOVIMENTO — rispetta preferenze
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .svc-list .srv-card, .steps-grid .dark-card { transition: none; }
}

/* ==========================================================================
   PORTFOLIO — stage 3D leggero (le particelle vivono nel layer globale)
   ========================================================================== */
.portfolio-3d { position: relative; overflow: hidden; }
.portfolio-3d > .container { position: relative; z-index: 1; }
.portfolio-3d .proj-card { transform-style: preserve-3d; }

/* rispetta chi riduce il movimento: niente tilt extra */
@media (prefers-reduced-motion: reduce) {
  .portfolio-3d .proj-card { transform: none !important; }
}

/* ==========================================================================
   PORTFOLIO A CAROSELLO MODERNO + particelle 3D per progetto
   ========================================================================== */
.carousel { position: relative; }

.carousel-viewport { overflow: hidden; }

.carousel-track {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 10px 6px 26px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-padding-inline: 6px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 4px; border-radius: 12px; }

.proj-slide {
  flex: 0 0 min(420px, 86vw);
  scroll-snap-align: center;
  margin: 0;
}

/* immagine progetto */
.proj-shot { position: relative; }

/* frecce */
.car-nav {
  position: absolute;
  top: 108px;
  z-index: 5;
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: var(--hair);
  background: rgba(255, 255, 255, 0.92);
  color: var(--obsidian);
  font-size: 1.25rem; line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: background-color 200ms ease, color 200ms ease, transform 200ms var(--ease), opacity 200ms ease;
}
.car-nav:hover { background: var(--brand); color: var(--obsidian); transform: scale(1.06); }
.car-nav:disabled { opacity: 0.35; cursor: default; pointer-events: none; }
.car-prev { left: -6px; }
.car-next { right: -6px; }

@media (max-width: 760px) {
  .car-nav { display: none; }
  .proj-slide { flex-basis: 86vw; }
}

/* dots */
.car-dots { display: flex; justify-content: center; gap: 2px; margin-top: 2px; }
.car-dot {
  position: relative;
  width: 26px; height: 26px; padding: 0;
  border: 0; border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.car-dot::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(20, 17, 13, 0.22);
  transition: background-color 200ms ease, width 200ms ease, border-radius 200ms ease;
}
.car-dot:hover::before { background: var(--brand); }
.car-dot.is-on::before { background: var(--brand); width: 24px; border-radius: 999px; }

/* rispetta chi riduce il movimento */
@media (prefers-reduced-motion: reduce) {
  .carousel-track { scroll-behavior: auto; }
  .car-nav, .car-dot { transition: none; }
}

/* ==========================================================================
   SITO — micro-copy di fiducia
   ========================================================================== */

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 18px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.hero-trust span {
  position: relative;
  padding-left: 14px;
}

.hero-trust span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.contact-trust {
  margin: 14px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.car-note {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   EXIT INTENT — una sola volta per sessione, accessibile
   ========================================================================== */
body.exit-open { overflow: hidden; }

.exit-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.exit-modal[hidden] { display: none; }

.exit-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 17, 13, 0.62);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.exit-card {
  position: relative;
  z-index: 1;
  width: min(540px, 100%);
  max-height: min(88vh, 720px);
  overflow: auto;
  background: var(--paper);
  color: var(--obsidian);
  border: 1px solid rgba(20, 17, 13, 0.12);
  border-radius: 22px;
  padding: clamp(26px, 4vw, 42px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.exit-modal.is-open .exit-card {
  animation: exitIn 280ms var(--ease);
}

@keyframes exitIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.exit-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(20, 17, 13, 0.14);
  background: #fff;
  color: var(--obsidian);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.exit-x:hover { background: var(--brand); }

.exit-card h2 {
  margin: 14px 0 10px;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.exit-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.exit-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.exit-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.92rem;
  font-weight: 600;
}

.exit-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
  font-weight: 800;
}

.exit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.exit-no {
  display: block;
  margin: 16px auto 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.exit-no:hover { color: var(--obsidian); }

@media (prefers-reduced-motion: reduce) {
  .exit-modal.is-open .exit-card { animation: none; }
}

/* Il vecchio watermark "LS BRANDS" non deve più comparire: niente "A" gigante */
.hero-watermark,
.footer-watermark { display: none !important; }

/* Link nel testo legale: sottolineati, non distinguibili solo dal colore */
.footer-legal small a,
.footer-legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==========================================================================
   READING PROGRESS BAR (Barra fisica di progressione lettura)
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 10001;
  background: linear-gradient(90deg, var(--brand-deep), var(--brand), var(--brand-bright));
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
  will-change: transform;
}

/* ==========================================================================
   EFFETTO SPECCHIO + INTERACTIVE 3D PARTICLE OBJECT BUILDER
   ========================================================================== */
.sec-mirror {
  position: relative;
  overflow: hidden;
  border-top: var(--hair);
}

.mirror-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

@media (max-width: 980px) {
  .mirror-grid {
    grid-template-columns: 1fr;
  }
}

.mirror-copy h2 {
  margin: 14px 0 14px;
}

.mirror-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.mirror-point {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px 20px;
  background: var(--paper);
  border: var(--hair);
  border-radius: 16px;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.mirror-point:hover {
  border-color: rgba(238, 131, 36, 0.45);
  box-shadow: var(--shadow-soft);
}

.mp-num {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.02em;
  line-height: 1.3;
  min-width: 2ch;
}

.mirror-point h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  color: var(--ink);
}

.mirror-point p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.mirror-cta-row {
  margin-top: 26px;
}

/* Interactive 3D Particle Builder — Open, Frameless & Compact */
.sec-mirror .mirror-grid {
  align-items: center;
}

.builder-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.builder-top {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.builder-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.morph-btn {
  appearance: none;
  border: var(--hair-strong);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.morph-btn:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
  background: var(--cream);
}

.morph-btn.is-active {
  background: var(--obsidian);
  border-color: var(--obsidian);
  color: #ffffff;
}

.morph-btn:focus-visible {
  outline: 2.5px solid var(--brand);
  outline-offset: 2px;
}

.builder-caption {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink-soft);
  text-align: center;
  max-width: 44ch;
}

.builder-canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  background: transparent;
  border: 0;
  overflow: hidden;
}

.builder-3d-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

.builder-3d-canvas:active {
  cursor: grabbing;
}

/* ==========================================================================
   PORTFOLIO MODERNO — Flagship Split + Bento 2x2 Grid
   ========================================================================== */
.portfolio-modern {
  position: relative;
}

.pf-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  background: var(--obsidian);
  color: #ffffff;
  border-radius: 26px;
  padding: clamp(20px, 3vw, 34px);
  border: var(--hair-dark);
  box-shadow: 0 30px 70px -32px rgba(20, 17, 13, 0.45);
  margin-bottom: 26px;
}

@media (max-width: 960px) {
  .pf-featured {
    grid-template-columns: 1fr;
  }
}

.pf-featured-media {
  border-radius: 16px;
  overflow: hidden;
  background: #1c1814;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.65);
}

.pf-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pf-dots {
  display: inline-flex;
  gap: 6px;
}

.pf-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: block;
}

.pf-dots i:first-child { background: var(--brand); }

.pf-url {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.58);
  letter-spacing: 0.02em;
}

.pf-img-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.pf-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 520ms var(--ease);
}

.pf-featured:hover .pf-img-wrap img {
  transform: scale(1.03);
}

.pf-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 14px;
}

.pf-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pf-pill-live {
  background: rgba(248, 155, 72, 0.16);
  border: 1px solid rgba(248, 155, 72, 0.42);
  color: var(--brand-bright);
}

.pf-sector {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 600;
}

.pf-featured-body h3 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  color: #ffffff;
}

.pf-featured-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.62;
}

.pf-specs {
  list-style: none;
  margin: 20px 0 24px;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.pf-specs li {
  position: relative;
  padding-left: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.pf-specs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.56em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--brand);
}

.pf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pf-featured .btn-outline {
  border-color: rgba(255, 255, 255, 0.26);
  color: #ffffff;
}

.pf-featured .btn-outline:hover {
  background: #ffffff;
  color: var(--obsidian);
  border-color: #ffffff;
}

.pf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 780px) {
  .pf-grid {
    grid-template-columns: 1fr;
  }
}

.pf-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: var(--hair);
  border-radius: 22px;
  overflow: hidden;
  transition: border-color 240ms ease, box-shadow 240ms ease;
}

.pf-card:hover {
  border-color: rgba(238, 131, 36, 0.45);
  box-shadow: var(--shadow);
}

.pf-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--obsidian);
}

.pf-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 520ms var(--ease);
}

.pf-card:hover .pf-card-media img {
  transform: scale(1.04);
}

.pf-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(20, 17, 13, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pf-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pf-card-cat {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-deep);
  margin-bottom: 6px;
}

.pf-card-body h3 {
  margin: 0 0 8px;
  font-size: 1.38rem;
  color: var(--ink);
}

.pf-card-body p {
  margin: 0 0 18px;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--ink-soft);
  flex: 1;
}

.pf-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #ffffff;
  border: var(--hair-strong);
  color: var(--obsidian);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.pf-card-link:hover {
  background: var(--obsidian);
  border-color: var(--obsidian);
  color: var(--brand-bright);
}

.pf-card-link:focus-visible {
  outline: 2.5px solid var(--brand);
  outline-offset: 2px;
}

/* ==========================================================================
   CONTACT FORM — SELECT & WHATSAPP SUBMIT
   ========================================================================== */
.contact-form select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font: inherit;
  font-size: 0.96rem;
  outline: none;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.contact-form select option {
  background: var(--obsidian);
  color: #ffffff;
}

.contact-form select:focus-visible {
  border-color: var(--brand-bright);
  background: rgba(255, 255, 255, 0.12);
}

.btn-wa-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* ==========================================================================
   FLOATING WHATSAPP ACTION BUTTON (Icona circolare)
   ========================================================================== */
.fab-stack {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 950;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.wa-fab {
  width: 52px;
  height: 52px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand);
  color: var(--obsidian);
  text-decoration: none;
  border: 1px solid rgba(20, 17, 13, 0.14);
  box-shadow: 0 14px 32px -12px rgba(238, 131, 36, 0.58);
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.wa-fab:hover {
  transform: translateY(-2px);
  background: var(--brand-bright);
  box-shadow: 0 18px 36px -12px rgba(238, 131, 36, 0.72);
}

.wa-fab:focus-visible {
  outline: 2.5px solid var(--obsidian);
  outline-offset: 2px;
}

/* ==========================================================================
   MOBILE OPTIMIZATION — Touch Targets >= 44px, Zero Overflow, iOS Safe Zoom
   ========================================================================== */
html,
body {
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}

.btn,
.morph-btn,
.pf-card-link,
.drawer-link,
.faq-item summary {
  min-height: 44px;
}

@media (max-width: 760px) {
  /* Previene auto-zoom iOS Safari su focus di input/select/textarea */
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 16px;
    min-height: 48px;
  }

  .hero {
    padding-top: 96px;
    padding-bottom: 48px;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 8.6vw, 2.7rem);
    line-height: 1.06;
  }

  .btn-row {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .btn-row .btn {
    width: 100%;
    justify-content: center;
  }

  .sec {
    padding-block: clamp(54px, 11vw, 76px);
  }

  .svc-list .srv-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "num"
      "head"
      "body"
      "list";
    gap: 8px;
    padding: 26px 0;
  }

  .svc-list .srv-card:hover {
    padding-left: 0;
  }

  /* Effetto Specchio + Scultura 3D compatta e centrata su telefono */
  .mirror-grid {
    gap: 28px;
  }

  .mirror-point {
    padding: 16px;
    gap: 14px;
  }

  .builder-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  .morph-btn {
    padding: 10px 8px;
    font-size: 0.78rem;
  }

  .builder-canvas-wrap {
    max-width: min(310px, 84vw);
  }

  /* Portfolio Bento su telefono */
  .pf-featured {
    padding: 18px;
    border-radius: 20px;
    gap: 20px;
  }

  .pf-featured-body h3 {
    font-size: 1.55rem;
  }

  .pf-actions {
    flex-direction: column;
  }

  .pf-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .pf-card-body {
    padding: 18px;
  }

  /* Contact card compatta su telefono */
  .contact-card {
    padding: 24px 18px;
    gap: 28px;
  }

  /* Dock mobile pulito in basso: WhatsApp + Chiama affiancati senza coprire testi */
  .fab-stack {
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    flex-direction: row;
    justify-content: flex-end;
    gap: 8px;
  }

  .wa-fab,
  .fab-stack .call-fab {
    min-height: 44px;
    padding: 10px 15px;
    font-size: 0.84rem;
  }

  /* Spazio extra in fondo al footer così il dock fisso non copre i dati legali */
  .site-footer {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }
}

/* ==========================================================================
   PREZZIARIO — OFFERTA ACQUISTO DEFINITIVO & SEZIONI COMPATTE
   ========================================================================== */
.sec-offer-top {
  padding-top: 16px;
  padding-bottom: 44px;
}

.offer-top-card {
  max-width: 960px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(20px, 3.2vw, 36px);
  align-items: center;
  background: var(--obsidian);
  color: #ffffff;
  border: 1px solid rgba(248, 155, 72, 0.34);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 24px 60px -28px rgba(20, 17, 13, 0.48);
}

@media (max-width: 920px) {
  .offer-top-card {
    grid-template-columns: 1fr;
  }
}

.offer-top-left h2 {
  margin: 10px 0 8px;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  color: #ffffff;
}

.offer-top-left > p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 54ch;
  line-height: 1.55;
}

.offer-list {
  margin-top: 16px;
  font-size: 0.9rem;
}

.offer-price-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: clamp(18px, 2.5vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.offer-tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(248, 155, 72, 0.18);
  border: 1px solid rgba(248, 155, 72, 0.42);
  color: var(--brand-bright);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.offer-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.offer-price strong {
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.offer-price span {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-bright);
}

.offer-sub {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

.offer-note {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.6);
}

.offer-alt-link {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.offer-alt-link:hover {
  color: var(--brand-bright);
}

/* Navigazione rapida prezziario */
.page-hero-pricing {
  padding-top: clamp(98px, 11vw, 126px);
  padding-bottom: 24px;
}

.page-hero-pricing h1 {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  line-height: 1.08;
}

.page-hero-pricing .sottotitolo {
  font-size: 0.96rem;
  max-width: 56ch;
}

.pricing-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.pj-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 13px;
  border-radius: 999px;
  border: var(--hair-strong);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.pj-pill:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
}

.pj-pill.is-highlight {
  background: var(--obsidian);
  border-color: var(--obsidian);
  color: #ffffff;
}

.pj-pill.is-highlight:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--obsidian);
}

/* Griglia abbonamenti compatta */
.pricing-clean {
  max-width: 980px;
  margin-inline: auto;
  gap: 18px;
}

.pricing-clean .price-card {
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  border-radius: 18px;
}

.pricing-clean .price-card h3 {
  font-size: 1.25rem;
}

.pricing-clean .price-desc {
  font-size: 0.86rem;
}

.pricing-clean .price-val strong {
  font-size: clamp(1.85rem, 3vw, 2.3rem);
}

.pricing-clean .check-list {
  flex: 1;
  font-size: 0.86rem;
}

.pricing-clean .price-sub-meta {
  font-size: 0.76rem;
  margin-bottom: 14px;
}

/* Servizi extra — Rate Card editoriale compatta */
.extra-layout {
  max-width: 960px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}

@media (max-width: 900px) {
  .extra-layout {
    grid-template-columns: 1fr;
  }
}

.extra-intro .btn {
  margin-top: 16px;
}

.rate-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--hair-strong);
}

.rate-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: var(--hair);
  transition: background-color 180ms ease, padding-left 180ms ease;
}

.rate-row:hover {
  background: var(--paper);
  padding-left: 10px;
}

.rate-row strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 2px;
}

.rate-row span {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.rate-row b {
  flex-shrink: 0;
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--obsidian);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 560px) {
  .rate-row {
    flex-direction: column;
    gap: 4px;
  }
}

/* ==========================================================================
   PREZZIARIO HUB — 4 Card Compatte verso le 4 Pagine Separate
   ========================================================================== */
.pricing-hub-grid {
  max-width: 920px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 780px) {
  .pricing-hub-grid {
    grid-template-columns: 1fr;
  }
}

.ph-card {
  display: flex;
  flex-direction: column;
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--paper);
  border: var(--hair-strong);
  color: var(--ink);
  text-decoration: none;
  transition: transform 220ms var(--ease), border-color 220ms ease, box-shadow 220ms ease;
}

.ph-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.ph-card-featured {
  background: var(--obsidian);
  border-color: rgba(248, 155, 72, 0.42);
  color: #ffffff;
}

.ph-card-featured:hover {
  border-color: var(--brand-bright);
  box-shadow: 0 22px 50px -24px rgba(20, 17, 13, 0.52);
}

.ph-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.ph-num {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.ph-badge {
  padding: 3px 9px;
  border-radius: 999px;
  background: #ffffff;
  border: var(--hair);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.ph-card h2 {
  margin: 0 0 6px;
  font-size: clamp(1.18rem, 1.9vw, 1.38rem);
}

.ph-card-featured h2 {
  color: #ffffff;
}

.ph-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 10px;
}

.ph-price strong {
  font-size: clamp(1.55rem, 2.6vw, 1.95rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.ph-price span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.ph-card-featured .ph-price span {
  color: var(--brand-bright);
}

.ph-card p {
  margin: 0 0 14px;
  font-size: 0.86rem;
  line-height: 1.5;
  flex: 1;
}

.ph-card-featured p {
  color: rgba(255, 255, 255, 0.76);
}

.ph-cta {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--brand-deep);
}

.ph-card-featured .ph-cta {
  color: var(--brand-bright);
}

/* ==========================================================================
   COOKIE CONSENT BANNER (Garante Privacy IT 10/06/2021 — Pari Visibilità)
   ========================================================================== */
.cookie-banner {
  max-width: 960px;
}

.cookie-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-btn-equal {
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.cookie-btn-equal:focus-visible,
.cookie-x:focus-visible,
.cookie-pref-row input:focus-visible {
  outline: 2px solid var(--brand-deep);
  outline-offset: 2px;
}

.cookie-btn-accept {
  background: var(--obsidian);
  color: #ffffff;
  border: 1.5px solid var(--obsidian);
}

.cookie-btn-accept:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
}

.cookie-btn-decline {
  background: #ffffff;
  color: var(--obsidian);
  border: 1.5px solid var(--obsidian);
}

.cookie-btn-decline:hover {
  background: var(--soft);
}

.cookie-btn-custom {
  background: var(--soft);
  color: var(--obsidian);
  border: 1.5px solid rgba(20, 17, 13, 0.22);
}

.cookie-btn-custom:hover {
  border-color: var(--obsidian);
}

.cookie-prefs {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e7e2d3;
  display: grid;
  gap: 10px;
}

.cookie-prefs[hidden] {
  display: none;
}

.cookie-pref-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--soft);
  border: 1px solid rgba(20, 17, 13, 0.08);
}

.cookie-pref-row label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--obsidian);
  cursor: pointer;
}

.cookie-pref-row small {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 2px;
  line-height: 1.45;
}

.cookie-pref-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--brand-deep);
  cursor: pointer;
}

.cookie-pref-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.cookie-pref-note {
  font-size: 0.76rem;
  color: var(--ink-soft);
}

.legal-table-wrap {
  margin-top: 12px;
  overflow-x: auto;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid #e7e2d3;
  vertical-align: top;
}

.legal-table th {
  font-weight: 700;
  color: var(--obsidian);
  background: var(--soft);
}

@media (max-width: 640px) {
  .cookie-actions {
    width: 100%;
  }
  .cookie-btn-equal {
    flex: 1 1 auto;
  }
}

/* ==========================================================================
   STRICT CSP HELPERS (Zero inline style="..." attributes)
   ========================================================================== */
.drawer-nav .drawer-link:nth-child(1) { --i: 0; }
.drawer-nav .drawer-link:nth-child(2) { --i: 1; }
.drawer-nav .drawer-link:nth-child(3) { --i: 2; }
.drawer-nav .drawer-link:nth-child(4) { --i: 3; }
.drawer-nav .drawer-link:nth-child(5) { --i: 4; }
.drawer-nav .drawer-link:nth-child(6) { --i: 5; }
.sp-progress .sp-bar-80 { width: 80%; }

/* Mobile: mostra il box Offerta 623€ subito sotto la Hero (#home) senza duplicare HTML */
@media (max-width: 760px) {
  main:has(> .sec-offer-teaser) {
    display: flex;
    flex-direction: column;
  }

  main:has(> .sec-offer-teaser) > * {
    order: 10;
  }

  main:has(> .sec-offer-teaser) > #home {
    order: 1;
  }

  main:has(> .sec-offer-teaser) > .sec-offer-teaser {
    order: 2;
    padding-block: 36px;
  }

  main:has(> .sec-offer-teaser) > .ribbon-wrap {
    order: 3;
  }
}
