/* ============================================================
   Piscine Energy - sito pubblico
   Caratteri (ospitati sul server, nessuna chiamata esterna):
   Comfortaa per titoli e testo, Lora corsivo per sottotitoli e frasi d'accento.
   Elemento distintivo: la "linea d'acqua" (onda) che chiude l'hero, con le
   bollicine, e riapre il footer. Tutto il resto resta sobrio.
   ============================================================ */

@font-face {
    font-family: "Comfortaa";
    font-style: normal;
    font-display: swap;
    font-weight: 300 700;
    src: url("../fonts/comfortaa-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Comfortaa";
    font-style: normal;
    font-display: swap;
    font-weight: 300 700;
    src: url("../fonts/comfortaa-latin-ext-wght-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Lora";
    font-style: italic;
    font-display: swap;
    font-weight: 400 700;
    src: url("../fonts/lora-latin-wght-italic.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Lora";
    font-style: italic;
    font-display: swap;
    font-weight: 400 700;
    src: url("../fonts/lora-latin-ext-wght-italic.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    /* Colori */
    --abisso: #0b2d4a;      /* blu scuro istituzionale */
    --blu: #2f72b8;         /* blu piscina, dal contorno del logo */
    --acqua: #9ccbf2;       /* azzurro acqua, dal riempimento del logo */
    --schiuma: #eef5fa;     /* fondo chiaro e separatori */
    --bianco: #ffffff;
    --testo: #142638;
    --muted: #51657a;
    --linea: #d6e3ee;
    --rosso: #c8102e;       /* solo promozioni */
    --verde: #1d7a46;

    /* Tipografia */
    --font: "Comfortaa", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-accent: "Lora", Georgia, "Times New Roman", serif;
    --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
    --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
    --step-1: clamp(1.2rem, 1.12rem + 0.35vw, 1.35rem);
    --step-2: clamp(1.5rem, 1.32rem + 0.8vw, 2rem);
    --step-3: clamp(1.9rem, 1.55rem + 1.6vw, 2.9rem);
    --step-4: clamp(2.4rem, 1.7rem + 3.2vw, 4.6rem);

    /* Spazi */
    --wrap: 1200px;
    --gutter: clamp(1.1rem, 0.6rem + 2.4vw, 2.5rem);
    --section: clamp(4rem, 2.8rem + 5vw, 7.5rem);
    --radius-s: 6px;
    --radius-m: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--font); font-size: var(--step-0); line-height: 1.7; color: var(--testo); background: var(--bianco); }
strong, b { font-weight: 700; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blu); text-underline-offset: 3px; }
a:hover { color: var(--abisso); }
:focus-visible { outline: 3px solid var(--blu); outline-offset: 3px; border-radius: 2px; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; color: var(--abisso); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--abisso); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-s); }
.skip-link:focus { top: 1rem; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* --- Titoli: Comfortaa, peso medio come nel riferimento --- */
.section-title, .hero-title, .page-head h1 {
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.15;
    text-wrap: balance;
}
.section-title { font-size: var(--step-3); max-width: 22ch; }
.section-title-small { font-size: var(--step-2); }
.lead { font-family: var(--font-accent); font-style: italic; font-size: var(--step-1); color: var(--blu); line-height: 1.5; margin: 1rem 0 0; max-width: 58ch; }
.prose { max-width: 62ch; }
.prose p { margin: 0 0 1em; }
.prose h2 { font-size: var(--step-2); font-weight: 600; margin: 1.6em 0 .5em; }
.prose h3 { font-size: var(--step-1); margin: 1.4em 0 .4em; }
.prose ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1em; }

/* --- Pulsanti --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 52px; padding: 0 1.6rem; border-radius: 999px; border: 2px solid transparent;
    font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--blu); color: #fff; }
.btn-primary:hover { background: var(--abisso); color: #fff; }
.btn-ghost-light { border-color: rgba(255, 255, 255, .85); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--abisso); }
.btn-small { min-height: 42px; padding: 0 1.1rem; font-size: var(--step--1); }
.btn-wide { width: 100%; }
.text-link { font-weight: 650; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* --- Header --- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--linea); }
.topbar { background: var(--abisso); color: #cfe3f3; font-size: var(--step--1); }
.topbar-inner { display: flex; justify-content: space-between; gap: 1rem; min-height: 36px; align-items: center; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar-contacts { display: flex; gap: 1.4rem; }
.mainbar-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 78px; }
.brand { display: flex; align-items: flex-end; align-self: stretch; padding-top: 8px; }
/* Il logo e' un semicerchio con base piatta: appoggia sulla linea inferiore dell'header */
.brand img { width: auto; height: 70px; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: .3rem; }
.main-nav a { display: block; padding: .55rem .8rem; border-radius: var(--radius-s); color: var(--abisso); font-weight: 700; text-decoration: none; }
.main-nav a:hover { background: var(--schiuma); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.icon-link { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--abisso); }
.icon-link:hover { background: var(--schiuma); }
.icon-link svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--blu); color: #fff; font-size: 11px; font-weight: 700; line-height: 19px; text-align: center; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 22px; height: 2px; background: var(--abisso); border-radius: 2px; position: relative; margin: auto; transition: transform .2s ease; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero: foto a tutto schermo, testo in basso a sinistra, bollicine e linea d'acqua --- */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; color: #fff; isolation: isolate; overflow: hidden; background: var(--abisso); }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(8, 34, 58, .78) 0%, rgba(8, 34, 58, .45) 45%, rgba(8, 34, 58, 0) 75%),
                linear-gradient(0deg, rgba(8, 34, 58, .55) 0%, rgba(8, 34, 58, 0) 45%); }
.hero-inner { padding-block: 7rem clamp(6.5rem, 5rem + 6vw, 10rem); }
.hero-title { font-size: var(--step-4); color: #fff; max-width: 14ch; text-shadow: 0 2px 18px rgba(0, 0, 0, .2); }
.hero-lead { font-family: var(--font-accent); font-style: italic; font-size: var(--step-1); max-width: 40ch; margin: 1.4rem 0 0; color: #e4f1fb; line-height: 1.5; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.hero .btn-ghost-light { background: rgba(8, 34, 58, .35); }
.waterline { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(40px, 6vw, 90px); fill: var(--bianco); }

/* Bollicine che salgono nell'acqua (unica animazione automatica del sito) */
.bubbles { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bubbles span {
    position: absolute; bottom: -40px; left: var(--x);
    width: var(--s); height: var(--s); border-radius: 50%;
    background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .95) 0 12%, rgba(255, 255, 255, .28) 28%, rgba(255, 255, 255, .06) 62%, rgba(255, 255, 255, 0) 70%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), 0 0 6px rgba(255, 255, 255, .25);
    opacity: 0;
    animation: bolla var(--d) ease-in infinite var(--delay);
}
@keyframes bolla {
    0%   { transform: translate(0, 0) scale(.6); opacity: 0; }
    10%  { opacity: .9; }
    35%  { transform: translate(var(--w), -35vh) scale(.8); }
    65%  { transform: translate(calc(var(--w) * -1), -65vh) scale(.95); opacity: .75; }
    100% { transform: translate(0, -100vh) scale(1.05); opacity: 0; }
}

/* --- Sezioni --- */
.section { padding-block: var(--section); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(1.8rem, 1rem + 2vw, 3rem); }

/* Azienda */
.about { padding-top: calc(var(--section) * .7); }
.about-grid { display: grid; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.kicker { margin: 0 0 1rem; color: var(--blu); font-family: var(--font-accent); font-style: italic; font-size: var(--step-1); }
.about-text .prose { margin-top: 1.6rem; color: var(--testo); }
.about-media { margin: 0; border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 4 / 5; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.values-intro { margin: clamp(3rem, 2rem + 3vw, 5rem) 0 .8rem; color: var(--muted); font-size: var(--step--1); }
.values { display: flex; flex-wrap: wrap; column-gap: clamp(1.2rem, .5rem + 2.5vw, 3rem); row-gap: .2rem; border-top: 2px solid var(--abisso); padding-top: 1.1rem; }
.values li { font-size: clamp(1.4rem, 0.9rem + 1.9vw, 2.3rem); font-weight: 300; color: var(--blu); letter-spacing: -0.02em; line-height: 1.15; }

/* Servizi */
.services { background: var(--schiuma); }
.service { display: grid; gap: clamp(1.8rem, 1rem + 3vw, 4.5rem); align-items: center; }
.service + .service { margin-top: var(--section); }
.service-media { border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 4 / 3; }
.service-media img { width: 100%; height: 100%; object-fit: cover; }
.service-text .prose { margin-top: 1.4rem; }
.service-text .text-link { display: inline-block; margin-top: .6rem; }

/* Prodotti */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.9rem, .5rem + 1.5vw, 1.8rem); }
.product-card { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.product-card-media { position: relative; aspect-ratio: 1; background: var(--schiuma); border-radius: var(--radius-m); overflow: hidden; display: grid; place-items: center; padding: 8%; }
.product-card-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
a.product-card:hover .product-card-title { text-decoration: underline; text-underline-offset: 3px; }
.product-card-body { display: flex; flex-direction: column; gap: .25rem; padding: .9rem .1rem 0; flex: 1; }
.product-card-brand { font-size: var(--step--1); color: var(--muted); }
.product-card-title { font-size: var(--step-0); font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.price { display: flex; align-items: baseline; gap: .55rem; margin-top: .35rem; }
.price-now { font-size: var(--step-1); font-weight: 700; color: var(--abisso); }
.price-old { color: var(--muted); font-size: var(--step--1); }
.stock { font-size: var(--step--1); margin-top: auto; padding-top: .3rem; }
.stock::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .45rem; vertical-align: 1px; background: currentColor; }
.stock-in { color: var(--verde); }
.stock-low { color: #9a5a00; }
.stock-out { color: var(--muted); }
.promo-badge { position: absolute; top: .7rem; left: .7rem; padding: .3rem .65rem; border-radius: 4px; background: var(--badge-bg, var(--rosso)); color: var(--badge-fg, #fff); font-size: var(--step--1); font-weight: 700; line-height: 1.2; }

/* Categorie */
.categories { padding-top: 0; }
.category-list { display: grid; gap: 1rem; }
.category-tile { display: grid; grid-template-columns: 88px 1fr; grid-template-rows: auto auto; column-gap: 1.2rem; align-items: center; padding: 1rem 1.2rem; border: 1px solid var(--linea); border-radius: var(--radius-m); color: inherit; text-decoration: none; background: var(--bianco); }
a.category-tile:hover { border-color: var(--blu); }
.category-media { grid-row: span 2; overflow: hidden; width: 88px; height: 88px; display: grid; place-items: center; background: var(--schiuma); border-radius: 10px; padding: 8px; }
.category-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.category-name { font-weight: 700; font-size: var(--step-1); color: var(--abisso); align-self: end; }
.category-count { color: var(--muted); font-size: var(--step--1); align-self: start; }

/* Galleria */
.gallery-section { background: var(--abisso); color: #fff; }
.gallery-section .section-title { color: #fff; }
.gallery-section .text-link { color: var(--acqua); }
/* Mosaico: una foto grande + quattro; le altre nella galleria a tutto schermo */
.gallery { display: grid; gap: .8rem; }
.gallery li { position: relative; min-width: 0; }
.gallery a { position: relative; display: block; height: 100%; border-radius: 12px; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8, 34, 58, .62); color: #fff; font-size: var(--step-2); font-weight: 700; transition: background-color .2s ease; }
.gallery a:hover .gallery-more { background: rgba(8, 34, 58, .45); }
.gallery-hint { margin: 1rem 0 0; color: #a9c4da; font-size: var(--step--1); }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(5, 20, 34, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; width: auto; border-radius: 6px; }
.lightbox-btn { position: fixed; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox-btn:hover { background: rgba(255, 255, 255, .25); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* Partner */
.partners { padding-block: calc(var(--section) * .7); border-bottom: 1px solid var(--linea); }
.partners-inner { display: grid; gap: 2rem; align-items: center; }
.partner-logos { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1.5rem, 1rem + 2vw, 3rem); }
.partner-logos img { max-height: 54px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.partner-logos li:hover img { filter: none; opacity: 1; }

/* Recensioni */
.review-list { display: grid; gap: 1.5rem; margin-top: 2rem; }
.review { border-left: 3px solid var(--acqua); padding-left: 1.2rem; }
.stars { color: #c98a00; letter-spacing: 2px; }
.review-author { color: var(--muted); font-size: var(--step--1); }

/* Contatti e preventivo */
.contact { background: var(--schiuma); }
.contact-grid { display: grid; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.contact-data { margin: 2.2rem 0 0; display: grid; gap: 1.1rem; }
.contact-data div { border-top: 1px solid var(--linea); padding-top: .9rem; }
.contact-data dt { font-size: var(--step--1); color: var(--muted); }
.contact-data dd { margin: .15rem 0 0; font-weight: 600; font-size: var(--step-1); color: var(--abisso); }
.contact-data a { color: var(--abisso); }
.quote-form { background: var(--bianco); border-radius: var(--radius-m); padding: clamp(1.4rem, 1rem + 2vw, 2.6rem); display: grid; gap: 1rem; border: 1px solid var(--linea); }
.form-row { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field > span { font-weight: 600; font-size: var(--step--1); color: var(--abisso); }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; color: var(--testo); background: #fff;
    border: 1.5px solid #c7d6e3; border-radius: 10px; padding: .75rem .9rem; min-height: 50px;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blu); box-shadow: 0 0 0 4px rgba(47, 114, 184, .18); }
.field [aria-invalid="true"] { border-color: var(--rosso); }
.field-error { color: var(--rosso); font-size: var(--step--1); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; align-items: start; font-size: var(--step--1); color: var(--muted); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blu); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { margin: 0; padding: .9rem 1rem; border-radius: 10px; background: #e7f0f8; color: var(--abisso); }
.notice-success { background: #e4f4ea; color: #145a31; }
.notice-error { background: #fbe9ec; color: #8a1426; }

/* Pagine di contenuto */
.page-head { background: var(--schiuma); padding-block: 3rem 2.5rem; }
.page-head h1 { font-size: var(--step-3); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .3rem .5rem; font-size: var(--step--1); color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a + span::before, .breadcrumb a + a::before { content: "/"; margin-right: .5rem; color: var(--linea); }
.page-body { padding-block: 3rem var(--section); }

/* Footer */
.site-footer { position: relative; padding-bottom: 72px; background: var(--abisso); color: #c3d6e6; padding-top: clamp(4rem, 3rem + 4vw, 6rem); margin-top: 0; }
.waterline-top { top: -1px; bottom: auto; transform: scaleY(-1); fill: var(--bianco); }
.page-home .waterline-top { fill: var(--schiuma); }
.footer-grid { display: grid; gap: 2.2rem; padding-bottom: 3rem; }
.footer-brand img { width: 112px; height: 112px; padding: 6px; background: #fff; border-radius: 50%; }
.footer-brand p { max-width: 32ch; margin-top: 1rem; }
.footer-title { color: #fff; font-size: var(--step-0); font-weight: 700; margin-bottom: .8rem; }
.footer-list { display: grid; gap: .45rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-text { margin: 0; max-width: 30ch; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; padding-block: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: var(--step--1); color: #93aec4; }
.footer-legal a { color: #93aec4; }

/* Pulsante WhatsApp fisso su tutte le pagine */
.whatsapp-btn {
    position: fixed; right: clamp(.9rem, .5rem + 1vw, 1.6rem); bottom: clamp(.9rem, .5rem + 1vw, 1.6rem); z-index: 60;
    display: inline-flex; align-items: center; gap: .55rem; min-height: 56px; padding: 0 1.2rem 0 .95rem;
    border-radius: 999px; background: #1fa855; color: #fff; text-decoration: none; font-weight: 700;
    box-shadow: 0 10px 24px -8px rgba(11, 45, 74, .45);
    transition: background-color .15s ease, transform .15s ease;
}
.whatsapp-btn:hover { background: #168a45; color: #fff; transform: translateY(-2px); }
.whatsapp-btn svg { width: 28px; height: 28px; flex: none; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }
.whatsapp-btn .wa-fill { fill: #fff; stroke: none; }


/* ============================================================
   Shop, categoria, scheda prodotto, carrello
   ============================================================ */
.flash-area { padding-top: 1rem; display: grid; gap: .6rem; }
.btn-outline { border-color: var(--blu); color: var(--blu); background: #fff; }
.btn-outline:hover { background: var(--blu); color: #fff; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: var(--step--1); }
.link-button:hover { color: var(--rosso); }
.block-title { font-size: var(--step-2); font-weight: 500; margin-bottom: 1.2rem; }

.shop-head { background: var(--schiuma); padding-block: 2rem 2.2rem; }
.shop-head .section-title { font-size: var(--step-3); max-width: none; }
.shop-intro { margin-top: 1rem; }
.shop { padding-block: 2rem var(--section); }
.shop-layout { display: grid; gap: 2rem; }
.filters-form { display: grid; gap: 1.2rem; }
.filters-top { display: flex; justify-content: space-between; align-items: center; }
.filters-title { font-size: var(--step-1); font-weight: 700; }
.filters-close { display: none; width: 44px; height: 44px; border: 0; background: var(--schiuma); border-radius: 50%; font-size: 26px; cursor: pointer; }
.filter-group { border: 0; border-top: 1px solid var(--linea); padding: 1rem 0 0; margin: 0; display: grid; gap: .45rem; }
.filter-group legend { font-weight: 700; color: var(--abisso); padding: 0 0 .4rem; font-size: var(--step--1); }
.radio, .check-inline { display: flex; align-items: center; gap: .55rem; font-size: var(--step--1); cursor: pointer; }
.radio input, .check-inline input { width: 18px; height: 18px; accent-color: var(--blu); margin: 0; }
.radio small, .check-inline small { color: var(--muted); }
.filter-link { font-size: var(--step--1); }
.price-range { display: grid; grid-template-columns: 1fr auto 1fr; gap: .5rem; align-items: center; }
.price-range .field input { min-height: 44px; }
.filters-reset { justify-self: center; font-size: var(--step--1); }
.shop-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; margin-bottom: 1.4rem; }
.shop-count { margin: 0; color: var(--muted); font-size: var(--step--1); margin-right: auto; }
.sort-form label { display: flex; align-items: center; gap: .5rem; font-size: var(--step--1); }
.sort-form select { font: inherit; font-size: var(--step--1); border: 1.5px solid #c7d6e3; border-radius: 10px; padding: .55rem .8rem; min-height: 44px; background: #fff; color: var(--testo); }
.filters-open { display: none; }
.empty-state { text-align: center; padding: 3rem 1rem; border: 1px dashed var(--linea); border-radius: var(--radius-m); }
.empty-state h2 { font-size: var(--step-2); font-weight: 500; }
.empty-state p { color: var(--muted); max-width: 46ch; margin: .8rem auto 1.4rem; }
.pagination { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 2.5rem; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--linea); text-decoration: none; color: var(--abisso); font-weight: 700; }
.pagination a:hover { border-color: var(--blu); }
.pagination [aria-current="page"] { background: var(--abisso); border-color: var(--abisso); color: #fff; }

/* Scheda prodotto */
.product-page { padding-block: 1.5rem var(--section); }
.product-main { display: grid; gap: clamp(1.5rem, 1rem + 3vw, 4rem); margin-top: 1.2rem; align-items: start; }
.product-gallery { display: grid; gap: .8rem; }
.product-zoom { position: relative; display: block; aspect-ratio: 1; background: var(--schiuma); border-radius: var(--radius-m); overflow: hidden; cursor: zoom-in; }
.product-zoom img { width: 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: multiply; transition: transform .2s ease; transform-origin: var(--zx, 50%) var(--zy, 50%); }
.product-zoom.zooming img { transform: scale(1.9); }
.zoom-hint { position: absolute; right: .8rem; bottom: .8rem; background: rgba(255, 255, 255, .9); padding: .25rem .6rem; border-radius: 999px; font-size: var(--step--1); color: var(--muted); }
.product-thumbs { display: flex; gap: .6rem; flex-wrap: wrap; }
.product-thumbs button { width: 78px; height: 78px; padding: 4px; border: 2px solid transparent; border-radius: 10px; background: var(--schiuma); cursor: pointer; }
.product-thumbs button.active { border-color: var(--blu); }
.product-thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-brand { margin: 0; color: var(--blu); font-family: var(--font-accent); font-style: italic; font-size: var(--step-1); }
.product-title { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.3rem); font-weight: 500; line-height: 1.25; margin: .3rem 0 .6rem; }
.product-sku { margin: 0; color: var(--muted); font-size: var(--step--1); }
.promo-line { position: relative; margin: 1rem 0 0; display: flex; align-items: center; gap: .55rem; }
.promo-info { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #6b7a89; background: #fff; color: #4b5a69; font: italic 700 14px Georgia, "Times New Roman", serif; cursor: pointer; display: grid; place-items: center; padding: 0; }
.promo-info:hover, .promo-info[aria-expanded="true"] { border-color: var(--abisso); color: var(--abisso); }
/* Riquadro informativo dell'offerta (stile Amazon) */
.promo-tip { position: absolute; top: calc(100% + 12px); left: 0; z-index: 40; width: min(380px, calc(100vw - 2rem));
    background: #fff; border: 1px solid #c9d3dd; border-radius: 12px; padding: 1rem 2.8rem 1rem 1.1rem;
    box-shadow: 0 12px 32px -10px rgba(11, 45, 74, .35); }
.promo-tip::before { content: ""; position: absolute; top: -8px; left: var(--arrow, 40px); width: 14px; height: 14px; background: #fff;
    border-left: 1px solid #c9d3dd; border-top: 1px solid #c9d3dd; transform: rotate(45deg); }
.promo-tip.above { top: auto; bottom: calc(100% + 12px); }
.promo-tip.above::before { top: auto; bottom: -8px; transform: rotate(225deg); }
.promo-tip-title { margin: 0 0 .35rem; font-weight: 700; color: var(--abisso); }
.promo-tip-text { margin: 0; font-size: var(--step--1); color: var(--testo); line-height: 1.55; }
.promo-tip-left { margin: .5rem 0 0; font-size: var(--step--1); font-weight: 700; color: var(--rosso); }
.promo-tip-close { position: absolute; top: .35rem; right: .35rem; width: 36px; height: 36px; border: 0; background: none; font-size: 24px; line-height: 1; color: var(--abisso); cursor: pointer; border-radius: 50%; }
.promo-tip-close:hover { background: var(--schiuma); }
.promo-badge-inline { position: static; display: inline-block; }
.product-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .8rem; margin: 1.2rem 0 .4rem; }
.product-price .price-now { font-size: var(--step-3); font-weight: 700; color: var(--abisso); }
.product-price .price-old { font-size: var(--step-0); }
.price-discount { background: var(--rosso); color: #fff; font-weight: 700; font-size: var(--step--1); padding: .15rem .5rem; border-radius: 4px; }
.price-vat { width: 100%; color: var(--muted); font-size: var(--step--1); }
.product-info .stock { font-size: var(--step-0); font-weight: 700; margin: .4rem 0 1rem; }
.product-short { margin-bottom: 1.2rem; }
.buy-box { display: flex; flex-wrap: wrap; gap: .8rem; align-items: stretch; margin: 1.4rem 0; padding: 1.2rem; border: 1px solid var(--linea); border-radius: var(--radius-m); background: #fff; }
.btn-buy { flex: 1 1 220px; }
.qty { display: inline-grid; grid-template-columns: 44px 56px 44px; align-items: stretch; border: 1.5px solid #c7d6e3; border-radius: 999px; overflow: hidden; height: 52px; background: #fff; }
.qty button { border: 0; background: none; font-size: 22px; color: var(--abisso); cursor: pointer; }
.qty button:hover { background: var(--schiuma); }
.qty input { border: 0; text-align: center; font: inherit; font-weight: 700; width: 100%; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.product-service { display: grid; gap: .8rem; margin: 0; }
.product-service div { border-top: 1px solid var(--linea); padding-top: .8rem; }
.product-service dt { font-weight: 700; color: var(--abisso); font-size: var(--step--1); }
.product-service .service-hazard dt { color: #8a4b00; }
.notice-info { background: #fff3dc; color: #5c3a00; }
.notice-info a { font-weight: 700; color: inherit; }
.product-service dd { margin: .2rem 0 0; font-size: var(--step--1); color: var(--muted); }

/* Spesso comprati insieme */
.fbt { margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); padding: clamp(1.2rem, 1rem + 1.5vw, 2rem); border: 1px solid var(--linea); border-radius: var(--radius-m); }
.fbt-form { display: grid; gap: 1.5rem; align-items: center; }
.fbt-items { display: flex; flex-wrap: wrap; align-items: stretch; gap: .8rem; }
.fbt-item { position: relative; flex: 1 1 180px; max-width: 240px; display: flex; flex-direction: column; gap: .4rem; transition: opacity .2s ease; }
.fbt-item.is-off { opacity: .45; }
.fbt-check { position: absolute; top: .5rem; right: .5rem; z-index: 2; }
.fbt-check input { width: 24px; height: 24px; accent-color: var(--blu); cursor: pointer; }
.fbt-media { aspect-ratio: 1; background: var(--schiuma); border-radius: 12px; overflow: hidden; display: grid; place-items: center; }
.fbt-media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.fbt-name { margin: 0; font-size: var(--step--1); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fbt-price { margin: 0; display: flex; gap: .5rem; align-items: baseline; }
.fbt-price .price-now { font-size: var(--step-0); }
.fbt-qty { display: flex; align-items: center; gap: .5rem; font-size: var(--step--1); color: var(--muted); }
.fbt-qty input { width: 64px; min-height: 38px; border: 1.5px solid #c7d6e3; border-radius: 8px; text-align: center; font: inherit; }
.fbt-plus { align-self: center; font-size: 28px; color: var(--muted); padding-bottom: 3rem; }
.fbt-summary { display: grid; gap: .8rem; justify-items: start; }
.fbt-total { margin: 0; font-size: var(--step-1); }
.fbt-total strong { color: var(--abisso); }
.fbt-note { margin: 0; font-size: var(--step--1); color: var(--muted); min-height: 1.2em; }

/* Dettagli */
.product-details { display: grid; gap: 2.5rem; margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.specs { margin: 0; display: grid; border-top: 1px solid var(--linea); }
.specs div { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--linea); font-size: var(--step--1); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 700; color: var(--abisso); }
.safety { margin-top: 1.5rem; padding: 1rem 1.2rem; border-left: 3px solid #d68a00; background: #fff8ea; border-radius: 0 10px 10px 0; }
.safety h3 { font-size: var(--step-0); margin-bottom: .4rem; }

/* Correlati: binario scorrevole */
.related { margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.product-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 24%); gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .8rem; scrollbar-width: thin; }
.product-rail > * { scroll-snap-align: start; }

/* Notifica aggiunta al carrello */
.toast { position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%); z-index: 70; width: min(440px, calc(100vw - 2rem));
    background: var(--abisso); color: #fff; border-radius: var(--radius-m); padding: 1rem 3rem 1rem 1.2rem; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .45);
    display: grid; gap: .5rem; justify-items: start; }
.toast[hidden] { display: none; }
.toast-text { margin: 0; font-weight: 700; }
.toast-sub { margin: 0; font-size: var(--step--1); color: #c3d6e6; }
.toast-close { position: absolute; top: .4rem; right: .5rem; width: 40px; height: 40px; border: 0; background: none; color: #fff; font-size: 24px; cursor: pointer; }
.toast.is-error { background: #7d1324; }

/* Carrello */
.cart-section { padding-block: 2rem var(--section); }
.cart-section > .wrap > .notice { margin-bottom: 1rem; }
.cart-layout { display: grid; gap: 2rem; align-items: start; }
.cart-lines { display: grid; border-top: 1px solid var(--linea); }
.cart-line { display: grid; grid-template-columns: 88px 1fr auto; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--linea); align-items: start; }
.cart-media { width: 88px; height: 88px; background: var(--schiuma); border-radius: 10px; display: grid; place-items: center; overflow: hidden; }
.cart-media img { width: 100%; height: 100%; object-fit: contain; padding: 6px; mix-blend-mode: multiply; }
.cart-name { font-weight: 700; color: var(--abisso); text-decoration: none; line-height: 1.35; }
.cart-name:hover { text-decoration: underline; }
.cart-unit { margin: .3rem 0 .6rem; font-size: var(--step--1); color: var(--muted); display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.cart-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.cart-actions form { margin: 0; }
.cart-actions .qty { height: 44px; grid-template-columns: 40px 48px 40px; }
.cart-line-total { margin: 0; font-weight: 700; color: var(--abisso); white-space: nowrap; }
.cart-summary { background: var(--schiuma); border-radius: var(--radius-m); padding: 1.5rem; display: grid; gap: 1rem; }
.cart-summary dl { margin: 0; display: grid; gap: .6rem; }
.cart-summary dl div { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--step--1); }
.cart-summary dd { margin: 0; font-weight: 700; }
.cart-savings dd { color: var(--verde); }
.cart-total { border-top: 1px solid var(--linea); padding-top: .8rem; font-size: var(--step-1) !important; }
.cart-total dd { color: var(--abisso); }
.cart-vat { margin: 0; font-size: var(--step--1); color: var(--muted); }
.cart-summary .text-link { justify-self: center; font-size: var(--step--1); }
.cart-count[data-zero="1"] { display: none; }
.cart-contact { margin: 0; padding: .9rem 1rem; border-radius: 10px; background: #fff; font-size: var(--step--1); }
.cart-contact a { font-weight: 700; }

@media (min-width: 960px) {
    .shop-layout { grid-template-columns: 250px 1fr; align-items: start; }
    .filters { position: sticky; top: 130px; }
    .product-grid-shop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .product-main { grid-template-columns: 1fr 1fr; }
    .product-details { grid-template-columns: 1.4fr 1fr; align-items: start; }
    .fbt-form { grid-template-columns: 1fr auto; }
    .fbt-summary { min-width: 240px; }
    .cart-layout { grid-template-columns: 1fr 340px; }
    .cart-summary { position: sticky; top: 130px; }
}
@media (max-width: 959px) {
    .filters { position: fixed; inset: 0 0 0 auto; z-index: 80; width: min(360px, 92vw); background: #fff; padding: 1.2rem; overflow-y: auto;
        transform: translateX(105%); transition: transform .25s ease; box-shadow: -20px 0 40px -20px rgba(11, 45, 74, .5); }
    .filters.open { transform: none; }
    .filters-close, .filters-open { display: inline-grid; place-items: center; }
    .product-rail { grid-auto-columns: 46%; }
}
@media (max-width: 560px) {
    .product-rail { grid-auto-columns: 70%; }
    .fbt-plus { display: none; }
    .fbt-item { flex: 0 0 calc(50% - .4rem); max-width: calc(50% - .4rem); }
    .cart-line { grid-template-columns: 72px 1fr; }
    .cart-media { width: 72px; height: 72px; }
    .cart-line-total { grid-column: 2; }
    .sort-label { display: none; }
}

/* Checkout */
.checkout-section, .order-section, .account-section { padding-block: 2rem var(--section); }
.checkout-section > .wrap > .notice { margin-bottom: 1rem; }
.checkout-login { margin: 0 0 1.5rem; font-size: var(--step--1); color: var(--muted); }
.checkout-login a { font-weight: 700; }
.checkout-layout { display: grid; gap: 2rem; align-items: start; }
.checkout-layout[aria-busy="true"] .checkout-summary dl { opacity: .55; transition: opacity .15s; }
.checkout-main { display: grid; gap: 1.6rem; }
.checkout-step { border: 0; margin: 0; padding: 0 0 1.6rem; display: grid; gap: 1rem; border-bottom: 1px solid var(--linea); min-width: 0; }
.checkout-step legend { font-size: var(--step-1); font-weight: 700; color: var(--abisso); padding: 0; margin-bottom: 1rem; display: flex; align-items: center; gap: .7rem; }
.step-n { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--abisso); color: #fff; font-size: var(--step--1); }
.field-help { margin: -.4rem 0 0; font-size: var(--step--1); color: var(--muted); }
.field > span small { font-weight: 400; color: var(--muted); }
.upper { text-transform: uppercase; }
.company-fields, .private-fields, .ship-fields { display: grid; gap: 1rem; }
.company-fields { padding: 1rem; border-radius: 12px; background: var(--schiuma); }
.segmented { display: inline-flex; flex-wrap: wrap; gap: .4rem; padding: .3rem; border-radius: 12px; background: var(--schiuma); justify-self: start; }
.segmented label { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .9rem; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: var(--step--1); color: var(--abisso); }
.segmented label:has(input:checked) { background: #fff; box-shadow: 0 1px 0 var(--linea), 0 4px 12px -6px rgba(11, 45, 74, .35); }
.segmented input { accent-color: var(--blu); }
.choice-list { display: grid; gap: .6rem; }
.choice { display: grid; grid-template-columns: 22px 1fr auto; gap: .8rem; align-items: center; padding: .9rem 1rem; border: 1.5px solid #c7d6e3; border-radius: 12px; cursor: pointer; background: #fff; }
.choice:has(input:checked) { border-color: var(--blu); box-shadow: 0 0 0 3px rgba(47, 114, 184, .14); }
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--blu); }
.choice-body { display: grid; gap: .15rem; }
.choice-body strong { color: var(--abisso); }
.choice-body small { color: var(--muted); font-size: var(--step--1); }
.choice-price { font-weight: 700; color: var(--abisso); white-space: nowrap; }
.check-inline { color: var(--testo); font-size: var(--step-0); align-items: center; }
.check-inline input { margin: 0; }
.checkout-account { display: grid; gap: .8rem; }
.checkout-summary { background: var(--schiuma); border-radius: var(--radius-m); padding: 1.5rem; display: grid; gap: 1rem; }
.summary-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.summary-lines li { display: grid; grid-template-columns: 56px 1fr auto; gap: .8rem; align-items: center; font-size: var(--step--1); }
.summary-media { position: relative; width: 56px; height: 56px; border-radius: 10px; background: #fff; display: grid; place-items: center; }
.summary-media img { width: 100%; height: 100%; object-fit: contain; padding: 4px; border-radius: 10px; }
.summary-qty { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--abisso); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.summary-name { color: var(--abisso); font-weight: 600; line-height: 1.35; display: grid; gap: .15rem; }
.summary-name a { color: inherit; }
.summary-price { font-weight: 700; white-space: nowrap; }
.summary-edit { font-size: var(--step--1); justify-self: start; }
.coupon-box { border-block: 1px solid var(--linea); padding-block: 1rem; display: grid; gap: .4rem; }
.coupon-row { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
.coupon-row .btn { min-height: 50px; }
.coupon-applied { margin: 0; display: flex; justify-content: space-between; gap: 1rem; align-items: center; font-size: var(--step--1); color: var(--verde); }
.coupon-msg { margin: 0; font-size: var(--step--1); color: var(--verde); min-height: 1.2em; }
.coupon-msg.is-error { color: var(--rosso); }
.summary-totals { margin: 0; display: grid; gap: .6rem; }
.summary-totals div { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--step--1); }
.summary-totals dd { margin: 0; font-weight: 700; }
.summary-totals [data-sum-discount-row] dd { color: var(--verde); }
.summary-total { border-top: 1px solid var(--linea); padding-top: .8rem; font-size: var(--step-1) !important; color: var(--abisso); }
.checkout-safe { margin: 0; font-size: var(--step--1); color: var(--muted); text-align: center; }
[data-place-order][aria-disabled="true"] { opacity: .7; pointer-events: none; }

/* Pagina ordine */
.order-lead { margin: .6rem 0 0; color: var(--muted); }
.order-layout { display: grid; gap: 2rem; align-items: start; }
.order-main { display: grid; gap: 1.4rem; }
.order-main > .block-title { margin: .6rem 0 0; }
.order-status { display: grid; gap: 1rem; padding: 1.2rem; border-radius: var(--radius-m); background: var(--schiuma); }
.order-status div { display: grid; gap: .2rem; }
.order-status .muted { font-size: var(--step--1); color: var(--muted); }
.status-pill { display: inline-block; justify-self: start; padding: .25rem .7rem; border-radius: 999px; font-size: var(--step--1); font-weight: 700; background: #e7f0f8; color: var(--abisso); }
.status-processing, .status-shipped { background: #e4f4ea; color: #145a31; }
.status-completed { background: #dfeaf6; color: var(--abisso); }
.status-on_hold, .status-pending { background: #fff3dc; color: #7a4b00; }
.status-cancelled, .status-failed, .status-refunded { background: #fbe9ec; color: #8a1426; }
.bank-box, .tracking-box, .order-notes { padding: 1.2rem; border: 1.5px solid var(--blu); border-radius: var(--radius-m); }
.bank-box .block-title, .tracking-box .block-title, .order-notes .block-title { margin-bottom: .8rem; font-size: var(--step-1); }
.bank-box .muted { margin: .8rem 0 0; font-size: var(--step--1); color: var(--muted); }
.iban { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .04em; word-break: break-all; }
.order-side { display: grid; gap: 1rem; }
.order-card { padding: 1.1rem 1.2rem; border: 1px solid var(--linea); border-radius: var(--radius-m); font-size: var(--step--1); }
.order-card h2 { font-size: var(--step-0); margin-bottom: .5rem; }
.order-card p { margin: 0 0 .5rem; }

/* Area clienti */
.account-narrow { max-width: 600px; display: grid; gap: 1.5rem; }
.account-narrow.has-alt { max-width: 960px; }
.account-card { display: grid; gap: 1rem; padding: clamp(1.3rem, 1rem + 1.5vw, 2rem); border: 1px solid var(--linea); border-radius: var(--radius-m); background: #fff; align-content: start; }
.account-card p { margin: 0; }
.account-links { font-size: var(--step--1); text-align: center; }
.account-alt { display: grid; gap: .8rem; justify-items: start; align-content: start; padding: clamp(1.3rem, 1rem + 1.5vw, 2rem); border-radius: var(--radius-m); background: var(--schiuma); }
.account-alt h2 { font-size: var(--step-1); }
.account-alt p { margin: 0; color: var(--muted); }
.account-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--linea); }
.account-bar p { margin: 0; }
.account-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; font-weight: 600; }
.account-nav a { color: var(--abisso); text-decoration: none; padding-bottom: .2rem; border-bottom: 2px solid transparent; }
.account-nav a[aria-current="page"] { border-color: var(--blu); }
.account-nav form { margin: 0; }
.account-grid { display: grid; gap: 1.5rem; align-items: start; }
.account-section > .wrap > .notice, .account-narrow > .notice { margin-bottom: 1rem; }
.table-scroll { overflow-x: auto; }
.orders-table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.orders-table th { text-align: left; color: var(--muted); font-weight: 600; padding: .6rem .8rem; border-bottom: 1px solid var(--linea); }
.orders-table td { padding: .9rem .8rem; border-bottom: 1px solid var(--linea); white-space: nowrap; }

@media (min-width: 700px) {
    .form-row-3 { grid-template-columns: 1fr 1.6fr 1.4fr; }
    .order-status { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .account-narrow.has-alt { grid-template-columns: 1.2fr 1fr; align-items: start; }
    .account-narrow.has-alt > .notice { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
    .checkout-layout { grid-template-columns: 1fr 380px; }
    .checkout-summary { position: sticky; top: 130px; }
    .order-layout { grid-template-columns: 1fr 320px; }
    .account-grid { grid-template-columns: 1.5fr 1fr; }
}

/* --- Responsive --- */
@media (max-width: 699px) {
    /* Su smartphone: carosello orizzontale con tutte le foto */
    .gallery { grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .4rem; scrollbar-width: thin; }
    .gallery li { scroll-snap-align: start; aspect-ratio: 4 / 3; }
    .gallery-more { display: none; }
}
@media (min-width: 700px) {
    .gallery { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, clamp(170px, 17vw, 260px)); }
    .gallery li:first-child { grid-row: span 2; }
    .gallery-extra { display: none; }
}
@media (min-width: 700px) {
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .form-row { grid-template-columns: 1fr 1fr; }
    .category-list { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
    .about-grid { grid-template-columns: 1.15fr .85fr; }
    .service { grid-template-columns: 1fr 1fr; }
    .service-reverse .service-media { order: 2; }
    .contact-grid { grid-template-columns: .9fr 1.1fr; }
    .partners-inner { grid-template-columns: 280px 1fr; }
    .partner-logos { justify-content: space-between; }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
@media (min-width: 1100px) {
    .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
    .header-cta { display: none; }
}
@media (max-width: 960px) {
    .nav-toggle { display: grid; place-items: center; }
    .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--linea); display: none; margin: 0; box-shadow: 0 18px 30px -18px rgba(11, 45, 74, .35); }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; padding: .6rem var(--gutter) 1.2rem; gap: 0; }
    .main-nav a { padding: .9rem .4rem; font-size: var(--step-1); border-bottom: 1px solid var(--schiuma); border-radius: 0; }
    .header-actions { margin-left: auto; }
    .mainbar-inner { position: relative; min-height: 66px; }
    .brand img { height: 56px; }
}
@media (max-width: 640px) {
    .topbar-area { display: none; }
    .topbar-inner { justify-content: center; }
    .hero { min-height: 78vh; }
    .hero-inner { padding-block: 5.5rem 4.8rem; }
    .hero-title { font-size: clamp(1.85rem, 1.1rem + 3.6vw, 2.35rem); }
    .hero-lead { font-size: 1.05rem; margin-top: 1rem; }
    .hero-actions { margin-top: 1.5rem; gap: .6rem; }
    .btn { font-size: .95rem; padding: 0 1.1rem; min-height: 50px; }
    .whatsapp-btn { width: 58px; height: 58px; padding: 0; justify-content: center; }
    .whatsapp-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .hero-media img { object-position: 72% 50%; }
    .hero::before { background: linear-gradient(0deg, rgba(8, 34, 58, .85) 0%, rgba(8, 34, 58, .35) 70%, rgba(8, 34, 58, .15) 100%); }
    .hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .bubbles { display: none; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
