/* ============================================================
   DueGi Service - Clone statico
   style.css
   Organizzazione:
   1. Reset & base
   2. Variabili (palette, spacing, font)
   3. Utility (container, bottoni, sezioni)
   4. Top bar
   5. Header / Nav
   6. Hero
   7. Servizi
   8. Prodotti
   9. CTA band
   10. Marchi
   11. Contatti + Form
   12. Footer
   13. Reveal animations
   14. Responsive
   ============================================================ */

/* ---------------- 1. RESET & BASE ---------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: var(--c-text);
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

h1, h2, h3, h4 {
    margin: 0 0 .6em;
    font-family: 'Mulish', 'Open Sans', sans-serif;
    font-weight: 600;
    line-height: 1.25;
    color: var(--c-dark);
}

p { margin: 0 0 1em; }

/* ---------------- 2. VARIABILI ---------------- */
:root {
    /* Palette */
    --c-primary: #1fb0e3;          /* ciano bottoni / banda */
    --c-primary-dark: #178bb5;
    --c-accent-green: #2bb573;      /* verde Vorwerk / box */
    --c-warning: #f28b1e;           /* arancio CTA */
    --c-red: #c62828;               /* logo */
    --c-navy: #1a237e;              /* logo */
    --c-text: #8e9dae;       /* grigio-azzurro freddo, come sito originale */
    --c-dark: #3c424f;        /* blu-grigio scuro per headings */
    --c-muted: #7f8fa6;
    --c-bg-alt: #f7f9fb;
    --c-topbar: #1f1f1f;
    --c-border: #e4e9f0;

    /* Spacing */
    --gap-xs: .5rem;
    --gap-sm: 1rem;
    --gap-md: 1.5rem;
    --gap-lg: 2.5rem;
    --section-py: clamp(60px, 8vw, 100px);

    /* Layout */
    --container: 1200px;

    /* Radius */
    --radius-pill: 30px;
    --radius-md: 10px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,.08);
}

/* ---------------- 3. UTILITY ---------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* Titolo sezione centrato */
.section-title {
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    text-align: center;
    margin-bottom: var(--gap-lg);
    font-weight: 600;
}
.section-title--left { text-align: left; }

/* Bottoni */
.btn {
    display: inline-block;
    padding: 10px 26px;
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: .03em;
    text-transform: uppercase;
    border-radius: 50px;
    border: 2px solid transparent;
    transition: all .25s ease;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.2;
}
.btn--primary {
    background: var(--c-primary);
    color: #fff;
}
.btn--primary:hover {
    background: var(--c-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn--ghost {
    background: transparent;
    color: #fff;
    border-color: #fff;
}
.btn--ghost:hover {
    background: #fff;
    color: var(--c-primary);
}
.btn--outline {
    background: transparent;
    color: var(--c-primary);
    border-color: var(--c-primary);
}
.btn--outline:hover {
    background: var(--c-primary);
    color: #fff;
}
.btn--warning {
    background: var(--c-warning);
    color: #fff;
}
.btn--warning:hover {
    background: #d87615;
    transform: translateY(-2px);
}
.btn--block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Icone inline */
.icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    vertical-align: -3px;
    margin-right: 6px;
    flex-shrink: 0;
}

/* ---------------- 4. TOP BAR ---------------- */
.topbar {
    background: var(--c-topbar);
    color: #d9d9d9;
    font-size: .82rem;
    padding: 10px 0;
}
.topbar__inner {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-md);
    align-items: center;
}
.topbar__item {
    display: inline-flex;
    align-items: center;
}
.topbar__item a:hover { color: #fff; }

/* ---------------- 5. HEADER / NAV ---------------- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    transition: box-shadow .25s ease, padding .25s ease;
}
.header.is-scrolled {
    box-shadow: var(--shadow-sm);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
}
.header__logo {
    display: inline-flex;
    align-items: center;
}
.logo-svg {
    width: 62px;
    height: auto;
}
.logo-img {
    width: 64px;
    height: 64px;
    display: block;
}

.header__nav > ul {
    display: flex;
    gap: var(--gap-lg);
    list-style: none;
    margin: 0;
    padding: 0;
}
.header__nav a {
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: .08em;
    color: var(--c-dark);
    padding: 6px 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.header__nav a:hover,
.header__nav a.is-active {
    color: var(--c-primary);
}
.header__nav a.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--c-primary);
}
.caret {
    font-size: .7rem;
    margin-left: 2px;
}

/* Submenu */
.has-submenu {
    position: relative;
}
.submenu {
    position: absolute;
    top: 100%;
    left: -16px;
    background: #fff;
    min-width: 200px;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    box-shadow: var(--shadow-md);
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .2s ease;
}
.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.submenu li a {
    display: block;
    padding: 10px 18px;
    font-size: .8rem;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 500;
}
.submenu li a:hover {
    background: var(--c-bg-alt);
}

/* Toggle mobile */
.header__toggle {
    display: none;
    width: 34px;
    height: 34px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}
.header__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--c-dark);
    transition: transform .25s, opacity .25s;
    margin: 0 auto;
}
.header__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__toggle.is-open span:nth-child(2) { opacity: 0; }
.header__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- 6. HERO ---------------- */
.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    padding: 80px 0 120px;
}
.hero__bg {
    position: absolute;
    inset: 0;
    background: url('images/IMG_20180427_115501-scaled.jpg') center/cover no-repeat;
    filter: brightness(.65);
    z-index: 0;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.45) 100%);
    z-index: 1;
}
.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
}
.hero__title {
    font-family: 'Mulish', 'Open Sans', sans-serif;
    font-size: clamp(2.4rem, 6vw, 3.5rem);
    font-weight: 300;
    color: #fff;
    line-height: 1.14;
    margin-bottom: 40px;
    letter-spacing: .3px;
}
.hero__actions {
    display: flex;
    gap: var(--gap-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Strappo inferiore */
.hero__wave {
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    width: 100%;
    height: 60px;
    z-index: 2;
    display: block;
}

/* ---------------- 7. SERVIZI ---------------- */
.services {
    padding: var(--section-py) 0;
    background: #fff;
}
.services__grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(30px, 5vw, 80px);
    align-items: center;
}
.services__text {
    text-align: right;
    padding-right: 20px;
}
.services__text h2 {
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: var(--gap-md);
    color: var(--c-dark);
    max-width: 460px;
    margin-left: auto;
}
.services__text .accent {
    font-weight: 600;
    color: var(--c-dark);
}
.services__brand-inline {
    display: inline-block;
    vertical-align: middle;
    max-width: 180px;
    height: auto;
    margin: 6px 0;
}
.services__text p {
    color: var(--c-text);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 var(--gap-lg) auto;
    max-width: 460px;
    text-align: right;
}
.services__cta {
    display: flex;
    gap: var(--gap-sm);
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Mobile: tutto centrato */
@media (max-width: 960px) {
    .services__text { text-align: center; padding-right: 0; }
    .services__text h2, .services__text p { margin-left: auto; margin-right: auto; text-align: center; max-width: none; }
    .services__cta { justify-content: center; }
}

/* Immagine con "accento" verde dietro — il verde sporge in alto e a destra */
.services__media {
    position: relative;
    padding: 50px 50px 0 0;  /* spazio per far sporgere il box verde */
}
.services__media::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: calc(100% - 80px);
    height: calc(100% - 80px);
    background: var(--c-accent-green);
    z-index: 0;
}
.services__media-frame {
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
}
.services__media-frame img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 960px) {
    .services__media { padding: 30px 30px 0 0; }
    .services__media::before { width: calc(100% - 50px); height: calc(100% - 50px); }
}

/* ---------------- 8. PRODOTTI ---------------- */
.products {
    padding: 40px 0 var(--section-py);
    background: #fff;
}
.products__row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-md);
    align-items: center;
}
.product-card {
    margin: 0;
    text-align: center;
}
.product-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-md);
}
.product-card figcaption {
    margin-top: 10px;
    font-size: .85rem;
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
}
.product-card--badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    padding: 10px;
}
.product-card--badge img {
    aspect-ratio: auto !important;
    object-fit: contain !important;
    background: none;
}
.badge {
    color: var(--c-accent-green);
    font-weight: 700;
    font-size: 1.3rem;
    text-align: center;
    letter-spacing: .05em;
    line-height: 1.2;
}

/* ---------------- 9. CTA BAND ---------------- */
.cta-band {
    background: var(--c-primary);
    color: #fff;
    padding: 50px 0;
}
.cta-band__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap-lg);
    flex-wrap: wrap;
}
.cta-band__title {
    color: #fff;
    font-size: clamp(1.3rem, 2.4vw, 1.9rem);
    font-weight: 400;
    margin: 0;
    line-height: 1.35;
    flex: 1 1 500px;
}

/* ---------------- 10. MARCHI ---------------- */
.brands {
    padding: var(--section-py) 0;
    background: var(--c-bg-alt);
}
.brands__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-md);
}
.brand {
    background: #fff;
    border-radius: var(--radius-md);
    aspect-ratio: 3 / 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}
.brand:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.brand__logo {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--c-dark);
    text-align: center;
    line-height: 1.1;
    letter-spacing: .02em;
}
.brand__logo small {
    font-size: .65rem;
    letter-spacing: .15em;
    color: var(--c-muted);
    display: block;
    margin-top: 2px;
}
/* Immagine logo marchio: max-height controllata per uniformare la griglia */
.brand img {
    max-width: 85%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(.15);
    transition: filter .25s ease;
}
.brand:hover img { filter: grayscale(0); }
/* Mini-caratterizzazione loghi */
.brand--whirlpool { color: #0a2e5c; font-style: italic; }
.brand--vorwerk   { color: var(--c-accent-green); letter-spacing: .1em; }
.brand--hotpoint  { color: #fff; background: #111; padding: 8px 14px; border-radius: 4px; }
.brand--indesit   { color: #d32027; font-style: italic; }
.brand--bosch     { color: #e2001a; letter-spacing: .15em; }
.brand--siemens   { color: #00a0e9; letter-spacing: .15em; }
.brand--candy     { color: #e40521; }
.brand--smeg      { color: #262626; letter-spacing: .2em; }
.brand--electrolux{ color: #0072ce; }
.brand--rex       { color: #e3001b; letter-spacing: .1em; }
.brand--ariete    { color: #e30613; font-style: italic; }
.brand--delonghi  { color: #111; }

/* ---------------- 11. CONTATTI + FORM ---------------- */
.contacts {
    padding: var(--section-py) 0;
    background: #fff;
}
.contacts__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-lg);
}

.contacts__block {
    margin-bottom: var(--gap-lg);
}
.contacts__block h3 {
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--gap-sm);
}
.contacts__line {
    margin: 6px 0;
    display: flex;
    align-items: center;
}
.contacts__line a:hover { color: var(--c-primary); }

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--c-primary);
    display: inline-block;
}
.dot--alt { background: var(--c-accent-green); }

/* Tabella orari */
.hours {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}
.hours td {
    padding: 8px 6px;
    border-bottom: 1px solid var(--c-border);
}
.hours td:first-child {
    font-weight: 600;
    color: var(--c-dark);
    width: 100px;
}

/* Form */
.contacts__form {
    background: var(--c-bg-alt);
    padding: 36px 32px;
    border-radius: var(--radius-md);
}
.contacts__form h3 {
    margin-bottom: var(--gap-md);
}
.field {
    margin-bottom: var(--gap-sm);
}
.field label {
    display: block;
    font-size: .82rem;
    font-weight: 500;
    color: var(--c-dark);
    margin-bottom: 6px;
}
.field input,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    font-size: .95rem;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 6px;
    color: var(--c-dark);
    transition: border-color .2s, box-shadow .2s;
}
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(31,176,227,.15);
}
.field textarea {
    resize: vertical;
    min-height: 120px;
}
.field--hp {
    position: absolute;
    left: -9999px;
}

.form-feedback {
    margin-top: var(--gap-sm);
    font-size: .9rem;
    min-height: 1.2em;
}
.form-feedback.is-success { color: var(--c-accent-green); }
.form-feedback.is-error   { color: #d32027; }

/* ---------------- 11bis. SUB-PAGE HERO (sottopagine) ---------------- */
.page-hero {
    position: relative;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
    padding: 80px 20px 60px;
    background: linear-gradient(135deg, #1a237e 0%, #1fb0e3 100%);
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('images/cropped-IMG_20180427_115501-scaled-1.jpg') center/cover no-repeat;
    opacity: .28;
    z-index: 0;
}
.page-hero__content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}
.page-hero__title {
    color: #fff;
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 10px;
}
.page-hero__breadcrumb {
    font-size: .85rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .85;
}
.page-hero__breadcrumb a { color: #fff; }
.page-hero__breadcrumb a:hover { text-decoration: underline; }

/* Contenitore generico per contenuto sottopagine */
.page-content {
    padding: var(--section-py) 0;
}
.page-content .container { max-width: 980px; }
.page-content h2 {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    margin-top: var(--gap-lg);
    margin-bottom: var(--gap-sm);
    color: var(--c-dark);
    border-bottom: 2px solid var(--c-primary);
    padding-bottom: 8px;
    display: inline-block;
}
.page-content h3 {
    font-size: 1.15rem;
    margin-top: var(--gap-lg);
    color: var(--c-navy);
}
.page-content p { color: var(--c-text); }
.page-content ul {
    padding-left: 1.2rem;
    color: var(--c-text);
}
.page-content ul li { margin-bottom: 6px; }

/* Card prodotto / consiglio */
.info-card {
    background: var(--c-bg-alt);
    border-left: 4px solid var(--c-primary);
    padding: 20px 24px;
    margin: var(--gap-md) 0;
    border-radius: 6px;
}
.info-card h3 {
    margin-top: 0;
    color: var(--c-dark);
}

/* Griglia categorie prodotti */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--gap-md);
    margin-top: var(--gap-lg);
}
.category-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: 24px 22px;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--c-primary);
}
.category-card h3 {
    margin: 0 0 var(--gap-sm);
    font-size: 1.1rem;
    color: var(--c-primary);
    text-transform: uppercase;
    letter-spacing: .05em;
    border: none;
}
.category-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.category-card li {
    padding: 6px 0;
    border-bottom: 1px dashed var(--c-border);
    font-size: .9rem;
}
.category-card li:last-child { border-bottom: none; }

/* Griglia prodotti interna a una category-card (con thumbnail) */
.product-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
    margin-top: 14px;
}
.product-item {
    text-align: center;
    font-size: .82rem;
    color: var(--c-text);
    line-height: 1.3;
}
.product-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 6px;
    background: var(--c-bg-alt);
    transition: transform .25s;
}
.product-item:hover img { transform: scale(1.04); }

/* Blocco servizi con immagine affiancata */
.service-block {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: var(--gap-lg);
    align-items: center;
    padding: var(--gap-lg) 0;
    border-bottom: 1px solid var(--c-border);
}
.service-block:last-child { border-bottom: none; }
.service-block:nth-child(even) .service-block__media { order: 2; }
.service-block__media {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--c-bg-alt);
}
.service-block__media img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}
.service-block__body h3 {
    margin-top: 0;
    margin-bottom: var(--gap-sm);
    border: none;
    font-size: 1.5rem;
    color: var(--c-navy);
}

/* Layout mobile compatto */
@media (max-width: 720px) {
    .service-block,
    .service-block:nth-child(even) .service-block__media { display: block; }
    .service-block__media { margin-bottom: var(--gap-md); }
    .service-block__media img { height: 200px; }
}

/* Sedi card */
.locations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-lg);
    margin: var(--gap-lg) 0;
}
.location-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}
.location-card h3 {
    margin-top: 0;
    color: var(--c-primary);
    border: none;
    font-size: 1.3rem;
}
.location-card .hours { font-size: .85rem; }

/* Illustrazioni pagina Consigli */
.consiglio-illustration {
    display: block;
    max-width: 220px;
    width: 100%;
    height: auto;
    margin: var(--gap-sm) 0 var(--gap-md);
    float: right;
    margin-left: var(--gap-md);
}
@media (max-width: 720px) {
    .consiglio-illustration {
        float: none;
        margin: var(--gap-sm) auto var(--gap-md);
        max-width: 180px;
    }
}

/* Blog empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--c-muted);
}
.empty-state__icon {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: .3;
}

/* ---------------- 12. FOOTER ---------------- */
.footer {
    background: #1b2432;
    color: #b5bfd0;
    padding-top: 60px;
    font-size: .9rem;
}
.footer h4 {
    color: #fff;
    font-size: .95rem;
    margin-bottom: var(--gap-sm);
    letter-spacing: .05em;
    text-transform: uppercase;
}
.footer__inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: var(--gap-lg);
    padding-bottom: 50px;
}
.footer__brand p { margin-top: var(--gap-sm); color: #8b96a8; }
.footer__nav ul {
    list-style: none;
    padding: 0; margin: 0;
}
.footer__nav li { margin: 6px 0; }
.footer a:hover { color: #fff; }

.logo-svg--light { width: 60px; }

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 20px 0;
    font-size: .8rem;
    color: #6a7585;
}
.footer__bottom a { color: #8b96a8; }

/* ---------------- 13. REVEAL ANIMATIONS ---------------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Rispetta utenti con reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ---------------- 14. RESPONSIVE ---------------- */

/* Tablet */
@media (max-width: 960px) {
    .services__grid,
    .contacts__grid {
        grid-template-columns: 1fr;
    }
    .brands__grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .footer__inner {
        grid-template-columns: 1fr 1fr;
    }
    .topbar__inner { justify-content: center; text-align: center; }
}

/* Mobile */
@media (max-width: 720px) {
    .header__toggle { display: flex; }
    .header__nav {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: #fff;
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }
    .header__nav.is-open {
        max-height: 600px;
    }
    .header__nav > ul {
        flex-direction: column;
        gap: 0;
        padding: 12px 20px 20px;
    }
    .header__nav > ul > li {
        border-bottom: 1px solid var(--c-border);
    }
    .header__nav a {
        padding: 14px 0;
        width: 100%;
    }
    .header__nav a.is-active::after { display: none; }

    .submenu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 12px;
        display: none;
    }
    .has-submenu.is-open .submenu { display: block; }

    .hero {
        min-height: 420px;
        padding: 60px 0 100px;
    }
    .products__row {
        grid-template-columns: repeat(2, 1fr);
    }
    .brands__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .cta-band__inner { text-align: center; justify-content: center; }
    .contacts__form { padding: 26px 20px; }
    .topbar { font-size: .72rem; }
    .topbar__inner { gap: var(--gap-sm); }
    .locations { grid-template-columns: 1fr; }
    .service-block { grid-template-columns: 1fr; text-align: center; }
    .service-block__icon { margin: 0 auto; }
}

@media (max-width: 420px) {
    .brands__grid { grid-template-columns: repeat(2, 1fr); }
    .hero__actions { flex-direction: column; align-items: stretch; }
    .hero__actions .btn { text-align: center; }
}
