/*
 * Tema Atlanticami – pagine pubbliche
 * Stile «showroom notturno»: header e footer scuri con luce radiale,
 * contenuto su fondo avorio, titoli in Cinzel e testi in Inter.
 */

:root {
    --at-night-1: #2a3b52;
    --at-night-2: #121a26;
    --at-night-3: #0a0f17;
    --at-ivory: #efe9dc;
    --at-ivory-soft: rgba(239, 233, 220, .78);
    --at-ivory-faint: rgba(239, 233, 220, .14);
    --at-steel: #9fbad6;
    --at-blue: #3d6f9e;
    --at-blue-dark: #2c5479;
    --at-cta-1: #e9e2d0;
    --at-cta-2: #c9bd9f;
    --at-cta-ink: #141b26;
    --at-paper: #f6f2e9;
    --at-paper-2: #ece5d6;
    --at-line: #ddd3bf;
    --at-ink: #1d2430;
    --at-muted: #4f5866;
    --at-radius: 14px;
    --at-wrap: 1200px;
    --at-font-title: 'Cinzel', 'Times New Roman', serif;
    --at-font-text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --at-night-bg: radial-gradient(120% 90% at 75% 45%, var(--at-night-1) 0%, var(--at-night-2) 55%, var(--at-night-3) 100%);
}

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

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

body.at-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--at-font-text);
    font-size: 16px;
    line-height: 1.6;
    color: var(--at-ink);
    background: var(--at-paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a { color: var(--at-blue); text-underline-offset: 3px; }
a:hover { color: var(--at-blue-dark); }

:focus-visible { outline: 2px solid var(--at-steel); outline-offset: 3px; border-radius: 4px; }

.at-wrap {
    width: 100%;
    max-width: var(--at-wrap);
    margin: 0 auto;
    padding: 0 32px;
}

.at-skip {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--at-cta-1);
    color: var(--at-cta-ink);
    font-weight: 600;
    text-decoration: none;
    transition: top .2s;
}
.at-skip:focus { top: 12px; }

/* ---------- Header ---------- */
.at-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--at-ivory);
    background: var(--at-night-bg);
    background-color: var(--at-night-2);
    border-bottom: 1px solid rgba(201, 189, 159, .18);
    box-shadow: 0 10px 30px rgba(6, 10, 16, .25);
}

.at-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    min-height: 92px;
    padding-top: 14px;
    padding-bottom: 14px;
    font-size: 14px;
}

.at-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-right: auto;
    color: var(--at-ivory);
    text-decoration: none;
}
.at-brand:hover { color: #fff; }

.at-brand__logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .45));
    flex-shrink: 0;
}

.at-brand__name {
    font-family: var(--at-font-title);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: .12em;
    white-space: nowrap;
}

.at-nav__menu {
    display: flex;
    align-items: center;
    gap: 26px;
}

.at-nav__links,
.at-lang,
.at-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.at-nav__links {
    display: flex;
    align-items: center;
    gap: 26px;
}

.at-nav__links a {
    position: relative;
    display: inline-block;
    padding: 6px 0;
    color: var(--at-ivory);
    opacity: .85;
    font-weight: 500;
    letter-spacing: .02em;
    text-decoration: none;
    transition: opacity .2s;
}
.at-nav__links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--at-steel);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.at-nav__links a:hover,
.at-nav__links a:focus-visible { opacity: 1; color: #fff; }
.at-nav__links a:hover::after,
.at-nav__links a:focus-visible::after { transform: scaleX(1); }

.at-nav__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.at-lang {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-right: 6px;
    padding-right: 14px;
    border-right: 1px solid var(--at-ivory-faint);
}
.at-lang__item {
    display: inline-block;
    padding: 4px 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    color: var(--at-ivory-soft);
    text-decoration: none;
}
a.at-lang__item:hover { color: #fff; }
.at-lang__item.is-current { color: var(--at-steel); }

/* ---------- Pulsanti ---------- */
.at-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--at-font-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}

.at-btn--primary {
    color: var(--at-cta-ink);
    background: linear-gradient(180deg, var(--at-cta-1), var(--at-cta-2));
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.at-btn--primary:hover,
.at-btn--primary:focus-visible {
    color: var(--at-cta-ink);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .6);
}

.at-btn--ghost {
    color: var(--at-ivory);
    border-color: rgba(239, 233, 220, .35);
    background: transparent;
}
.at-btn--ghost:hover,
.at-btn--ghost:focus-visible {
    color: #fff;
    border-color: var(--at-ivory);
    background: rgba(255, 255, 255, .06);
}

/* Pulsante del menu mobile */
.at-nav__toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(239, 233, 220, .3);
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
    color: var(--at-ivory);
    cursor: pointer;
}
.at-nav__bars,
.at-nav__bars::before,
.at-nav__bars::after {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 2px;
    margin-left: -10px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .25s, opacity .2s;
}
.at-nav__bars { top: 50%; margin-top: -1px; }
.at-nav__bars::before,
.at-nav__bars::after { content: ""; left: 0; margin-left: 0; }
.at-nav__bars::before { top: -6px; }
.at-nav__bars::after { top: 6px; }
.at-header.is-open .at-nav__bars { background: transparent; }
.at-header.is-open .at-nav__bars::before { transform: translateY(6px) rotate(45deg); background: var(--at-ivory); }
.at-header.is-open .at-nav__bars::after { transform: translateY(-6px) rotate(-45deg); background: var(--at-ivory); }

/* ---------- Contenuto ---------- */
.at-main {
    flex: 1 0 auto;
    padding: 56px 0 72px;
    background:
        linear-gradient(180deg, rgba(236, 229, 214, .9) 0, rgba(246, 242, 233, 0) 220px),
        var(--at-paper);
}

.at-main h1,
.at-main h2,
.at-main h3 {
    font-family: var(--at-font-title);
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.2;
    color: var(--at-ink);
}

/* Griglia minima per le viste standard (al posto di Bootstrap 3) */
.at-main .container {
    width: 100%;
    max-width: var(--at-wrap);
    margin: 0 auto;
    padding: 0 32px;
}
.at-main .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}
.at-main .row > [class*="col-"] {
    width: 100%;
    padding: 0 12px;
}
@media (min-width: 768px) {
    .at-main .row > .col-sm-3 { width: 25%; }
    .at-main .row > .col-sm-4 { width: 33.3333%; }
    .at-main .row > .col-sm-6 { width: 50%; }
}
@media (min-width: 992px) {
    .at-main .row > .col-md-3 { width: 25%; }
    .at-main .row > .col-md-4 { width: 33.3333%; }
    .at-main .row > .col-md-6 { width: 50%; }
    .at-main .row > .col-md-8 { width: 66.6667%; }
    .at-main .row > .col-md-12 { width: 100%; }
}

/* Moduli di base per le viste standard */
.at-main label { font-weight: 600; font-size: 14px; }
.at-main .form-control,
.at-main input[type="text"],
.at-main input[type="email"],
.at-main input[type="password"],
.at-main input[type="tel"],
.at-main input[type="number"],
.at-main select,
.at-main textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--at-line);
    border-radius: 10px;
    background: #fff;
    color: var(--at-ink);
    font: 400 15px/1.4 var(--at-font-text);
    transition: border-color .2s, box-shadow .2s;
}
.at-main .form-control:focus,
.at-main input:focus,
.at-main select:focus,
.at-main textarea:focus {
    outline: none;
    border-color: var(--at-blue);
    box-shadow: 0 0 0 3px rgba(61, 111, 158, .2);
}
.at-main .form-group { margin-bottom: 18px; }
.at-main .btn {
    display: inline-block;
    padding: 11px 22px;
    border: 0;
    border-radius: 999px;
    background: var(--at-blue);
    color: #fff;
    font: 600 15px/1.2 var(--at-font-text);
    text-decoration: none;
    cursor: pointer;
}
.at-main .btn:hover { background: var(--at-blue-dark); color: #fff; }
.at-main .text-danger,
.at-main .invalid-feedback { color: #a32020; }

/* ---------- Pagine di accesso, registrazione e legali: scheda scura ---------- */
.at-body--auth .at-main {
    background: var(--at-night-bg);
    color: var(--at-ivory);
}
.at-auth {
    padding: 0 20px;
}
.at-card {
    width: 100%;
    margin: 0 auto;
    padding: 40px 44px 34px;
    border: 1px solid rgba(159, 186, 214, .22);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(42, 59, 82, .55), rgba(10, 15, 23, .7));
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
    color: var(--at-ivory);
}
.at-card--narrow { max-width: 480px; }
.at-card--wide { max-width: 860px; }
.at-card--legal { max-width: 900px; }
.at-card--center { text-align: center; }
.at-card__eyebrow {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--at-steel);
}
.at-main .at-card__title {
    margin: 0 0 12px;
    font-size: clamp(24px, 3.2vw, 32px);
    color: var(--at-ivory);
}
.at-card__lead {
    margin: 0 0 26px;
    color: var(--at-ivory-soft);
}
.at-card__foot {
    margin: 24px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--at-ivory-faint);
    text-align: center;
    font-size: 15px;
    color: var(--at-ivory-soft);
}
.at-card a:not(.at-btn) { color: var(--at-steel); }
.at-card a:not(.at-btn):hover { color: #fff; }

/* Campi su fondo scuro */
.at-card label { display: block; margin-bottom: 6px; color: var(--at-ivory); }
.at-card .form-control,
.at-card input[type="text"],
.at-card input[type="email"],
.at-card input[type="password"],
.at-card select {
    border-color: rgba(159, 186, 214, .35);
    background: rgba(10, 15, 23, .55);
    color: var(--at-ivory);
}
.at-card select option { color: var(--at-cta-ink); background: #fff; }
.at-card .form-control:focus,
.at-card input:focus,
.at-card select:focus {
    border-color: var(--at-steel);
    box-shadow: 0 0 0 3px rgba(159, 186, 214, .25);
}
.at-card input[aria-invalid="true"],
.at-card select[aria-invalid="true"] { border-color: #f0a3a3; }
.at-card .text-danger { display: block; margin-top: 6px; font-size: 14px; color: #f6b4b4; }
.at-card .required { color: var(--at-cta-2); }

.at-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
    margin-bottom: 18px;
}
.at-field { min-width: 0; }
.at-field--full { grid-column: 1 / -1; }
.at-form__section {
    margin: 30px 0 14px;
    padding-top: 22px;
    border-top: 1px solid var(--at-ivory-faint);
}
.at-main .at-form__section { font-size: 18px; color: var(--at-ivory); }
.at-form__note { margin: 0 0 16px; font-size: 14px; color: var(--at-ivory-soft); }
.at-form__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin-bottom: 22px;
    font-size: 14px;
}
.at-card .at-check {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-weight: 500;
    cursor: pointer;
}
.at-check input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    flex: 0 0 auto;
    accent-color: var(--at-cta-2);
}
.at-btn--block { width: 100%; padding: 14px 22px; font-size: 16px; }
.at-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Messaggi (layouts.messages) */
.at-card .alert {
    margin: 0 0 20px;
    padding: 12px 16px;
    border: 1px solid;
    border-radius: 12px;
    font-size: 14px;
}
.at-card .alert ul { margin: 0; padding: 0; list-style: none; }
.at-card .alert-danger,
.at-card .alert-warning { border-color: rgba(240, 163, 163, .5); background: rgba(120, 30, 30, .35); color: #fbd5d5; }
.at-card .alert-success { border-color: rgba(159, 214, 176, .5); background: rgba(30, 90, 55, .35); color: #d3f2dc; }

/* Captcha locale dentro la scheda scura */
.at-card .b2b-local-captcha-box {
    border: 1px solid rgba(201, 189, 159, .55);
    background: rgba(233, 226, 208, .07);
    box-shadow: none;
}
.at-card .b2b-local-captcha-box__title { color: var(--at-cta-2); border-bottom-color: rgba(201, 189, 159, .35); }
.at-card .b2b-local-captcha-box__label { color: var(--at-ivory); }

/* Testi legali */
.at-legal h2 {
    margin: 32px 0 12px;
    font-size: 20px;
}
.at-main .at-legal h2,
.at-main .at-legal h3 { color: var(--at-ivory); }
.at-legal h3 { margin: 20px 0 8px; font-size: 16px; }
.at-legal p,
.at-legal li { color: var(--at-ivory-soft); line-height: 1.7; }
.at-legal ul { margin: 0 0 16px; padding-left: 22px; }
.at-legal li + li { margin-top: 6px; }
.at-legal li::marker { color: var(--at-steel); }
.at-legal__updated { margin: 0 0 8px; font-style: italic; font-size: 14px; }
.at-legal__contact {
    margin-top: 32px;
    padding: 4px 22px 10px;
    border: 1px solid var(--at-ivory-faint);
    border-radius: 14px;
    background: rgba(255, 255, 255, .03);
}

@media (max-width: 640px) {
    .at-card { padding: 28px 20px 24px; border-radius: 16px; }
    .at-form__grid { grid-template-columns: 1fr; }
    .at-auth { padding: 0 12px; }
}

/* ---------- Footer ---------- */
.at-footer {
    flex-shrink: 0;
    color: var(--at-ivory-soft);
    background: var(--at-night-bg);
    background-color: var(--at-night-3);
    font-size: 14px;
    line-height: 1.7;
}

.at-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-top: 56px;
    padding-bottom: 44px;
}

.at-footer__mark {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--at-ivory);
    font-family: var(--at-font-title);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: .12em;
}
.at-footer__mark img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .45));
}

.at-footer__tagline { margin: 16px 0 8px; max-width: 340px; }
.at-footer__note { margin: 0; font-size: 13px; color: var(--at-steel); }

.at-footer__title {
    margin: 0 0 14px;
    font-family: var(--at-font-title);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--at-steel);
}

.at-footer__address { font-style: normal; }
.at-footer__address strong { color: var(--at-ivory); font-weight: 600; }

.at-footer__list li + li { margin-top: 6px; }
.at-footer__label {
    display: block;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(239, 233, 220, .62);
}

.at-footer a {
    color: var(--at-ivory);
    text-decoration: none;
    overflow-wrap: anywhere;
}
.at-footer a:hover,
.at-footer a:focus-visible { color: #fff; text-decoration: underline; }

.at-footer__bottom {
    border-top: 1px solid rgba(239, 233, 220, .1);
    font-size: 12.5px;
    color: rgba(239, 233, 220, .62);
}
.at-footer__bottom p { margin: 0; padding: 18px 0 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .at-nav, .at-nav__menu, .at-nav__links { gap: 20px; }
}

@media (max-width: 960px) {
    .at-wrap,
    .at-main .container { padding: 0 20px; }

    .at-nav {
        flex-wrap: wrap;
        gap: 12px;
        min-height: 76px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .at-brand { gap: 10px; }
    .at-brand__logo { width: 52px; height: 52px; }
    .at-brand__name { font-size: 16px; }

    .js .at-nav__toggle { display: inline-flex; }

    .at-nav__menu {
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding: 8px 0 18px;
    }
    .js .at-nav__menu { display: none; }
    .js .at-header.is-open .at-nav__menu { display: flex; }

    .at-nav__links { flex-direction: column; align-items: stretch; gap: 0; }
    .at-nav__links li { border-bottom: 1px solid var(--at-ivory-faint); }
    .at-nav__links a { display: block; padding: 14px 2px; font-size: 16px; }
    .at-nav__links a::after { display: none; }

    .at-nav__actions { flex-wrap: wrap; gap: 10px; }
    .at-nav__actions .at-btn { flex: 1 1 140px; padding: 12px 18px; }
    .at-lang { flex-basis: 100%; border-right: 0; padding-right: 0; margin: 0 0 4px; }

    .at-main { padding: 40px 0 56px; }

    .at-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .at-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .at-footer__grid { grid-template-columns: 1fr; padding-top: 44px; }
}

@media (max-width: 380px) {
    .at-wrap,
    .at-main .container { padding: 0 16px; }
    .at-brand__logo { width: 46px; height: 46px; }
    .at-brand__name { font-size: 15px; letter-spacing: .1em; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* =====================================================================
 * Home: hero con pneumatico 3D, vantaggi, passi, categorie, marchi
 * ===================================================================== */
.at-body--home .at-main { padding: 0; background: var(--at-paper); }

.at-eyebrow {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--at-steel);
}
.at-eyebrow--blue { color: var(--at-blue); }

/* ---------- Hero ---------- */
.at-hero {
    position: relative;
    overflow: hidden;
    color: var(--at-ivory);
    background: var(--at-night-bg);
    background-color: var(--at-night-2);
}
/* Ombra a pavimento da showroom */
.at-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(10, 15, 23, 0), rgba(10, 15, 23, .55));
    pointer-events: none;
}
.at-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    min-height: 600px;
    padding-top: 56px;
    padding-bottom: 64px;
}
.at-hero__copy { position: relative; z-index: 2; }
.at-main .at-hero__title {
    margin: 0 0 18px;
    font-size: clamp(34px, 4.4vw, 54px);
    line-height: 1.08;
    letter-spacing: .01em;
    color: var(--at-ivory);
}
.at-hero__title span { display: block; }
.at-hero__title-2 {
    background: linear-gradient(180deg, #f4efe3 10%, var(--at-cta-2) 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.at-hero__lead {
    max-width: 500px;
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
    color: var(--at-ivory-soft);
}

/* Accesso rivenditori nell'hero */
.at-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }

/* Numeri */
.at-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 36px;
    margin: 28px 0 0;
}
.at-stats__item { display: flex; flex-direction: column-reverse; }
.at-stats dt { font-size: 13px; color: var(--at-ivory-soft); }
.at-stats dd {
    margin: 0;
    font-family: var(--at-font-title);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--at-ivory);
}

/* Non solo pneumatici */
.at-range { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.at-range a,
.at-range span {
    display: inline-block;
    padding: 6px 13px;
    border: 1px solid rgba(239, 233, 220, .25);
    border-radius: 999px;
    font-size: 13px;
    color: var(--at-ivory);
    text-decoration: none;
}
.at-range a:hover { border-color: var(--at-ivory); color: #fff; }

/* Palco del pneumatico: immagine statica, poi canvas 3D */
.at-hero__stage {
    position: relative;
    width: 100%;
    max-width: 640px;
    aspect-ratio: 1 / 1;
    justify-self: center;
}
.at-hero__stage::before {
    content: "";
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(111, 156, 204, .28), rgba(111, 156, 204, 0));
    filter: blur(8px);
}
.at-hero__static,
.at-hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.at-hero__static { object-fit: contain; transition: opacity .6s ease; }
.at-hero__canvas { opacity: 0; transition: opacity .6s ease; }
.at-hero__stage.is-3d .at-hero__canvas { opacity: 1; }
.at-hero__stage.is-3d .at-hero__static { opacity: 0; }

/* ---------- Sezioni ---------- */
.at-section { padding: 88px 0; }
.at-section__head { max-width: 680px; margin: 0 0 40px; }
.at-main .at-section__title { margin: 0 0 12px; font-size: clamp(26px, 3vw, 36px); }
.at-section__lead { margin: 0; font-size: 17px; color: var(--at-muted); }

/* Vantaggi */
.at-benefits { background: var(--at-paper); }
.at-benefits__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.at-benefit {
    padding: 28px 24px;
    border: 1px solid var(--at-line);
    border-radius: 18px;
    background: #fffdf8;
    box-shadow: 0 10px 30px rgba(29, 36, 48, .06);
    transition: transform .25s, box-shadow .25s;
}
.at-benefit:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(29, 36, 48, .1); }
.at-benefit__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: linear-gradient(180deg, var(--at-night-1), var(--at-night-2));
    color: var(--at-cta-1);
}
.at-benefit__icon svg { width: 24px; height: 24px; }
.at-main .at-benefit h3 { margin: 0 0 8px; font-size: 18px; }
.at-benefit p { margin: 0; font-size: 15px; color: var(--at-muted); }

/* Come funziona */
.at-how { background: var(--at-night-bg); background-color: var(--at-night-2); color: var(--at-ivory); }
.at-main .at-how .at-section__title { color: var(--at-ivory); }
.at-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.at-step {
    position: relative;
    padding: 30px 28px 28px;
    border: 1px solid rgba(159, 186, 214, .2);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(42, 59, 82, .5), rgba(10, 15, 23, .55));
}
.at-step__num {
    display: block;
    margin-bottom: 14px;
    font-family: var(--at-font-title);
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    color: var(--at-cta-2);
}
.at-main .at-how .at-step h3 { margin: 0 0 8px; font-size: 19px; color: var(--at-ivory); }
.at-step p { margin: 0; font-size: 15px; color: var(--at-ivory-soft); }

/* Categorie */
.at-cats { background: linear-gradient(180deg, var(--at-paper-2), var(--at-paper)); }
.at-cats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.at-cat {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 210px;
    padding: 26px 24px 22px;
    overflow: hidden;
    border-radius: 18px;
    color: var(--at-ivory);
    background: var(--at-night-bg);
    background-color: var(--at-night-2);
    box-shadow: 0 14px 34px rgba(18, 26, 38, .22);
    transition: transform .25s, box-shadow .25s;
}
/* Cerchio decorativo, richiamo al pneumatico */
.at-cat::after {
    content: "";
    position: absolute;
    right: -46px;
    bottom: -46px;
    width: 150px;
    height: 150px;
    border: 14px solid rgba(239, 233, 220, .07);
    border-radius: 50%;
    box-shadow: inset 0 0 0 18px rgba(159, 186, 214, .06);
    pointer-events: none;
}
.at-cat:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(18, 26, 38, .3); }
.at-main .at-cat__title { margin: 0 0 6px; font-size: 22px; color: var(--at-ivory); }
.at-cat__title a { color: inherit; text-decoration: none; }
.at-cat__title a:hover { color: #fff; text-decoration: underline; }
.at-cat__count { margin: 0 0 18px; font-size: 14px; color: var(--at-ivory-soft); }
.at-cat__count strong { color: var(--at-cta-1); font-weight: 600; }
.at-cat__seasons {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: auto 0 0;
    padding: 0;
    list-style: none;
}
.at-cat__seasons a {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid rgba(239, 233, 220, .28);
    border-radius: 999px;
    font-size: 13px;
    color: var(--at-ivory);
    text-decoration: none;
}
.at-cat__seasons a:hover,
.at-cat__seasons a:focus-visible { background: var(--at-cta-1); border-color: var(--at-cta-1); color: var(--at-cta-ink); }

/* Marchi */
.at-brands { background: var(--at-paper); padding-top: 72px; }
.at-brands__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.at-brands__item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 76px;
    padding: 12px 16px;
    border: 1px solid var(--at-line);
    border-radius: 14px;
    background: #fff;
}
.at-brands__item img {
    width: auto;
    max-width: 100%;
    max-height: 40px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .78;
    transition: filter .25s, opacity .25s;
}
.at-brands__item:hover img { filter: none; opacity: 1; }
.at-brands__more { margin: 20px 0 0; font-size: 14px; color: var(--at-muted); }

/* Chiamata finale */
.at-cta { padding: 0 0 88px; background: var(--at-paper); }
.at-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 52px 56px;
    border-radius: 24px;
    color: var(--at-ivory);
    background: var(--at-night-bg);
    background-color: var(--at-night-2);
    box-shadow: 0 24px 60px rgba(18, 26, 38, .28);
}
.at-main .at-cta__title { margin: 0 0 10px; font-size: clamp(26px, 3vw, 36px); color: var(--at-ivory); }
.at-cta__text { max-width: 560px; margin: 0; color: var(--at-ivory-soft); }
.at-cta__actions { display: flex; flex-direction: column; align-items: center; gap: 12px; flex-shrink: 0; }
.at-btn--lg { padding: 15px 30px; font-size: 16px; }
.at-cta__login { font-size: 14px; color: var(--at-steel); }
.at-cta__login:hover { color: #fff; }

/* ---------- Home: responsive ---------- */
@media (max-width: 1080px) {
    .at-benefits__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .at-brands__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .at-brands__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
    .at-hero__grid { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; padding-bottom: 32px; gap: 8px; }
    /* Su schermi stretti il pneumatico va in alto, così si vede subito */
    .at-hero__stage { order: -1; max-width: 340px; margin: -8px auto -12px; }
    .at-section { padding: 64px 0; }
    .at-steps { grid-template-columns: 1fr; }
    .at-cta { padding-bottom: 0; }
    .at-cta__inner { flex-direction: column; align-items: flex-start; padding: 48px 20px; border-radius: 0; }
    .at-cta__actions { align-items: flex-start; }
}

@media (max-width: 560px) {
    .at-benefits__grid { grid-template-columns: 1fr; }
    /* Pulsanti di accesso a tutta larghezza */
    .at-hero__actions .at-btn { flex: 1 1 100%; justify-content: center; }
    .at-hero__stage { max-width: 280px; }
    .at-stats { gap: 12px 24px; }
    .at-stats dd { font-size: 22px; }
    .at-hero__lead { font-size: 16px; }
    .at-brands__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    .at-benefit:hover,
    .at-cat:hover { transform: none; }
}

/* Pagina ricambi e accessori su richiesta */
.at-main .at-parts__subtitle { margin: 0 0 20px; font-size: 20px; }
.at-parts__how { background: var(--at-paper); padding-top: 0; }
.at-parts__contact { margin: 0; font-size: 18px; line-height: 1.8; }
.at-parts__contact a { color: #3d6f9e; text-decoration: underline; }
