/* ==========================================================================
   FMG Web Solutions — foglio di stile
   Tema scuro professionale: superfici piatte, bordi sottili, angoli vivi.
   Colori pieni, nessuna sfumatura, nessun effetto luminoso.
   ========================================================================== */

/* ---------- Font (ospitati sul sito) ------------------------------------ */
@font-face {
    font-family: "Archivo";
    src: url("../fonts/archivo-var.woff2") format("woff2");
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "IBM Plex Mono";
    src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "IBM Plex Mono";
    src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* ---------- Colori e misure -----------------------------------------------
   Fondo #141312 · Superficie #1C1B19 · Superficie 2 #252420
   Linea #34322D · Linea forte #4A4740
   Testo (Carta) #F2EEE6 · Testo secondario #BDB7AA · Testo terziario #8F897D
   Rosso San Marzano #C8331A (pulsanti) · Rosso chiaro #E8573A (testi)     */
:root {
    color-scheme: dark;
    --bg: #141312;
    --bg-deep: #0e0d0c;
    --surface: #1c1b19;
    --surface-2: #252420;
    --line: #34322d;
    --line-2: #4a4740;
    --text: #f2eee6;
    --text-2: #bdb7aa;
    --text-3: #8f897d;
    --red: #c8331a;
    --red-dark: #a8301a;
    --red-text: #e8573a;
    --white: #ffffff;
    --ok: #6fbf73;
    --wa: #25d366;

    --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

    --container: 1200px;
    --gutter: clamp(20px, 4vw, 40px);
    --gap: clamp(16px, 2vw, 24px);
    --pad: clamp(22px, 2.6vw, 32px);
    --header-h: 72px;

    --i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E");
    --i-arrow-ne: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E");
}
@media (max-width: 1000px) {
    :root { --header-h: 64px; }
}

/* ---------- Base --------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 24px);
    background: var(--bg);
}
body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
img,
svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button,
input,
select,
textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--font);
    font-stretch: 104%;
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -0.01em;
    text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
ul[class], ol[class] { list-style: none; }
figure { margin: 0; }
dl, dd { margin: 0; }
table { border-collapse: collapse; }
strong { font-weight: 600; }
[hidden] { display: none !important; }
::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 2px solid var(--red-text); outline-offset: 3px; }
main:focus,
[tabindex="-1"]:focus { outline: none; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* Frecce disegnate in CSS (i font del sito non contengono le frecce) */
.arrow,
.link::after {
    content: "";
    display: inline-block;
    flex: none;
    width: 1em;
    height: 1em;
    background: currentColor;
    -webkit-mask: var(--i-arrow) center / contain no-repeat;
    mask: var(--i-arrow) center / contain no-repeat;
}
.arrow--ne,
.link--ext::after { -webkit-mask-image: var(--i-arrow-ne); mask-image: var(--i-arrow-ne); }

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 10px 16px;
    background: var(--text);
    color: var(--bg);
    font-weight: 600;
    transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* ---------- Layout ------------------------------------------------------- */
.wrap {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.section { padding-block: clamp(64px, 8vw, 104px); }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.section:not(.section--alt) + .section:not(.section--alt) { padding-top: 0; }
.section--alt + .section--alt { border-top: 0; padding-top: 0; }

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 16px clamp(32px, 5vw, 72px);
    align-items: start;
    margin-bottom: clamp(32px, 4vw, 48px);
}
.section-head h2 { font-size: clamp(1.875rem, 3.2vw, 2.625rem); }
.section-head p { color: var(--text-2); }
.section-head__side { display: grid; gap: 16px; justify-items: start; }
.section-head > p,
.section-head__side { padding-top: 0.35em; }

.grid-2,
.grid-3,
.grid-4 { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Testo --------------------------------------------------------- */
.lead { font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.6; color: var(--text-2); }
.muted { color: var(--text-2); }
.subtle { color: var(--text-3); }
.small { font-size: 0.875rem; }
.red { color: var(--red-text); }
.dot { color: var(--red); }
.mono { font-family: var(--mono); }
.label { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border: 1px solid var(--line-2);
    font-family: var(--mono);
    font-size: 0.6875rem;
    font-weight: 500;
    font-stretch: 100%;
    line-height: 1.3;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-2);
    white-space: nowrap;
}
.tag--red { background: var(--red); border-color: var(--red); color: var(--white); }

/* ---------- Pulsanti e link ---------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid var(--red);
    background: var(--red);
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--secondary { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn--secondary:hover { background: var(--surface-2); border-color: var(--text-3); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.btn--block { width: 100%; }
.btn .icon { width: 18px; height: 18px; }
.btn.is-loading,
.btn[disabled] { opacity: 0.65; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--line-2);
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
    transition: color 0.15s, text-decoration-color 0.15s;
}
.link::after { width: 0.95em; height: 0.95em; color: var(--red-text); transition: transform 0.15s; }
.link:hover { color: var(--white); text-decoration-color: var(--red-text); }
.link:hover::after { transform: translateX(3px); }
.link--ext:hover::after { transform: translate(2px, -2px); }
.prose a,
.facts a,
.text-link { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.prose a:hover,
.facts a:hover,
.text-link:hover { text-decoration-color: var(--red-text); }

/* ---------- Header ------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: auto; height: 30px; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__list { display: flex; gap: 28px; }
.nav__link {
    position: relative;
    display: block;
    padding: 8px 0;
    font-size: 0.97rem;
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    transition: color 0.15s;
}
.nav__link:hover,
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: calc((var(--header-h) - 41px) / -2 - 1px); height: 2px; background: var(--red); }
.nav__contacts { display: none; }

.nav-toggle {
    display: none;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line-2);
    background: transparent;
    color: var(--text);
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle__close { display: none; }
.nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: block; }

@media (max-width: 1000px) {
    .brand img { height: 26px; }
    .nav-toggle { display: grid; }
    .nav {
        position: fixed;
        inset: var(--header-h) 0 0 0;
        z-index: 99;
        display: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: space-between;
        gap: 32px;
        padding: 12px var(--gutter) max(28px, env(safe-area-inset-bottom));
        background: var(--bg);
        overflow-y: auto;
    }
    .nav-open,
    .nav-open body { overflow: hidden; }
    .nav-open .nav { display: flex; }
    .nav__list { flex-direction: column; gap: 0; }
    .nav__link { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.375rem; font-weight: 600; color: var(--text); }
    .nav__link.is-active { color: var(--red-text); }
    .nav__link.is-active::after { display: none; }
    .nav__extra { display: grid; gap: 20px; }
    .nav__extra .btn { width: 100%; }
    .nav__contacts { display: grid; gap: 8px; color: var(--text-2); }
}

/* ---------- Intestazione delle pagine ------------------------------------ */
.page-head { padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(44px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: clamp(20px, 3vw, 32px); font-size: 0.875rem; color: var(--text-3); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--text-2); }
.page-head__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 5vw, 72px); align-items: start; }
.page-head__title { font-size: clamp(2.25rem, 4.6vw, 3.5rem); line-height: 1.06; letter-spacing: -0.02em; }
.page-head__lead { margin-top: 18px; max-width: 40em; }
.page-head__actions { margin-top: 28px; }
.page-head .tags { margin-bottom: 18px; }

/* ---------- Home: apertura ------------------------------------------------ */
.hero { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: 48px clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(2.5rem, 5.2vw, 4.25rem); line-height: 1.04; letter-spacing: -0.02em; }
.hero__lead { margin-top: 24px; max-width: 34em; }
.hero__actions { margin-top: 36px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--text-3); }
.hero__facts li { display: flex; align-items: center; gap: 10px; }
.hero__facts li::before { content: ""; width: 6px; height: 6px; background: var(--red); flex: none; }

/* ---------- Screenshot con cornice -------------------------------------- */
.shot { display: grid; gap: 12px; align-content: start; }
.frame { display: block; overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-deep); }
.frame__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 14px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text-3);
    white-space: nowrap;
    overflow: hidden;
}
.frame__bar .icon { width: 12px; height: 12px; }
.frame img { width: 100%; }
.shot--phone { max-width: 300px; }
.caption { font-size: 0.875rem; color: var(--text-3); }
.frame-missing { display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--surface-2); font-family: var(--mono); font-size: 0.8rem; color: var(--text-3); }
a[data-lightbox] { display: grid; text-decoration: none; cursor: zoom-in; }
a[data-lightbox]:hover .frame { border-color: var(--text-3); }

/* ---------- Schede ------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); padding: var(--pad); }
.section--alt .card { background: var(--bg); }
a.card { display: block; text-decoration: none; transition: border-color 0.15s, background-color 0.15s; }
a.card:hover { border-color: var(--line-2); background: var(--surface-2); }

/* Lavori */
.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.work-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color 0.15s; }
.work-card:hover { border-color: var(--text-3); }
.work-card__media { border-bottom: 1px solid var(--line); background: var(--bg-deep); overflow: hidden; }
.work-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.work-card__body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: var(--pad); }
.work-card__title { font-size: clamp(1.375rem, 2vw, 1.625rem); transition: color 0.15s; }
.work-card__text { color: var(--text-2); }
.work-card__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 16px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 0.875rem;
    color: var(--text-3);
}
.work-card__meta .arrow { width: 18px; height: 18px; margin-left: auto; color: var(--red-text); transition: transform 0.15s; }
.work-card:hover .arrow { transform: translateX(3px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 3vw, 32px); }
.filter-btn {
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--line-2);
    background: transparent;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-2);
}
.filter-btn:hover { color: var(--text); border-color: var(--text-3); }
.filter-btn.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }
.filter-btn span { margin-left: 6px; font-family: var(--mono); font-size: 0.8rem; opacity: 0.75; }
.is-filtered-out { display: none !important; }

/* Servizi */
.service-card { display: flex; flex-direction: column; gap: 18px; }
.service-card h3 { font-size: 1.375rem; }
.service-card p { color: var(--text-2); }
.service-card .link { margin-top: auto; padding-top: 6px; }
.service-card .list-sq { font-size: 0.97rem; }

/* Elenchi */
.list-sq { display: grid; gap: 10px; }
.list-sq li { position: relative; padding-left: 20px; color: var(--text-2); }
.list-sq li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; background: var(--red); }
.list-sq--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); }
.list-sq--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px var(--gap); }
.list-dash { display: grid; gap: 10px; }
.list-dash li { position: relative; padding-left: 22px; color: var(--text-2); }
.list-dash li::before { content: "—"; position: absolute; left: 0; color: var(--text-3); }

/* Dati in tabella */
.facts { border: 1px solid var(--line); background: var(--surface); }
.facts > div { display: grid; grid-template-columns: minmax(96px, 0.42fr) minmax(0, 1fr); gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--text-3); }
.facts dd { color: var(--text); overflow-wrap: anywhere; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.table { width: 100%; min-width: 520px; font-size: 0.9375rem; }
.table th,
.table td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table tbody tr:last-child td { border-bottom: 0; }
.table thead th { background: var(--surface-2); font-family: var(--mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.table td { color: var(--text-2); }
.table td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.table .table__price { color: var(--text); font-weight: 600; white-space: nowrap; }
.table .table__price small { font-weight: 400; color: var(--text-3); }
.table .tag { margin-left: 8px; vertical-align: 1px; }

/* ---------- Prodotto (Artigia.net) --------------------------------------- */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px clamp(32px, 5vw, 64px); align-items: start; }
.product__text { display: grid; gap: 24px; align-content: start; }
.product__text h2 { font-size: clamp(1.875rem, 3.2vw, 2.625rem); }
.product__media { display: grid; gap: var(--gap); align-content: start; }

/* Testo e immagine affiancati */
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px clamp(32px, 5vw, 64px); align-items: start; }
.split__text { display: grid; gap: 24px; align-content: start; }
.split__text h2 { font-size: clamp(1.875rem, 3.2vw, 2.625rem); }
.split__media { display: grid; gap: var(--gap); align-content: start; }
.split__link { display: grid; text-decoration: none; }
.split__link:hover .frame { border-color: var(--text-3); }
.care-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.care-price strong { font-stretch: 104%; font-weight: 700; font-size: 2.25rem; line-height: 1; color: var(--text); }
.care-price span { font-size: 0.875rem; color: var(--text-3); }

/* ---------- Metodo ------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px var(--gap); counter-reset: step; }
.step { counter-increment: step; display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 2px solid var(--line-2); }
.step::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 0.8125rem; font-weight: 500; color: var(--red-text); }
.step h3 { font-size: 1.25rem; }
.step p { color: var(--text-2); font-size: 0.97rem; }

/* ---------- Pannello contatti ------------------------------------------- */
.contact-panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border: 1px solid var(--line); background: var(--surface); }
.contact-panel__intro { display: grid; gap: 20px; align-content: start; justify-items: start; padding: clamp(28px, 4vw, 48px); border-right: 1px solid var(--line); }
.contact-panel__intro h2 { font-size: clamp(1.875rem, 3.2vw, 2.5rem); }
.contact-panel__intro p { color: var(--text-2); }
.channel {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 20px;
    gap: 16px;
    align-items: center;
    padding: 18px clamp(20px, 3vw, 32px);
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    transition: background-color 0.15s;
}
.channel:last-child { border-bottom: 0; }
a.channel:hover { background: var(--surface-2); }
.channel__icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-2); color: var(--text-2); }
.channel__icon .icon { width: 18px; height: 18px; }
.channel__label { display: block; font-size: 0.8125rem; color: var(--text-3); }
.channel__value { display: block; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.channel .arrow { width: 18px; height: 18px; color: var(--text-3); transition: transform 0.15s, color 0.15s; }
a.channel:hover .arrow { color: var(--red-text); transform: translateX(3px); }
a.channel:hover .arrow--ne { transform: translate(2px, -2px); }

/* ---------- Footer ------------------------------------------------------- */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); color: var(--text-2); padding-top: clamp(48px, 6vw, 72px); padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 3fr); gap: 40px var(--gap); }
.footer-brand img { width: auto; height: 30px; }
.footer-brand p { margin-top: 18px; max-width: 34ch; font-size: 0.9375rem; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.footer-col__title { margin-bottom: 14px; font-family: var(--mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.footer-col ul { display: grid; gap: 8px; font-size: 0.9375rem; list-style: none; }
.footer-col li { overflow-wrap: anywhere; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: clamp(40px, 5vw, 56px); padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--text-3); }
.footer-bottom__links { display: flex; gap: 20px; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--text); text-decoration: underline; }

/* ---------- WhatsApp ----------------------------------------------------- */
.wa-float {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 90;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--wa);
    color: #0b2e17;
    transition: transform 0.15s;
}
.wa-float:hover { transform: translateY(-2px); }
.wa-float .icon { width: 28px; height: 28px; }

/* ---------- Caso studio -------------------------------------------------- */
.case-media { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: var(--gap); align-items: end; }
.block { display: grid; gap: 16px; align-content: start; }
.block h3 { font-size: 1.375rem; }
.block > p { color: var(--text-2); }
.feature { display: grid; gap: 8px; align-content: start; }
.feature__num { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; color: var(--red-text); }
.feature h3 { font-size: 1.0625rem; font-stretch: 100%; font-weight: 600; letter-spacing: 0; line-height: 1.35; }
.feature p { color: var(--text-2); font-size: 0.9375rem; }
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: var(--gap); border: 1px solid var(--line); background: var(--surface); }
.figure { display: grid; gap: 6px; align-content: start; padding: var(--pad); border-right: 1px solid var(--line); }
.figure:last-child { border-right: 0; }
.figure strong { font-stretch: 104%; font-weight: 700; font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1; color: var(--text); }
.figure span { color: var(--text-2); font-size: 0.9375rem; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px var(--gap); align-items: start; }
.gallery__item--phone { width: min(300px, 100%); }
.next-card { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--gap) clamp(24px, 4vw, 56px); align-items: center; }
.next-card__text { display: grid; gap: 12px; justify-items: start; }
.next-card__title { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-stretch: 104%; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
.next-card .frame img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.next-card:hover .next-card__title { color: var(--white); }

/* ---------- Prezzi ------------------------------------------------------- */
.pricing { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
.price-card { display: flex; flex-direction: column; gap: 18px; padding: 28px 24px; background: var(--surface); border: 1px solid var(--line); }
/* Righe allineate tra le schede (prezzo, elenco e pulsante alla stessa altezza) */
@supports (grid-template-rows: subgrid) {
    .pricing { grid-auto-rows: auto; }
    .price-card { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 18px; align-content: start; }
    .price-card .btn { align-self: end; }
}
.price-card.is-featured { border-color: var(--red); box-shadow: inset 0 3px 0 var(--red); }
.price-card__head { display: grid; gap: 8px; justify-items: start; align-content: start; }
.price-card__name { font-size: 1.25rem; }
.price-card__desc { color: var(--text-2); font-size: 0.9375rem; }
.price-card__price { display: flex; flex-wrap: wrap; align-items: baseline; align-content: center; gap: 4px 8px; padding-block: 16px; border-block: 1px solid var(--line); }
.price-card__price strong { font-stretch: 104%; font-weight: 700; font-size: 2rem; line-height: 1; }
.price-card__price span { font-size: 0.875rem; color: var(--text-3); }
.price-card .list-sq { font-size: 0.9375rem; }
.price-card .btn { margin-top: auto; }
.care-card { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: 24px clamp(24px, 4vw, 48px); align-items: center; margin-top: var(--gap); }
.care-card__price { display: grid; gap: 12px; justify-items: start; }
.care-card__price p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.care-card__price strong { font-stretch: 104%; font-weight: 700; font-size: 2rem; line-height: 1; }
.care-card__price span { font-size: 0.875rem; color: var(--text-3); }
.note { max-width: 80ch; margin-top: 24px; font-size: 0.875rem; color: var(--text-3); }

/* ---------- Domande frequenti ------------------------------------------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px clamp(32px, 5vw, 64px); align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
    font-weight: 600;
    font-size: 1.0625rem;
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; font-family: var(--mono); font-size: 1.3rem; font-weight: 400; line-height: 1; color: var(--text-3); }
.faq-item[open] summary::after { content: "−"; color: var(--red-text); }
.faq-item summary:hover { color: var(--white); }
.faq-item__body { display: grid; gap: 12px; max-width: 68ch; padding: 0 40px 22px 0; color: var(--text-2); }
.faq + p { margin-top: 24px; }
.side-card { display: grid; gap: 16px; justify-items: start; }
.side-card h2,
.side-card h3 { font-size: 1.25rem; }
.side-card p { color: var(--text-2); font-size: 0.97rem; }

/* ---------- Moduli ------------------------------------------------------- */
.form { display: grid; gap: 22px; }
.form__head { display: grid; gap: 6px; }
.form__head h2 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field--full { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; align-content: start; }
.field label,
.field__label { font-weight: 500; font-size: 0.9375rem; }
.req { color: var(--red-text); }
.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--line-2);
    border-radius: 0;
    background: var(--bg);
    color: var(--text);
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select {
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23BDB7AA' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}
.field select option { background: var(--surface); color: var(--text); }
.field input::placeholder,
.field textarea::placeholder { color: #77716a; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--text-3); }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--text-3); outline: 2px solid var(--red-text); outline-offset: 1px; }
.has-error input,
.has-error select,
.has-error textarea { border-color: var(--red-text); }
.field__error { font-size: 0.875rem; font-weight: 500; color: var(--red-text); }
.checkbox { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 12px; font-size: 0.9375rem; color: var(--text-2); cursor: pointer; }
.checkbox > span { flex: 1 1 0; min-width: 0; }
.checkbox input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red); }
.checkbox a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.checkbox .field__error { flex-basis: 100%; margin-left: 32px; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.form-status { display: none; gap: 10px; padding: 14px 16px; border: 1px solid; font-size: 0.9375rem; }
.form-status.is-visible { display: flex; }
.form-status--error { color: #ffb8a8; background: #2a1712; border-color: #7a2d1c; }
.form-status--success { color: var(--ok); background: #16241a; border-color: #2f5a36; }
.form-success { display: grid; gap: 16px; justify-items: start; }
.form-success__mark { display: grid; place-items: center; width: 48px; height: 48px; background: var(--red); color: var(--white); }
.form-success__mark .icon { width: 24px; height: 24px; }
.form-success h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.form-success p { max-width: 52ch; color: var(--text-2); }
.spinner { width: 18px; height: 18px; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Scelte del preventivo */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.choice-grid--compact { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.choice { position: relative; display: block; cursor: pointer; }
.choice__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice__body {
    position: relative;
    display: grid;
    gap: 4px;
    height: 100%;
    padding: 15px 16px 15px 44px;
    border: 1px solid var(--line-2);
    background: var(--bg);
    transition: border-color 0.15s, background-color 0.15s;
}
.choice__body::before { content: ""; position: absolute; left: 16px; top: 19px; width: 14px; height: 14px; border: 1px solid var(--text-3); }
.choice__title { font-weight: 600; line-height: 1.35; }
.choice__text { font-size: 0.875rem; line-height: 1.45; color: var(--text-2); }
.choice:hover .choice__body { border-color: var(--text-3); }
.choice__input:focus-visible + .choice__body { outline: 2px solid var(--red-text); outline-offset: 2px; }
.choice__input:checked + .choice__body { border-color: var(--red); background: var(--surface-2); }
.choice__input:checked + .choice__body::before { border-color: var(--red); background: var(--red); }
.choice--pill .choice__body { padding-block: 12px; }
.choice--pill .choice__body::before { top: 16px; }

/* Preventivo guidato */
.wizard { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--gap); align-items: start; }
.wizard__progress { display: grid; gap: 12px; }
.wizard__bar { height: 3px; background: var(--line); }
.wizard__bar span { display: block; width: 25%; height: 100%; background: var(--red); transition: width 0.3s; }
.wizard__steps { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 0.875rem; color: var(--text-3); }
.wizard__steps li { display: flex; gap: 8px; }
.wizard__steps li span { font-family: var(--mono); }
.wizard__steps li.is-current { color: var(--text); font-weight: 600; }
.wizard__steps li.is-done { color: var(--text-2); }
.wizard__step { display: grid; gap: 24px; min-width: 0; margin: 0; padding: 0; border: 0; }
.js .wizard__step { display: none; }
.js .wizard__step.is-active { display: grid; }
.no-js .wizard__step + .wizard__step { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.wizard__step-head { display: grid; gap: 8px; }
.wizard__step-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.wizard__group { display: grid; gap: 12px; }
.wizard__group-title { font-weight: 600; }
.wizard__nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.wizard__nav [data-wizard-next],
.wizard__nav .wizard__submit { margin-left: auto; }
.no-js .wizard__nav [data-wizard-prev],
.no-js .wizard__nav [data-wizard-next] { display: none; }
.js .wizard__submit { display: none; }
.js .wizard.is-last .wizard__submit { display: inline-flex; }
.js .wizard.is-last [data-wizard-next] { display: none; }
.wizard__summary { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 18px; }
.wizard__summary h2 { font-size: 1.25rem; }
.summary-list { display: grid; font-size: 0.9375rem; }
.summary-list > div { padding: 10px 0; border-top: 1px solid var(--line); }
.summary-list dt { font-size: 0.8125rem; color: var(--text-3); }
.summary-list dd { margin-top: 2px; color: var(--text); }
.summary-empty { color: var(--text-3); }

/* ---------- Pagina contatti --------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: start; }
.contact-side { display: grid; gap: var(--gap); }
.card--flush { padding: 0; }
.qr { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; align-items: center; }
.qr img { padding: 6px; background: var(--white); }
.qr > div { display: grid; gap: 12px; justify-items: start; }
.qr p { color: var(--text-2); font-size: 0.9375rem; }

/* ---------- Lo studio ---------------------------------------------------- */
.founder { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap) clamp(32px, 5vw, 64px); align-items: start; }
.founder__photo { display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; }
.founder__initials { font-stretch: 112%; font-weight: 800; font-size: clamp(4rem, 9vw, 7rem); line-height: 1; color: var(--text); }
.founder__initials span { color: var(--red); }
.founder__text { display: grid; gap: 18px; align-content: start; justify-items: start; }
.founder__name { font-size: clamp(2rem, 4vw, 3rem); }
.founder__role { font-family: var(--mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red-text); }

.rows { border-top: 1px solid var(--line); }
.row {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr) 20px;
    gap: 20px;
    align-items: center;
    padding: 18px 12px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    transition: background-color 0.15s;
}
.row:hover { background: var(--surface); }
.row__name { font-weight: 600; font-size: 1.125rem; }
.row__meta { color: var(--text-2); }
.row__place { font-size: 0.875rem; color: var(--text-3); }
.row .arrow { width: 18px; height: 18px; color: var(--text-3); }
.row:hover .arrow { color: var(--red-text); }

/* ---------- Testi legali ------------------------------------------------- */
.prose { max-width: 72ch; color: var(--text-2); }
.prose h2 { margin: 44px 0 14px; font-size: 1.5rem; color: var(--text); }
.prose h3 { margin: 26px 0 10px; font-size: 1.125rem; color: var(--text); }
.prose p,
.prose ul { margin-bottom: 14px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }

/* ---------- Grazie / 404 ------------------------------------------------- */
.simple { padding-block: clamp(64px, 10vw, 128px); }
.simple__inner { display: grid; gap: 20px; justify-items: start; max-width: 720px; }
.simple__code { font-family: var(--mono); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-text); }
.simple__title { font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.06; letter-spacing: -0.02em; }
.simple__inner p { color: var(--text-2); font-size: 1.125rem; }
.simple .actions { margin-top: 12px; }

/* ---------- Lightbox ----------------------------------------------------- */
.lightbox { width: min(1280px, 94vw); max-width: none; max-height: 94vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 9, 8, 0.94); }
.lightbox__figure { display: grid; gap: 12px; justify-items: center; }
.lightbox__img { width: auto; max-height: 84vh; border: 1px solid var(--line-2); background: var(--bg-deep); }
.lightbox__caption { font-size: 0.875rem; color: var(--text-2); text-align: center; }
.lightbox__btn { position: fixed; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); }
.lightbox__btn:hover { background: var(--surface-2); border-color: var(--text-3); }
.lightbox__btn .icon { width: 22px; height: 22px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { top: 50%; left: 16px; margin-top: -23px; }
.lightbox__next { top: 50%; right: 16px; margin-top: -23px; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; padding: 12px 16px; background: var(--text); color: var(--bg); font-weight: 600; transform: translateX(-50%); opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.toast.is-visible { opacity: 1; }

/* ---------- Presentazione ------------------------------------------------ */
.page-deck { overflow: hidden; }
.deck { position: fixed; inset: 0; overflow: hidden; background: var(--bg); }
.deck__top {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 64px;
    padding: 0 var(--gutter);
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}
.deck__top .brand img { height: 26px; }
.deck__tools,
.deck__arrows { display: flex; gap: 8px; }
.deck__icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); background: transparent; color: var(--text); text-decoration: none; }
.deck__icon-btn:hover { background: var(--surface-2); border-color: var(--text-3); }
.deck__icon-btn .icon { width: 20px; height: 20px; }
.deck__progress { position: absolute; inset: 64px 0 auto 0; z-index: 6; height: 3px; background: var(--line); }
.deck__progress span { display: block; width: 0; height: 100%; background: var(--red); transition: width 0.3s; }
.slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    padding: 108px var(--gutter) 108px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide__inner { width: 100%; max-width: var(--container); margin-inline: auto; }
.slide__head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 820px; }
.slide__title { font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -0.02em; }
.slide__title--sm { font-size: clamp(1.875rem, 3.6vw, 2.75rem); }
.slide__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.slide__content { display: grid; gap: 20px; align-content: start; }
.slide__logo { width: auto; height: 44px; margin-bottom: 12px; }
.deck__nav {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
    padding: 0 var(--gutter) env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: var(--bg);
}
.deck__counter { min-width: 64px; font-family: var(--mono); font-size: 0.85rem; color: var(--text-2); }
.deck__dots { display: flex; gap: 6px; }
.deck__dot { width: 24px; height: 4px; padding: 0; border: 0; background: var(--line-2); }
.deck__dot.is-active { background: var(--red); }
.deck__hint { font-size: 0.875rem; color: var(--text-3); }
.deck-qr { display: flex; flex-wrap: wrap; gap: 24px; }
.deck-qr figure { display: grid; gap: 8px; font-size: 0.875rem; color: var(--text-2); }
.deck-qr img { width: 148px; height: 148px; padding: 8px; background: var(--white); }

/* ---------- Tablet ------------------------------------------------------- */
@media (max-width: 1000px) {
    .section-head,
    .page-head__grid,
    .hero__grid,
    .product,
    .split,
    .contact-panel,
    .contact-layout,
    .faq-layout,
    .wizard,
    .founder,
    .next-card,
    .slide__grid { grid-template-columns: minmax(0, 1fr); }
    .contact-panel__intro { border-right: 0; border-bottom: 1px solid var(--line); }
    .grid-3,
    .grid-4,
    .steps,
    .pricing,
    .list-sq--3,
    .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .figure:nth-child(2n) { border-right: 0; }
    .figure:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .care-card { grid-template-columns: minmax(0, 1fr); }
    .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-brand { grid-column: 1 / -1; }
    .wizard__summary { position: static; }
    .founder__photo { max-width: 320px; }
    .slide { align-items: start; }
}

/* ---------- Smartphone --------------------------------------------------- */
@media (max-width: 640px) {
    body { font-size: 16px; }
    .grid-2,
    .grid-3,
    .grid-4,
    .works,
    .steps,
    .pricing,
    .gallery,
    .form-grid,
    .list-sq--2,
    .list-sq--3,
    .case-media { grid-template-columns: minmax(0, 1fr); }
    .case-media .shot--phone { max-width: 260px; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-col--wide { grid-column: 1 / -1; }
    .row { grid-template-columns: minmax(0, 1fr) 20px; gap: 4px 12px; padding-inline: 0; }
    .row__meta { display: none; }
    .row__place { grid-row: 2; }
    .qr { grid-template-columns: 96px minmax(0, 1fr); }
    .faq-item__body { padding-right: 0; }
    .deck__counter,
    .deck__hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
@media print {
    .site-header,
    .wa-float,
    .nav-toggle { display: none !important; }
    html,
    body { background: #fff; color: #000; }
}
