/* apps/app-pixpass/assets/css/main.css */
:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  /* Era #86868b (3.3:1) — ora #595959 (7.0:1) per WCAG AA su sfondo chiaro */
  --text-muted: #595959;
  --primary: #0071e3;
  --primary-hover: #0077ed;
  --primary-soft: #f0f7ff;
  /* Era #d2d2d7 — ora #9ca0a8 per maggior contrasto sui bordi form */
  --border: #b0b3b8;
  --success: #1f8a2e;
  --danger: #c0392b;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
}
/* 30/11: pagine pubbliche nel rosso del logo Fototessera.eu (5,9:1 col bianco); il pannello admin resta blu */
body:not(.admin-body) {
  --primary: #c41212;
  --primary-hover: #9e0e0e;
  --primary-soft: #fff3f3;
  accent-color: #c41212;   /* pallini e caselle di spunta nel rosso */
}

* { box-sizing: border-box; }

/* Screen-reader-only utility (per landmark/heading invisibili visivamente) */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

header.site-header {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
header .logo { font-weight: 700; font-size: 22px; }
header .logo img { display: block; height: 42px; width: auto; }
header .logo a { display: inline-block; line-height: 0; }
header nav a { margin-left: 24px; color: var(--text); text-decoration: none; }

.hero { padding: 64px 0 48px; text-align: center; }
.hero h1 { font-size: clamp(32px, 5vw, 48px); margin: 0 0 16px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 19px; color: var(--text-muted); max-width: 640px; margin: 0 auto 32px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 48px 0; }
.steps .step {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.steps .step .num {
  display: inline-block;
  width: 44px; height: 44px; line-height: 44px;
  background: var(--primary); color: white;
  border-radius: 50%;
  font-weight: 700; font-size: 20px;
  margin-bottom: 16px;
}
.steps .step h3 { margin: 0 0 8px; font-size: 18px; }
.steps .step p { margin: 0; color: var(--text-muted); font-size: 15px; }

.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 48px 0; }
.price-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 2px solid var(--border);
  text-align: center;
}
.price-card.featured { border-color: var(--primary); }
.price-card h3 { margin: 0 0 8px; font-size: 18px; }
.price-card .price { font-size: 36px; font-weight: 700; margin: 8px 0; }
.price-card .price small { font-size: 16px; font-weight: 400; color: var(--text-muted); }
.price-card p { margin: 0; color: var(--text-muted); font-size: 14px; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.btn:hover, .btn:focus { background: var(--primary-hover); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: #fafafa; }

.cta-row { text-align: center; margin: 32px 0; }

footer.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 32px 0;
  margin-top: 64px;
  font-size: 14px;
  color: var(--text-muted);
}
footer a { color: var(--text-muted); margin-right: 16px; text-decoration: none; }
footer a:hover { text-decoration: underline; }

.product-picker { display: grid; gap: 12px; margin: 24px 0; }
.product-option {
  display: flex;
  align-items: center;
  background: var(--surface);
  padding: 16px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  cursor: pointer;
}
.product-option input { margin-right: 16px; }
.product-option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.product-option .price { margin-left: auto; font-weight: 700; }

.form-group { margin: 16px 0; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  background: var(--surface);
}
.form-group input:focus { border-color: var(--primary); outline: none; }

.coupon-box { margin: 16px 0 4px; }
.coupon-box input { text-transform: uppercase; letter-spacing: 0.5px; }
.coupon-opt { font-weight: 400; color: var(--text-muted); }
.coupon-hint { display: block; margin-top: 4px; font-size: 13px; opacity: 0.75; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.consent-row {
  background: var(--surface);
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 24px 0;
}
.consent-row label { display: flex; align-items: flex-start; cursor: pointer; }
.consent-row input { margin-right: 12px; margin-top: 4px; }

.error-msg {
  background: #fef2f2;
  border-left: 4px solid var(--danger);
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--danger);
  margin: 16px 0;
}
.error-msg:empty { display: none; }

@media (max-width: 720px) {
  .steps, .prices { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ===================================================================
   CREA — flusso multi-step (pacchetto famiglia)
   =================================================================== */
.config-section { max-width: 720px; margin: 0 auto; }
.config-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 16px;
}
.config-card h2 { margin: 0 0 6px; font-size: 18px; }
.config-card .config-hint {
  margin: 0 0 16px; color: var(--text-muted); font-size: 14px;
}

.family-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.family-option {
  display: flex; align-items: center; gap: 8px;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.family-option input { margin: 0; }
.family-option div { display: flex; flex-direction: column; }
.family-option strong { font-size: 14px; }
.family-option small { color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.family-option:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
}
@media (max-width: 620px) {
  .family-picker { grid-template-columns: repeat(2, 1fr); }
}

.cut-toggle {
  display: flex; gap: 12px; align-items: flex-start;
  cursor: pointer;
}
.cut-toggle input { margin-top: 4px; }
.cut-toggle small { color: var(--text-muted); font-size: 13px; display: block; margin-top: 2px; }

.config-summary {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0 0;
}
.config-summary small { color: var(--text-muted); display: block; font-size: 13px; margin-top: 2px; }
.config-summary__price {
  font-size: 26px; font-weight: 700;
  color: var(--primary);
}

.photo-progress {
  max-width: 760px; margin: 0 auto 20px;
}
.progress-bar {
  height: 6px; background: var(--border);
  border-radius: 3px; overflow: hidden; margin-top: 12px;
}
.progress-fill {
  height: 100%; background: var(--primary);
  transition: width 0.3s;
}
.photo-hint {
  max-width: 760px; margin: 16px auto 0;
  text-align: center; color: var(--text-muted); font-size: 14px;
}
/* Il consiglio del muro liscio: la rimozione dello sfondo sbaglia soprattutto
   quando dietro la testa c'e' un oggetto a contrasto, e a quel punto il
   cliente deve rifare la foto. Meglio dirglielo prima che la scatti. */
.photo-tip {
  max-width: 560px; margin: 14px auto 0;
  padding: 10px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted); font-size: 14px; line-height: 1.5;
  text-align: center;
}
.photo-tip strong { color: var(--text); }
/* Su telefono resta corto e allineato al resto: ogni pixel speso qui spinge
   giu' l'area di caricamento, che deve restare sopra la piega. */
@media (max-width: 520px) {
  .photo-tip {
    max-width: none; margin: 12px 0 0;
    padding: 8px 12px; font-size: 13px; line-height: 1.45;
  }
}

.persons-summary { list-style: none; padding: 0; margin: 0 0 16px; }
.persons-summary li {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.persons-summary li:last-child { border-bottom: none; }
.persons-summary li strong { color: var(--text); }
.persons-summary li span { color: var(--text-muted); }

/* ================================================================
   LANDING PAGE — tema chiaro Fototessera.eu (dal 27/11/2026, scoped a body.landing)
   Colori del logo: rosso #C41212 e giallo #FEB902 su bianco. Niente bagliori,
   sfumature o testi dorati: fondi pieni, un solo colore d'azione (il rosso).
   Il footer (.landing-footer) e' usato da tutte le pagine pubbliche.
   ================================================================ */
body.landing {
  --brand: #c41212;
  --brand-dark: #9e0e0e;
  --brand-yellow: #feb902;
  --brand-yellow-soft: #fff6db;
  --ink: #1d1d1f;
  --ink-2: #4a4a50;
  --soft: #f6f6f7;
  --line: #e4e4e7;
  /* vecchi nomi, usati ancora da qualche regola della pagina */
  --gold: var(--brand);
  --gold-2: var(--brand);
  background: #fff;
  color: var(--ink);
}
body.landing .container { max-width: 1120px; }

body.landing .site-header.landing-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
body.landing .site-header nav a { color: var(--ink); }
body.landing .site-header nav a:hover { color: var(--brand); }
body.landing .site-header nav .gold, body.landing .site-header nav strong { color: var(--brand); }
body.landing .site-header nav a[hreflang] { color: var(--ink-2); text-decoration: none; }

/* ---- HERO ---- */
.landing-hero {
  position: relative;
  padding: 88px 0 96px;
  text-align: center;
  background: #fff;
}
.landing-hero__bg { display: none; }
/* 30/11: foglio 6 foto a sinistra e telefono a destra, centro libero per il testo. Solo da 1280 px:
   sotto, gli oggetti finirebbero sotto il testo (in attesa della versione verticale). Immagine sempre intera. */
@media (min-width: 1280px) {
  .landing-hero { padding: 72px 0; min-height: min(50vw, 820px); display: flex; align-items: center; }
  .landing-hero > .container { width: 100%; }
  .landing-hero__bg {
    display: block;
    position: absolute; inset: 0;
    background: #fff url("/assets/img/hero-fototessera-2000.webp?v=3") center / cover no-repeat;
    background-image: image-set(url("/assets/img/hero-fototessera-2000.webp?v=3") 1x, url("/assets/img/hero-fototessera-4000.webp?v=3") 2x);
  }
  .landing-hero .landing-hero__title { font-size: min(88px, 6vw); }
  .landing-hero .landing-hero__lead { max-width: 520px; text-wrap: balance; }
}
/* 30/11: telefono, versione verticale: testo in alto, foglio e telefono in basso (occupano il 76% della larghezza
   in altezza, solo la parte bassa dell immagine verticale: lo spazio si riserva con il padding sotto). Da 768 a 1279 px la hero resta bianca. */
@media (max-width: 767px) {
  body .landing-hero { padding-bottom: calc(81vw + 8px); }
  .landing-hero__bg {
    display: block;
    position: absolute; inset: 0;
    background: #fff url("/assets/img/hero-fototessera-verticale.webp?v=3") center bottom / 100% auto no-repeat;
    background-image: image-set(url("/assets/img/hero-fototessera-verticale.webp?v=3") 1x, url("/assets/img/hero-fototessera-verticale-2x.webp?v=3") 2x);
  }
}
.landing-hero .container { position: relative; }

.landing-hero__badge {
  display: inline-block;
  background: var(--brand-yellow);
  color: var(--ink);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.landing-hero__title {
  font-size: clamp(44px, 8vw, 92px);
  line-height: 1;
  margin: 0 0 20px;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink);
}
.landing-hero__title .gold { color: var(--brand); }

.landing-hero__lead {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.landing-hero__trust {
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  font-weight: 600;
}

/* ---- Pulsanti ---- */
body.landing .btn-gold {
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  transition: background-color 0.15s, transform 0.15s;
}
body.landing .btn-gold:hover,
body.landing .btn-gold:focus {
  background: var(--brand-dark);
  color: #fff;
  transform: translateY(-1px);
}
body.landing .btn-gold:active { transform: translateY(0) scale(0.98); }
body.landing .btn-outline {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  transition: background-color 0.15s, color 0.15s;
}
body.landing .btn-outline:hover { background: var(--ink); color: #fff; }
body.landing .btn-outline:active { transform: scale(0.98); }
body.landing .btn-lg { padding: 18px 40px; font-size: 18px; }

/* ---- Sezioni ---- */
.landing-section {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}
.landing-section__title {
  text-align: center;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin: 0 0 48px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.landing-section__title::after {
  content: '';
  display: block;
  width: 48px; height: 4px;
  margin: 16px auto 0;
  border-radius: 2px;
  background: var(--brand-yellow);
}

/* ---- Passaggi ---- */
.landing-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.landing-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
}
.landing-step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  background: var(--brand-yellow);
  color: var(--ink);
  border-radius: 50%;
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 18px;
}
.landing-step h3 { margin: 0 0 8px; font-size: 18px; color: var(--ink); font-weight: 700; }
.landing-step p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }

/* ---- Prezzi ---- */
.landing-family-callout {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  justify-content: center;
  background: var(--brand-yellow-soft);
  border: 1px solid #f3dc94;
  border-radius: 12px;
  padding: 10px 20px;
  margin: 0 auto 32px;
  max-width: fit-content;
  color: var(--ink);
  font-size: 15px;
}
.landing-family-callout__badge {
  background: var(--ink);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.landing-prices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: stretch;
}
.landing-price {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 24px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  position: relative;
}
.landing-price h3 {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.landing-price .price {
  font-size: 44px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  margin: 4px 0;
  letter-spacing: -0.02em;
}
.landing-price .price .cur {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
  margin-left: 4px;
  vertical-align: super;
}
.landing-price small {
  color: var(--ink-2);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.landing-price ul { list-style: none; padding: 0; margin: 20px 0 24px; flex-grow: 1; }
.landing-price ul li {
  padding: 8px 0;
  color: var(--ink);
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}
.landing-price ul li::before { content: '✓'; color: var(--brand); font-weight: 800; margin-right: 10px; }
.landing-price ul li:last-child { border-bottom: none; }
.landing-price .btn { width: 100%; white-space: nowrap; padding-left: 8px; padding-right: 8px; font-size: 15px; }
.landing-price ul li a { color: var(--brand); }

.landing-price.featured { border: 2px solid var(--brand); }
.landing-price.featured h3 { color: var(--brand); }
.landing-price__badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ---- Fascia vantaggi ---- */
.landing-features {
  padding: 56px 0;
  background: var(--soft);
  border-top: 1px solid var(--line);
}
.landing-features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.landing-feature {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.landing-feature__icon {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brand-yellow-soft);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.landing-feature__icon svg { width: 22px; height: 22px; }
.landing-feature strong { display: block; color: var(--ink); font-size: 14px; font-weight: 800; letter-spacing: 0.03em; }
.landing-feature span { display: block; color: var(--ink-2); font-size: 13.5px; margin-top: 2px; }

/* ---- Chiusura ---- */
.landing-cta {
  padding: 80px 0;
  text-align: center;
  background: var(--brand-yellow-soft);
  border-top: 1px solid #f3dc94;
}
.landing-cta h2 { font-size: clamp(28px, 4vw, 40px); color: var(--ink); font-weight: 800; margin: 0 0 12px; }
.landing-cta p { color: var(--ink-2); font-size: 17px; margin: 0 0 28px; }
.landing-cta p a { color: var(--brand); }

/* 30/11: foto del foglio 10x15 con 6 fototessere (originale non ricompresso).
   Telefono e tablet: testo sopra e foto sotto. Computer: foto di sfondo a destra,
   alta quanto la fascia, e testo nello spazio libero a sinistra. */
.landing-cta__img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 36px auto 0;
  border-radius: 12px;
}
@media (min-width: 1024px) {
  .landing-cta {
    padding: 0;
    text-align: left;
    background: #f1eded url("/assets/img/cta-foglio-2400.webp?v=1") right center / auto 100% no-repeat;
    border-top: 1px solid var(--line);
    min-height: 480px;
    display: flex;
    align-items: center;
  }
  .landing-cta > .container { width: 100%; }
  .landing-cta__text { max-width: 380px; padding: 64px 0; }
  .landing-cta__img { display: none; }
}
@media (min-width: 1280px) {
  .landing-cta { min-height: 560px; }
  .landing-cta__text { max-width: 440px; }
}

/* ---- Footer chiaro (tutte le pagine pubbliche) ---- */
.site-footer.landing-footer {
  background: var(--soft, #f6f6f7);
  border-top: 1px solid var(--line, #e4e4e7);
  color: #4a4a50;
  padding: 56px 0 28px;
  font-size: 14px;
  line-height: 1.6;
}
body.landing .site-footer.landing-footer { margin-top: 0; }
.landing-footer .container { max-width: 1120px; }
.landing-footer p { margin: 0 0 12px; }
.landing-footer a { color: #1d1d1f; margin-right: 0; text-decoration: none; }
.landing-footer a:hover,
.landing-footer a:focus-visible { color: #c41212; text-decoration: underline; }
.lf-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1fr; gap: 40px; }
.lf-name { color: #1d1d1f; font-weight: 700; font-size: 16px; }
.lf-brand p:not(.lf-name) { max-width: 30ch; }
.lf-title { color: #1d1d1f; font-weight: 700; margin-bottom: 8px !important; }
.lf-title:not(:first-child) { margin-top: 20px !important; }
.lf-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.lf-note { color: #5f5f66; font-size: 13px; }
.lf-nowrap { white-space: nowrap; }
.landing-footer .lf-partner { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.lf-partner img { border-radius: 6px; flex: none; }
.lf-list a, .lf-bottom-links a, .lf-bottom-links .cc-prefs { display: inline-block; padding: 2px 0; }
.lf-bottom {
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  justify-content: space-between; align-items: center;
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid #e4e4e7;
  font-size: 13px; color: #5f5f66;
}
.lf-bottom p { margin: 0 !important; }
.lf-bottom-links { display: flex; gap: 20px; align-items: center; }
.lf-bottom-links .cc-prefs { opacity: 1; color: #1d1d1f; font-size: 13px; text-decoration: none; }
.lf-bottom-links .cc-prefs:hover { color: #c41212; text-decoration: underline; }
@media (max-width: 900px) {
  .lf-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}
@media (max-width: 560px) {
  .site-footer.landing-footer { padding: 40px 0 24px; }
  .lf-grid { grid-template-columns: 1fr; gap: 24px; }
  .lf-bottom { flex-direction: column; align-items: flex-start; }
  .lf-list { gap: 2px; }
  .lf-list a, .lf-bottom-links a, .lf-bottom-links .cc-prefs { padding: 8px 0; }
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .landing-features__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 360px) {
  .landing-features__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .landing-steps, .landing-prices { grid-template-columns: 1fr; }
  .landing-hero { padding: 56px 0 64px; }
}


/* --- Banner consenso cookie (assets/js/consent.js), versione mini --- */
.cc-banner {
  position: fixed; right: 12px; bottom: 12px; z-index: 1000;
  max-width: calc(100% - 24px); box-sizing: border-box;
  display: flex; gap: 10px; align-items: center;
  padding: 8px 8px 8px 14px; border-radius: 10px;
  background: rgba(29, 29, 31, 0.94); color: #f5f5f7; border: 1px solid #3a3a3c;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  font-size: 12px; line-height: 1.35;
}
.cc-banner p { margin: 0; max-width: 230px; }
body.cc-open .site-footer { padding-bottom: 96px !important; }
.cc-banner a { color: #7cc4ff; text-decoration: underline; }
.cc-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.cc-btn {
  min-height: 32px; padding: 0 12px; border-radius: 6px;
  font: inherit; font-weight: 600; cursor: pointer;
  background: #f5f5f7; color: #1d1d1f; border: 1px solid #f5f5f7;
}
.cc-btn:hover { background: #ffffff; }
.cc-btn:focus-visible, .cc-prefs:focus-visible { outline: 2px solid #7cc4ff; outline-offset: 2px; }
.cc-prefs {
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  font: inherit; font-size: 13px; color: inherit; text-decoration: underline; opacity: 0.8;
}
@media (max-width: 420px) {
  .cc-banner { left: 12px; }
  .cc-banner p { max-width: none; flex: 1; }
}
/* Al telefono il banner sta in alto (22/10): in basso copriva il riquadro
   "Carica la foto" di /crea/, cioe' proprio cio' che il cliente deve toccare. */
@media (max-width: 640px) {
  .cc-banner { top: 12px; bottom: auto; }
}
/* Recensioni in home (assets/js/reviews.js): nascoste finche' non ce n'e' una approvata */
.landing-reviews[hidden] { display: none; }
.landing-reviews__avg { text-align: center; margin: -28px 0 28px; font-size: 18px; color: #1d1d1f; }
.landing-reviews__avg .stars { color: #b58300; letter-spacing: 2px; }
.landing-reviews__grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .landing-reviews__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .landing-reviews__grid { grid-template-columns: repeat(3, 1fr); } }
.landing-review {
  display: flex; flex-direction: column; margin: 0; padding: 20px;
  background: #fff; border: 1px solid #e4e4e7; border-radius: 14px;
}
.landing-review .stars { color: #b58300; font-size: 18px; letter-spacing: 2px; }
.landing-review blockquote { margin: 10px 0 0; color: #1d1d1f; line-height: 1.55; white-space: pre-line; }
.landing-review figcaption { margin-top: auto; padding-top: 14px; font-size: 14px; color: #4a4a50; }
.landing-review figcaption strong { color: #1d1d1f; }
.landing-reviews__note { max-width: 760px; margin: 28px auto 0; text-align: center; font-size: 13px; color: #5f5f66; line-height: 1.5; }

/* Anteprima della foto al passo prezzi di /crea/ (22/10) */
.config-photo {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 16px; margin-bottom: 16px;
}
.config-photo[hidden] { display: none; }
.config-photo img {
  width: 72px; height: auto; aspect-ratio: auto; border-radius: 4px;
  border: 1px solid var(--border); background: #fff; flex: 0 0 auto;
}
.config-photo p { margin: 0; font-size: 15px; line-height: 1.4; }
.config-photo span { color: var(--text-muted, #6e6e73); font-size: 14px; }


/* ---- Menu "Fototessere" nell'header: <details> per non usare JavaScript
   (la CSP del sito vieta gli script inline). Funziona da tastiera e al tocco. ---- */
.nav-menu { position: relative; }
.nav-menu > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary::after { content: "▾"; font-size: 11px; opacity: .7; }
.nav-menu > summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.nav-menu__panel {
  position: absolute; top: calc(100% + 12px); left: 0; z-index: 30;
  min-width: 240px; padding: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(15, 15, 25, .14);
  display: flex; flex-direction: column;
}
.nav-menu__panel a {
  padding: 9px 12px; border-radius: 8px; font-size: 15px;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.nav-menu__panel a:hover, .nav-menu__panel a:focus-visible { background: var(--surface); }
/* La landing colora di bianco i link dell'header: dentro il pannello,
   che ha fondo bianco, servono scuri. Selettore piu' specifico di
   `body.landing .site-header nav a`, altrimenti resta bianco su bianco. */
body.landing .site-header nav .nav-menu__panel a { color: #1d1d1f; }
body.landing .site-header nav .nav-menu__panel a:hover { color: #000; }
@media (max-width: 640px) {
  .nav-menu__panel { right: 0; left: auto; min-width: 210px; }
  .nav-menu__panel a { padding: 11px 12px; }
}
/* Su telefono logo + tre voci non entrano in 375px e "Crea" finiva fuori
   dallo schermo: si stringe la spaziatura e si toglie "Home", che e' gia'
   il logo. */
@media (max-width: 560px) {
  .site-header nav { gap: 14px !important; font-size: 15px; }
  .site-header nav > a[href="/"] { display: none; }
  header .logo img { height: 34px; }
}

/* /crea/: spazio riservato allo strumento mentre si carica, altrimenti il fondo
   pagina viene spinto in basso (salto misurato con Lighthouse: 0,28). Altezza
   misurata a 375 e 412 px: 695. */
#tool-container:empty,
pixpass-tool:not(:defined) { display: block; min-height: 695px; }

/* Selettore lingua nell'intestazione (27/11): niente opacita' (contrasto),
   il link sottolineato; sul telefono si nasconde, "English" resta nel footer. */
.lang-switch { font-size: 14px; color: #4a4a50; white-space: nowrap; }
.lang-switch strong { color: #1d1d1f; }
.site-header nav .lang-switch a { color: #1d1d1f; text-decoration: underline; text-underline-offset: 3px; margin-left: 0; }
@media (max-width: 480px) { .lang-switch { display: none; } }
@media (max-width: 360px) {
  header .logo img { height: 26px; }
  .site-header nav { gap: 10px !important; font-size: 14px; }
}
@media (max-width: 480px) and (min-width: 361px) { header .logo img { height: 30px; } }
