/* =====================================================
   STL2Image · sito pubblico
   Stesso linguaggio di cipriani3design.com: bianco, nero,
   Playfair Display per i titoli, Inter per il testo,
   bottoni squadrati, bordi sottili.
   ===================================================== */

:root {
  --bg: #FFFFFF;
  --bg-2: #FAFAFA;
  --bg-alt: #F7F6F4;
  --ink: #111111;
  --ink-2: #444444;
  --muted: #666666;
  --light: #999999;
  --line: #EBEBEB;
  --line-2: #DDDDDD;
  --text-2: var(--muted);    /* usata da landing.js per il nome utente */
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
::selection { background: var(--ink); color: #fff; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.wrap-narrow { max-width: 860px; }

/* ---------- Testi piccoli in maiuscolo spaziato ---------- */
.kicker, .eyebrow, .chip, .vp-bar, .vp-dim, .g-toggle, .g-cap span, .step-n, .price h3, .price-per, .price-tag, .ruler span, .modal-free-note, .credit-badge-landing, .cta p {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .14em; font-weight: 500;
}

/* ---------- Bottoni ---------- */
.btn-primary, .btn-primary-sm, .btn-line, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  border: 1px solid var(--ink); border-radius: 999px; line-height: 1; white-space: nowrap;
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em;
  transition: background .25s, color .25s, border-color .25s;
}
.btn-primary { background: var(--ink); color: #fff; padding: 17px 30px; }
.btn-primary:hover { background: #333; border-color: #333; }
.btn-primary i { font-style: normal; transition: transform .3s var(--ease); }
.btn-primary:hover i { transform: translateX(4px); }
.btn-primary-sm { background: var(--ink); color: #fff; padding: 10px 18px; font-size: 14px; }
.btn-primary-sm:hover { background: #333; }
.btn-line { background: rgba(17,17,17,.05); color: var(--ink); border-color: transparent; padding: 17px 30px; }
.btn-line:hover { background: rgba(17,17,17,.1); }
.btn-ghost { border-color: transparent; padding: 10px 14px; font-size: 14px; color: var(--ink-2); }
.btn-ghost:hover { background: rgba(17,17,17,.05); }
.btn-ghost:hover { color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: transparent; color: #fff; }

/* ---------- Barra di annuncio ---------- */
.announce { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 11px 16px; background: var(--bg-alt); color: var(--ink-2); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.announce-dot { display: none; }
.announce-arrow { transition: transform .3s var(--ease); }
.announce:hover { color: var(--ink); }
.announce:hover .announce-arrow { transform: translateX(4px); }

/* ---------- Navigazione ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 40px; height: 80px; }
.logo { font-family: var(--sans); font-weight: 600; font-size: 15px; letter-spacing: .28em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.logo span { font-weight: 300; color: var(--light); }
.nav-links { display: flex; gap: 32px; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.nav-links a { padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .25s; }
.nav-links a:hover { border-bottom-color: var(--ink); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 12px; }
.nav-actions > span { padding: 0 8px; letter-spacing: .04em; }
.credit-badge-landing { font-size: 10.5px; padding: 7px 10px !important; border: 1px solid var(--line-2); color: var(--ink-2); }
.nav-mobile-toggle { display: none; width: 44px; height: 44px; margin-left: 4px; flex-direction: column; justify-content: center; gap: 7px; align-items: center; }
.nav-mobile-toggle span { width: 22px; height: 1px; background: var(--ink); }
.nav-mobile-menu { position: fixed; inset: 0; z-index: 90; background: #fff; display: none; flex-direction: column; gap: 4px; padding: 96px 32px 32px; }
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a, .nav-mobile-menu > button:not(.btn-primary):not(.nav-mobile-close) { font-family: var(--serif); font-size: 32px; text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); }
.nav-mobile-menu .btn-primary { margin-top: 24px; }
.nav-mobile-close { position: absolute; top: 20px; right: 22px; font-size: 32px; font-weight: 300; line-height: 1; width: 44px; height: 44px; }

/* Selettore lingua (generato da lang.js) */
.lang-selector { position: relative; }
.lang-trigger { display: inline-flex; align-items: center; gap: 6px; padding: 10px; font-size: 12px; font-weight: 500; letter-spacing: .08em; color: var(--ink-2); }
.lang-trigger:hover { color: var(--ink); }
.lang-flag { font-size: 14px; line-height: 1; }
.lang-chevron { opacity: .5; }
.lang-dropdown { position: absolute; top: calc(100% + 6px); right: 0; min-width: 120px; padding: 6px; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .25); display: none; z-index: 60; }
.lang-dropdown.open { display: block; }
.lang-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; font-size: 12px; letter-spacing: .06em; text-align: left; }
.lang-btn:hover { background: var(--bg-alt); }
.lang-btn.active { background: var(--ink); color: #fff; }

/* ---------- Titoli ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.08; }
h1 { font-size: clamp(44px, 5.6vw, 80px); }
h2 { font-size: clamp(34px, 3.8vw, 52px); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); margin-bottom: 30px; }
.eyebrow span:nth-child(-n+3) { color: var(--ink); }
.eyebrow span:nth-child(-n+2)::after { content: '·'; margin-left: 10px; color: var(--light); }
.eyebrow i { font-style: normal; color: var(--light); }
.hero-sub { margin-top: 28px; max-width: 30em; font-size: 17px; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-note { margin-top: 20px; font-size: 13px; color: var(--light); }

/* Palco: modello e foto affiancati */
.stage { position: relative; aspect-ratio: 1 / 1.06; }
.stage-photo { position: absolute; top: 0; right: 0; width: 78%; aspect-ratio: 4 / 5; background: var(--bg-alt); }
.stage-photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity .7s var(--ease); }
.stage.swapping .stage-photo img, .stage.swapping .vp-canvas img { opacity: 0; }
.chip { position: absolute; display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; font-size: 10px; white-space: nowrap; }
.chip b { font-weight: 600; }
.chip-paper { right: 16px; bottom: 16px; background: rgba(255, 255, 255, .94); color: var(--ink); }
.chip-paper b::after { content: '·'; margin-left: 10px; color: var(--light); font-weight: 400; }
.stage-viewport { position: absolute; left: 0; bottom: 4%; width: 46%; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .28); }
.vp-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 9.5px; color: var(--muted); }
.vp-bar i { display: none; }
.vp-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-bar::before { content: '3D'; padding: 3px 6px; border: 1px solid var(--line-2); color: var(--ink); font-size: 9px; }
.vp-canvas { position: relative; aspect-ratio: 1; background: radial-gradient(70% 60% at 50% 45%, #FFFFFF 0%, var(--bg-alt) 100%); }
.vp-canvas img { width: 100%; height: 100%; object-fit: contain; padding: 9%; transition: opacity .7s var(--ease); }
.vp-dim { position: absolute; left: 14px; bottom: 12px; font-size: 9.5px; color: var(--muted); letter-spacing: .1em; }
.stage-dots { position: absolute; right: 0; bottom: -8px; display: flex; gap: 8px; }
.stage-dots button { width: 28px; height: 1px; background: var(--line-2); transition: background .3s, width .4s var(--ease); position: relative; }
.stage-dots button::before { content: ''; position: absolute; inset: -10px 0; }
.stage-dots button[aria-selected='true'] { width: 48px; background: var(--ink); }

.strip { margin-top: 88px; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: center; }

/* ---------- Sezioni ---------- */
.section { padding: 120px 0; }
.section-paper2 { background: var(--bg-alt); }
.section-ink { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.kicker { font-size: 11px; color: var(--muted); margin-bottom: 20px; }
.section-sub { margin: 22px auto 0; font-size: 16px; color: var(--muted); max-width: 36em; }

/* ---------- Galleria ---------- */
.gallery { columns: 3; column-gap: 28px; }
.g-card { break-inside: avoid; margin: 0 0 36px; }
.g-media { position: relative; display: block; width: 100%; overflow: hidden; background: var(--bg-alt); cursor: pointer; }
.g-media img { width: 100%; height: 100%; object-fit: cover; }
.g-media .g-stl { position: absolute; inset: 0; object-fit: contain; padding: 10%; opacity: 0; transition: opacity .5s var(--ease); background: radial-gradient(70% 60% at 50% 45%, #FFFFFF 0%, var(--bg-alt) 100%); }
.g-media .g-photo { transition: opacity .5s var(--ease), transform 1.4s var(--ease); }
.g-card.show-stl .g-stl { opacity: 1; }
.g-card.show-stl .g-photo { opacity: 0; }
@media (hover: hover) {
  .g-media:hover .g-stl { opacity: 1; }
  .g-media:hover .g-photo { opacity: 0; }
}
.g-toggle { position: absolute; top: 14px; right: 14px; z-index: 2; display: inline-flex; background: rgba(255, 255, 255, .94); font-size: 9.5px; color: var(--muted); pointer-events: none; }
.g-toggle span { padding: 6px 10px; transition: background .3s, color .3s; }
.g-toggle span:last-child { background: var(--ink); color: #fff; }
.g-card.show-stl .g-toggle span:first-child { background: var(--ink); color: #fff; }
.g-card.show-stl .g-toggle span:last-child { background: transparent; color: var(--muted); }
@media (hover: hover) {
  .g-media:hover .g-toggle span:first-child { background: var(--ink); color: #fff; }
  .g-media:hover .g-toggle span:last-child { background: transparent; color: var(--muted); }
}
.g-cap { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 0 0; }
.g-cap strong { font-family: var(--serif); font-size: 21px; font-weight: 400; }
.g-cap span { font-size: 10px; color: var(--light); text-align: right; line-height: 1.7; }

/* ---------- Come funziona ---------- */
.how-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 64px; align-items: center; }
.how-video { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); aspect-ratio: 16 / 9; }
.how-video video { width: 100%; height: 100%; object-fit: cover; }
.video-toggle { position: absolute; right: 16px; bottom: 16px; width: 40px; height: 40px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); display: grid; place-items: center; }
.video-toggle i { width: 9px; height: 11px; border-left: 2px solid var(--ink); border-right: 2px solid var(--ink); }
.video-toggle.paused i { width: 0; height: 0; border: 0; border-left: 10px solid var(--ink); border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.steps { list-style: none; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 4px; padding: 24px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-n { font-size: 11px; color: var(--light); padding-top: 8px; }
.steps h3 { font-size: 24px; line-height: 1.25; }
.steps p { margin-top: 8px; font-size: 14.5px; color: var(--muted); }

/* ---------- Perché funziona ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.why-card { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }
.why-wide { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
.why-text { padding: 44px 44px 38px; }
.why-wide .why-text { flex: 0 0 40%; align-self: center; }
.why-card h3 { font-size: 30px; }
.why-card p { margin-top: 14px; font-size: 15px; color: var(--muted); }
.why-visual { flex: 1; min-height: 220px; position: relative; }
.why-visual.poses { background: var(--bg-alt); aspect-ratio: 3 / 2; flex: 0 1 60%; min-height: 0; align-self: center; overflow: hidden; }
.why-visual.poses img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.02); }
.why-visual.poses::after { content: ''; position: absolute; right: 0; bottom: 0; width: 33.34%; height: 50%; border: 2px solid var(--ink); box-shadow: 0 0 0 9999px rgba(255, 255, 255, .45); }
.why-visual.views { background: #F2F2F2; display: flex; align-items: center; min-height: 190px; border-top: 1px solid var(--line); }
.why-visual.views img { width: 100%; filter: grayscale(1); }
.why-visual.ruler { margin: 0 44px 44px; min-height: 150px; background:
  repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 10px) bottom / 100% 8px no-repeat,
  repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 50px) bottom / 100% 16px no-repeat, var(--bg-alt); }
.ruler span { position: absolute; bottom: 30px; left: 18px; height: 32px; display: flex; align-items: center; padding: 0 12px; font-size: 10px; color: #fff; background: var(--ink); white-space: nowrap; }
.ruler .ruler-a { width: 15.4%; min-width: 92px; bottom: 74px; background: #fff; color: var(--ink); border: 1px solid var(--ink); }
.ruler .ruler-b { width: calc(100% - 36px); }
.ruler b { font-weight: 600; margin-right: 4px; }
.why-colors .why-visual.colors { background: var(--bg-alt); min-height: 320px; }
.why-visual.colors img:first-child { position: absolute; left: 4%; top: 50%; width: 44%; transform: translateY(-50%); }
.why-visual.colors img:last-child { position: absolute; right: 6%; top: 50%; width: 50%; transform: translateY(-50%); box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .4); }
.swatches { display: flex; gap: 10px; margin-top: 26px; }
.swatches i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); border: 1px solid var(--line-2); }

/* ---------- Prezzi ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: #fff; }
.price { position: relative; padding: 52px 40px 40px; display: flex; flex-direction: column; text-align: center; }
.price + .price { border-left: 1px solid var(--line); }
.price h3 { font-size: 11px; color: var(--muted); }
.price-credits { margin-top: 26px; font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.price-credits b { display: block; font-family: var(--serif); font-weight: 400; font-size: 56px; line-height: 1.05; color: var(--ink); }
.price-amount { margin-top: 22px; font-size: 24px; font-weight: 500; }
.price-amount s { font-size: 15px; font-weight: 400; color: var(--light); margin-right: 10px; }
.price-per { margin-top: 8px; font-size: 10px; color: var(--light); margin-bottom: 36px; }
.price .btn-line, .price .btn-primary { margin-top: auto; width: 100%; }
.price-pop { background: var(--bg-2); }
.price-tag { position: absolute; top: -1px; left: 50%; transform: translateX(-50%); padding: 7px 14px; background: var(--ink); color: #fff; font-size: 9.5px; white-space: nowrap; }
.price-notes { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; margin-top: 36px; font-size: 13.5px; color: var(--muted); }
.price-notes li { display: flex; align-items: center; gap: 10px; }
.price-notes li::before { content: ''; width: 12px; height: 7px; border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(-45deg) translateY(-2px); flex: none; }
.mw-note { margin: 32px auto 0; max-width: 46em; text-align: center; font-size: 13px; color: var(--light); }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; font-family: var(--serif); font-size: 22px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--sans); font-weight: 300; font-size: 22px; color: var(--muted); transition: transform .3s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 28px 0; color: var(--muted); max-width: 46em; font-size: 15px; }

/* ---------- Chiusura ---------- */
.cta { background: var(--ink); color: #fff; padding: 130px 0; }
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 36px; text-align: center; }
.cta h2 { font-size: clamp(40px, 5.4vw, 76px); max-width: 13em; }
.cta p { font-size: 10.5px; color: #999; margin-top: -14px; }
.footer { background: #fff; color: var(--muted); border-top: 1px solid var(--line); padding: 56px 0 60px; font-size: 13px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 26px 40px; align-items: start; }
.footer-inner > div p { margin-top: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.footer-links a:hover { color: var(--muted); }
.footer-copy { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid var(--line); font-size: 12px; color: var(--light); }
.footer-copy a { color: var(--muted); }
.footer-copy a:hover { color: var(--ink); }

/* ---------- Finestre di accesso ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(17, 17, 17, .4); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal-overlay.active { display: flex; }
.modal { position: relative; width: 100%; max-width: 440px; padding: 48px 40px 38px; background: #fff; text-align: center; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .35); animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } }
.modal h2 { font-size: 34px; }
.modal-sub { margin-top: 12px; color: var(--muted); font-size: 15px; }
.modal-close { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; font-size: 26px; font-weight: 300; line-height: 1; color: var(--light); }
.modal-close:hover { color: var(--ink); }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; margin-top: 30px; padding: 16px 18px; border: 1px solid var(--line-2); background: #fff; font-size: 15px; font-weight: 500; transition: border-color .25s; }
.btn-google:hover { border-color: var(--ink); }
.modal-free-note { margin-top: 20px; font-size: 10px; color: var(--muted); text-transform: none !important; letter-spacing: .02em !important; font-size: 13px; }
.form-error { color: #B3261E; font-size: 14px; }

/* ---------- Comparsa allo scorrimento ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Adattamenti ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .stage { max-width: 620px; width: 100%; margin: 0 auto; }
  .how-grid { grid-template-columns: 1fr; gap: 44px; }
  .gallery { columns: 2; }
  .why-wide { flex-direction: column; }
  .why-wide .why-text { flex: none; align-self: stretch; }
  .why-visual.poses { flex: none; align-self: stretch; }
  .nav-links { gap: 22px; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .nav-links, .nav-actions .btn-ghost, .nav-actions .btn-primary-sm, .nav-actions > a, .nav-actions > span, .nav-actions > button { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-inner { height: 64px; gap: 10px; }
  .announce { font-size: 10px; padding: 10px 12px; }
  .hero { padding-top: 44px; }
  .hero-cta .btn-primary, .hero-cta .btn-line { flex: 1 1 100%; }
  .stage-viewport { width: 52%; }
  .chip-paper { top: 12px; bottom: auto; right: 12px; }
  .strip { margin-top: 64px; font-size: 10px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 44px; }
  .gallery { columns: 1; }
  .why-grid { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .price + .price { border-left: 0; border-top: 1px solid var(--line); }
  .why-text { padding: 32px 26px 28px; }
  .why-visual.ruler { margin: 0 26px 26px; }
  .faq summary { font-size: 19px; padding: 22px 0; }
  .faq details p { padding-right: 0; }
  .cta { padding: 90px 0; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Forme a goccia (stile Apple) ---------- */
.lang-trigger, .lang-btn, .credit-badge-landing, .chip, .g-toggle, .g-toggle span, .price-tag, .btn-google, .video-toggle, .ruler span, .stage-dots button { border-radius: 999px; }
.lang-dropdown { border-radius: 14px; }
.lang-btn { border-radius: 9px; }
.stage-photo, .stage-photo img { border-radius: 22px; }
.stage-viewport { border-radius: 18px; overflow: hidden; }
.g-media { border-radius: 18px; }
.why-card, .how-video, .pricing { border-radius: 22px; overflow: hidden; }
.why-visual.ruler { border-radius: 14px; }
.why-visual.colors img:last-child { border-radius: 12px; }
.modal { border-radius: 26px; }
.price-tag { top: 14px; }
.nav-mobile-menu .btn-primary { width: 100%; }

/* le sezioni non finiscono sotto la barra fissa */
section[id] { scroll-margin-top: 80px; }
@media (max-width: 760px) {
  section[id] { scroll-margin-top: 64px; }
  .footer-links a { padding: 10px 0; }
  .footer-links { gap: 0 22px; }
  .footer-copy a { display: inline-block; padding: 8px 0; }
  .logo { padding: 10px 0; }
}

/* Menu: le voci non vanno mai a capo; quando non c'è spazio si passa al menu a scomparsa */
.nav-links a, .nav-actions > * { white-space: nowrap; }
.nav-links { flex-shrink: 0; }
@media (max-width: 1100px) {
  .nav-links { gap: 22px; margin-left: 0; }
  .nav-inner { gap: 28px; }
}
@media (max-width: 1080px) {
  .nav-links, .nav-actions .btn-ghost, .nav-actions .btn-primary-sm, .nav-actions > a, .nav-actions > span, .nav-actions > button { display: none; }
  .nav-mobile-toggle { display: flex; }
}

/* utente connesso: le voci in più restano nel menu a scomparsa sotto i 1200 px */
@media (max-width: 1200px) { .nav-actions > a.btn-ghost, .nav-actions > button.btn-ghost:not([onclick]) { display: none; } }

/* footer: link alle pagine per piattaforma */
.footer-platforms { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 13px; }
.footer-platforms span { color: var(--light); margin-right: 6px; }
.footer-platforms a { padding: 6px 12px; border-radius: 999px; background: rgba(17,17,17,.05); color: var(--ink-2); }
.footer-platforms a:hover { background: rgba(17,17,17,.1); color: var(--ink); }

/* ---------- Galleria della home: 6 esempi ordinati ---------- */
.gallery-home { columns: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.gallery-home .g-card { margin: 0; }
.gallery-home .g-media { aspect-ratio: 4 / 5 !important; }
.gallery-more { display: flex; justify-content: center; margin-top: 44px; }
@media (max-width: 1080px) { .gallery-home { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* smartphone: una fila da scorrere col dito, così la pagina resta corta */
@media (max-width: 760px) {
  .gallery-home { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px 6px; scrollbar-width: none; }
  .gallery-home::-webkit-scrollbar { display: none; }
  .gallery-home .g-card { flex: 0 0 78%; scroll-snap-align: center; }
  .gallery-home .g-cap span { display: none; }
  .gallery-more { margin-top: 28px; }
  .gallery-more .btn-line { width: 100%; }
  .gallery-all { columns: 2; column-gap: 12px; }
  .gallery-all .g-card { margin-bottom: 18px; }
  .gallery-all .g-cap { flex-direction: column; gap: 2px; padding-top: 10px; }
  .gallery-all .g-cap strong { font-size: 16px; }
  .gallery-all .g-cap span { text-align: left; font-size: 9px; }
  .gallery-all .g-toggle { top: 8px; right: 8px; font-size: 8px; }
  .gallery-all .g-toggle span { padding: 4px 7px; }
}
