/* =========================================================
   FAST SERVICES SRL — STYLE SHEET
   Palette: rosso brand (#f74f58) / nero (#0d0d0f) / grigio
   ========================================================= */

:root {
    --red: #f74f58;
    --red-dark: #d63a44;
    --red-light: #ff7882;
    --red-rgb: 247, 79, 88;
    --black: #0d0d0f;
    --black-2: #1a1a1d;
    --gray-900: #2a2a2e;
    --gray-700: #4a4a52;
    --gray-500: #8a8a92;
    --gray-300: #d1d1d6;
    --gray-200: #e8e8ec;
    --gray-100: #f4f4f6;
    --white: #ffffff;
    --max-width: 1240px;
    --radius: 4px;
    --radius-lg: 8px;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.18);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: "Barlow Condensed", "Inter", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-accent {
    color: var(--red);
}

.muted {
    color: var(--gray-500);
    font-size: 0.9em;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-transform: uppercase;
    white-space: nowrap;
}

.btn--primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.btn--primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(var(--red-rgb), 0.35);
}

.btn--ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn--ghost:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.btn--lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn--block {
    width: 100%;
}

/* ========== TOP BAR ========== */
.top-bar {
    background: var(--black);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 38px;
}

.top-bar__info {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
    min-width: 0;
}

.top-bar__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color var(--transition);
    min-width: 0;
}

.top-bar__item span {
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

a.top-bar__item:hover {
    color: var(--white);
}

.top-bar__info svg {
    color: var(--red);
    flex-shrink: 0;
}

.top-bar__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: background var(--transition);
}

.top-bar__social a:hover {
    background: var(--red);
}

@media (max-width: 880px) {
    .top-bar__hide-mobile {
        display: none !important;
    }
    .top-bar__info {
        gap: 16px;
        font-size: 0.75rem;
    }
}

@media (max-width: 600px) {
    .top-bar { font-size: 0.74rem; }
    .top-bar__inner {
        height: auto;
        padding: 8px 0;
        gap: 10px;
    }
    .top-bar__info {
        gap: 6px 14px;
        flex-wrap: wrap;
    }
    .top-bar__item--email span {
        max-width: 200px;
    }
    .top-bar__social a {
        flex-shrink: 0;
    }
}

@media (max-width: 460px) {
    /* Phone always visible — email becomes icon-only to save space */
    .top-bar__item--email span {
        display: none;
    }
    .top-bar__item--email {
        padding: 4px;
    }
    .top-bar__item--email svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 360px) {
    /* Hide email entirely on the smallest screens */
    .top-bar__item--email {
        display: none;
    }
}

/* ========== NAV ========== */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
    transition: box-shadow var(--transition);
}

.nav.scrolled {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav__logo-img {
    height: 52px;
    width: auto;
    display: block;
    transition: transform var(--transition);
}

.nav__logo:hover .nav__logo-img {
    transform: scale(1.04);
}

.nav__logo-tag {
    display: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gray-500);
    padding-left: 14px;
    border-left: 2px solid var(--gray-200);
    line-height: 1.2;
    max-width: 110px;
}

@media (min-width: 720px) {
    .nav__logo-tag {
        display: inline-block;
    }
}

.nav__logo-tag--light {
    color: var(--gray-300);
    border-left-color: rgba(255, 255, 255, 0.18);
}

.nav__logo--footer {
    margin-bottom: 18px;
}

.nav__logo-img--footer {
    height: 70px;
    /* white outline so the red/black logo reads on the dark footer */
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.35));
}

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

.nav__link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--black);
    position: relative;
    padding: 6px 0;
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.nav__link:hover,
.nav__link.active {
    color: var(--red);
}

.nav__link:hover::after,
.nav__link.active::after {
    transform: scaleX(1);
}

.nav__cta {
    margin-left: 8px;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav__toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--black);
    transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav__toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 980px) {
    .nav__menu {
        position: fixed;
        top: 78px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 24px;
        background: var(--white);
        border-bottom: 1px solid var(--gray-200);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
        transform: translateY(-110%);
        transition: transform var(--transition);
    }
    .nav__menu.open {
        transform: translateY(0);
    }
    .nav__link {
        padding: 14px 0;
        border-bottom: 1px solid var(--gray-200);
    }
    .nav__cta {
        margin: 14px 0 0 0;
        text-align: center;
    }
    .nav__toggle {
        display: flex;
    }
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    animation: heroZoom 14s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.05); }
    to { transform: scale(1.15); }
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 13, 15, 0.92) 0%, rgba(13, 13, 15, 0.7) 50%, rgba(var(--red-rgb), 0.45) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    padding: 120px 24px 80px;
    max-width: 1100px;
}

.hero__eyebrow {
    display: inline-block;
    padding: 6px 14px;
    background: var(--red);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.4rem, 5.5vw, 4.6rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero__subtitle {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.65;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 36px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    max-width: 760px;
}

.stat__num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1;
    color: var(--white);
}

.stat__num span {
    color: var(--red);
}

.stat__lbl {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 6px;
}

.hero__scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--white);
    opacity: 0.6;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -10px); }
}

@media (max-width: 720px) {
    .hero__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .hero__content {
        padding: 80px 24px 60px;
    }
}

/* ========== FEATURES STRIP ========== */
.features-strip {
    background: var(--black);
    color: var(--white);
    padding: 50px 0;
    border-bottom: 4px solid var(--red);
}

.features-strip__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.feature__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--red-rgb), 0.15);
    color: var(--red);
    border-radius: var(--radius);
}

.feature h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

.feature p {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.5;
}

@media (max-width: 880px) {
    .features-strip__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

@media (max-width: 540px) {
    .features-strip__grid {
        grid-template-columns: 1fr;
    }
}

/* ========== SECTIONS ========== */
.section {
    padding: 100px 0;
}

.section--gray {
    background: var(--gray-100);
}

.section--dark {
    background: var(--black);
    color: var(--white);
}

.section__header {
    margin-bottom: 60px;
    max-width: 760px;
}

.section__header--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--red);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 14px;
    position: relative;
    padding-left: 30px;
}

.eyebrow::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 22px;
    height: 2px;
    background: var(--red);
}

.eyebrow--light::before {
    background: var(--red);
}

.section__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.005em;
    color: var(--black);
    margin-bottom: 20px;
}

.section__title--light {
    color: var(--white);
}

.section__lead {
    font-size: 1.08rem;
    line-height: 1.65;
    color: var(--gray-700);
    max-width: 680px;
}

.section__lead--light {
    color: rgba(255, 255, 255, 0.75);
}

/* ========== TWO COL (CHI SIAMO) ========== */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.two-col__media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.two-col__media img {
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
    display: block;
}

.badge-floating {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: var(--red);
    color: var(--white);
    padding: 18px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.badge-floating__num {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.badge-floating__lbl {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
    opacity: 0.92;
}

.two-col__text .lead {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--gray-900);
    margin-bottom: 18px;
}

.two-col__text p {
    color: var(--gray-700);
    margin-bottom: 18px;
    line-height: 1.7;
}

.check-list {
    margin: 28px 0 32px;
    display: grid;
    gap: 12px;
}

.check-list li {
    position: relative;
    padding-left: 32px;
    color: var(--gray-900);
    font-weight: 500;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 18px;
    height: 18px;
    background: var(--red);
    border-radius: 50%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20,6 9,17 4,12'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
}

@media (max-width: 880px) {
    .two-col {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .two-col__media img {
        min-height: 320px;
    }
}

/* ========== PRODUCTS GRID ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--black-2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
    border-color: var(--red);
}

.product-card__icon-wrap {
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 40%, rgba(var(--red-rgb), 0.18) 0%, rgba(var(--red-rgb), 0) 60%),
        linear-gradient(135deg, var(--black-2) 0%, var(--black) 100%);
    color: var(--red);
    position: relative;
    overflow: hidden;
    transition: background var(--transition);
}

.product-card__icon-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(45deg,
            rgba(255, 255, 255, 0.025) 0px,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px,
            transparent 14px);
    pointer-events: none;
}

.product-card__icon-wrap::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition);
}

.product-card:hover .product-card__icon-wrap::after {
    transform: scaleX(1);
}

.product-card__icon {
    width: 86px;
    height: 86px;
    position: relative;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color var(--transition);
    filter: drop-shadow(0 4px 12px rgba(var(--red-rgb), 0.35));
}

.product-card:hover .product-card__icon {
    transform: scale(1.1) rotate(-4deg);
    color: var(--red-light);
}

.product-card__body {
    padding: 22px 22px 24px;
}

.product-card__body h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.product-card__body p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 14px;
    min-height: 70px;
}

.product-card__link {
    color: var(--red);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    text-decoration: none;
    transition: color var(--transition), transform var(--transition), letter-spacing var(--transition);
}

.product-card:hover .product-card__link {
    color: var(--red-light);
    transform: translateX(4px);
}

.product-card__link:hover {
    color: var(--red-light);
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (max-width: 1080px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 780px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .product-card__body p {
        min-height: 0;
    }
}

/* ========== CTA BAND ========== */
.cta-band {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: var(--white);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    transform: skewX(-20deg);
}

.cta-band__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.cta-band h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.cta-band p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
}

.cta-band .btn--primary {
    background: var(--white);
    color: var(--red);
    border-color: var(--white);
}

.cta-band .btn--primary:hover {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

/* ========== BRANDS ========== */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.brand {
    height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--gray-700);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all var(--transition);
    text-align: center;
    padding: 8px;
}

.brand:hover {
    border-color: var(--red);
    color: var(--black);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.brand span {
    font-size: 1.05rem;
}

.brand small {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.7rem;
    color: var(--red);
    margin-top: 4px;
    text-transform: none;
    letter-spacing: 0.02em;
}

.brand.featured {
    background: var(--black);
    border-color: var(--red);
    color: var(--white);
    grid-column: span 2;
    height: 110px;
}

.brand.featured span {
    font-size: 1.4rem;
    color: var(--white);
}

/* Featured Clean Filters card (separate row above the grid) */
.brands-featured {
    margin-bottom: 28px;
}

.brand--featured {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 22px 32px;
    background: linear-gradient(135deg, var(--black) 0%, var(--black-2) 100%);
    color: var(--white);
    border: 1px solid var(--red);
    border-radius: var(--radius-lg);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
    position: relative;
    overflow: hidden;
    min-height: 130px;
}

.brand--featured::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 6px;
    height: 100%;
    background: var(--red);
}

.brand__featured-logo {
    height: 64px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    filter: brightness(1.05);
}

.brand__featured-text {
    display: flex;
    flex-direction: column;
}

.brand__featured-name {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--white);
    line-height: 1.1;
}

.brand__featured-text small {
    font-size: 0.82rem;
    color: var(--red-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 6px;
    font-weight: 600;
}

@media (max-width: 540px) {
    .brand--featured {
        flex-direction: column;
        gap: 14px;
        padding: 22px 18px;
        text-align: center;
        min-height: 0;
    }
    .brand__featured-logo { height: 48px; }
    .brand__featured-name { font-size: 1.3rem; }
    .brand__featured-text small { font-size: 0.72rem; }
}

/* Pagination */
.brands-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 36px;
}

.brands-pagination__btn {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-700);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brands-pagination__btn:hover:not(:disabled):not(.is-active) {
    border-color: var(--red);
    color: var(--red);
    transform: translateY(-1px);
}

.brands-pagination__btn.is-active {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
    cursor: default;
    box-shadow: 0 6px 14px rgba(var(--red-rgb), 0.32);
}

.brands-pagination__btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.brands-pagination__btn--dots {
    border: none;
    background: transparent;
    color: var(--gray-500);
    cursor: default;
    min-width: 24px;
    padding: 0 4px;
}

.brands-pagination__btn--nav {
    color: var(--black);
}

.brands-count {
    text-align: center;
    margin-top: 14px;
    color: var(--gray-500);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Brand cards now animate in when rendered */
.brand {
    animation: brandFadeIn 0.4s ease both;
}

@keyframes brandFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.brand--has-logo {
    padding: 14px 12px;
}

.brand img {
    max-width: 100%;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0.5) contrast(0.95);
    transition: filter var(--transition), transform var(--transition);
}

.brand:hover img {
    filter: grayscale(0) contrast(1);
    transform: scale(1.04);
}

/* Visually hidden but accessible to screen readers */
.brand__sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a.brand {
    text-decoration: none;
    color: var(--gray-700);
}

a.brand:hover {
    color: var(--black);
}

.brands-loading,
.brands-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px 16px;
    color: var(--gray-500);
    font-size: 0.92rem;
    font-weight: 500;
}

.brands-error {
    color: var(--red-dark);
}

@media (max-width: 980px) {
    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .brand.featured {
        grid-column: span 2;
    }
}

@media (max-width: 580px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .brand.featured {
        grid-column: span 2;
    }
}

/* ========== CONTATTI ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    margin-bottom: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border-left: 3px solid var(--red);
}

.contact-card__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--red-rgb), 0.1);
    color: var(--red);
    border-radius: var(--radius);
}

.contact-card h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

.contact-card p {
    color: var(--gray-700);
    font-size: 0.92rem;
    line-height: 1.55;
}

.contact-card a {
    color: var(--gray-700);
    transition: color var(--transition);
}

.contact-card a:hover {
    color: var(--red);
}

/* FORM */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.contact-form__intro {
    color: var(--gray-500);
    margin-bottom: 26px;
    font-size: 0.95rem;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.field--check {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.field--check label {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--gray-700);
    font-weight: 400;
}

.field label {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
    padding: 12px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(var(--red-rgb), 0.12);
}

.field textarea {
    resize: vertical;
    min-height: 110px;
}

.field--check input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--red);
}

.field.error input,
.field.error select,
.field.error textarea {
    border-color: var(--red);
    background: rgba(var(--red-rgb), 0.04);
}

.form-message {
    margin-top: 18px;
    padding: 14px;
    border-radius: var(--radius);
    text-align: center;
    font-size: 0.92rem;
    font-weight: 500;
    display: none;
}

.form-message.show {
    display: block;
}

.form-message.success {
    background: rgba(40, 167, 69, 0.1);
    color: #1e7e34;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.form-message.error {
    background: rgba(var(--red-rgb), 0.1);
    color: var(--red-dark);
    border: 1px solid rgba(var(--red-rgb), 0.3);
}

@media (max-width: 880px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-form {
        padding: 28px;
    }
    .field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* MAP */
.map-wrap {
    margin: 0;
    line-height: 0;
    border-top: 4px solid var(--red);
    box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.05);
    display: block;
    font-size: 0;
}

.map-wrap iframe {
    display: block;
    filter: grayscale(0.2) contrast(1.05);
    vertical-align: bottom;
    margin: 0;
    border: 0;
}

/* Remove bottom padding on the contacts section so the map sits flush against the next section */
#contatti.section {
    padding-bottom: 0;
}

#contatti .container:last-of-type,
#contatti .contact-grid {
    margin-bottom: 60px;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--black);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
}

.footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 50px;
    padding: 70px 24px 50px;
}

.footer__brand .nav__logo {
    margin-bottom: 18px;
}

.footer__brand p {
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.6);
    max-width: 360px;
}

.footer__col h5 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 18px;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 10px;
}

.footer__col h5::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--red);
}

.footer__col ul {
    display: grid;
    gap: 10px;
}

.footer__col a {
    color: rgba(255, 255, 255, 0.65);
    transition: color var(--transition), padding-left var(--transition);
    display: inline-block;
}

.footer__col a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px 0;
    font-size: 0.82rem;
}

.footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.5);
}

.footer__legal a {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 4px;
}

.footer__legal a:hover {
    color: var(--white);
}

.footer__credit {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.footer__credit a {
    color: var(--red-light);
    font-weight: 600;
    transition: color var(--transition);
}

.footer__credit a:hover {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer__heart {
    display: inline-block;
    color: var(--red);
    margin: 0 2px;
    transform: translateY(1px);
    animation: heartBeat 1.6s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 50%, 100% { transform: translateY(1px) scale(1); }
    20%, 35% { transform: translateY(1px) scale(1.25); }
}

@media (max-width: 880px) {
    .footer__top {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 540px) {
    .footer__top {
        grid-template-columns: 1fr;
    }
}


/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: 46px;
    height: 46px;
    background: var(--red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    box-shadow: 0 10px 25px rgba(var(--red-rgb), 0.35);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity var(--transition), transform var(--transition), background var(--transition);
    z-index: 90;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--red-dark);
}

/* ========== WHATSAPP FLOATING ACTION BUTTON ========== */
.whatsapp-fab {
    position: fixed;
    bottom: 84px;
    right: 26px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
    z-index: 91;
    transition: transform var(--transition), box-shadow var(--transition);
    animation: whatsappPulse 2.4s ease-in-out infinite;
}

.whatsapp-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 14px 32px rgba(37, 211, 102, 0.6);
    animation-play-state: paused;
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.45); }
    50% { box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45), 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* WhatsApp contact card variant */
.contact-card--whatsapp {
    border-left-color: #25D366;
}

.contact-card__icon--whatsapp {
    background: rgba(37, 211, 102, 0.12);
    color: #25D366;
}

/* ========== STAFF ========== */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    max-width: 1100px;
    margin: 0 auto;
}

.staff-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 24px 26px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    overflow: hidden;
}

.staff-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.staff-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.12);
    border-color: var(--red);
}

.staff-card:hover::before {
    transform: scaleX(1);
}

.staff-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.staff-card__dept {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    padding: 4px 10px;
    background: rgba(var(--red-rgb), 0.08);
    border-radius: var(--radius);
}

.staff-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(var(--red-rgb), 0.35);
    flex-shrink: 0;
}

.staff-card__name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: var(--black);
    margin-bottom: 6px;
}

.staff-card__name-sep {
    color: var(--red);
    margin: 0 4px;
}

.staff-card__role {
    font-size: 0.88rem;
    color: var(--gray-700);
    font-weight: 500;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px dashed var(--gray-200);
    line-height: 1.45;
}

.staff-card__contacts {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.staff-card__contacts li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
}

.staff-card__contacts svg {
    flex-shrink: 0;
    color: var(--red);
    opacity: 0.85;
}

.staff-card__contacts a {
    color: var(--gray-900);
    transition: color var(--transition);
    word-break: break-word;
    line-height: 1.3;
}

.staff-card__contacts a:hover {
    color: var(--red);
}

@media (max-width: 880px) {
    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .staff-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== DIRECTIONS / COME RAGGIUNGERCI ========== */
.directions {
    padding: 90px 0 100px;
    background: var(--white);
}

.directions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.directions-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    border-top: 4px solid var(--red);
}

.directions-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.1);
    border-color: var(--red);
    border-top-color: var(--red);
}

.directions-card__head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.directions-card__icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--red-rgb), 0.1);
    color: var(--red);
    border-radius: var(--radius);
}

.directions-card__head h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 4px;
    letter-spacing: 0.01em;
}

.directions-card__sub {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
}

.directions-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.directions-steps li {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--gray-200);
}

.directions-steps li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.directions-steps li:first-child {
    padding-top: 0;
}

.directions-steps li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 42px;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
    z-index: 0;
}

.step-num {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 2px solid var(--red);
    color: var(--red);
    border-radius: 50%;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.95rem;
}

.directions-steps li.arrive .step-num {
    background: var(--red);
    color: var(--white);
}

.directions-steps li > div {
    display: flex;
    flex-direction: column;
    padding-top: 4px;
}

.directions-steps strong {
    color: var(--black);
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1.4;
}

.directions-steps li.arrive strong {
    color: var(--red);
    font-family: var(--font-display);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.step-meta {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 2px;
}

.directions-cta {
    margin-top: 40px;
    text-align: center;
}

.directions-cta__note {
    margin-top: 14px;
    color: var(--gray-500);
    font-size: 0.88rem;
}

@media (max-width: 880px) {
    .directions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .directions-card {
        padding: 24px;
    }
}

/* ========== GALLERY (full-width, no gaps) ========== */
.section--full {
    padding-left: 0;
    padding-right: 0;
}

#galleria .section__header {
    margin-bottom: 50px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    border: none;
    padding: 0;
    margin: 0;
    cursor: zoom-in;
    overflow: hidden;
    border-radius: 0;
    background: var(--gray-200);
    box-shadow: none;
    transition: transform var(--transition), z-index 0s linear var(--transition);
}

.gallery-item:hover {
    z-index: 2;
    transform: none;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
    transition: transform var(--transition), z-index 0s;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter var(--transition);
    display: block;
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(13, 13, 15, 0.55) 100%);
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 3px;
}

.gallery-item__zoom {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    background: var(--red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(var(--red-rgb), 0.5);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--transition), transform var(--transition);
    z-index: 2;
}

.gallery-item:hover .gallery-item__zoom,
.gallery-item:focus-visible .gallery-item__zoom {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
        padding: 0;
    }
}

@media (max-width: 720px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 420px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-item {
        aspect-ratio: 16 / 10;
    }
}

/* ========== LIGHTBOX ========== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 10, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s;
}

.lightbox__figure {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: scale(0.94);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox.open .lightbox__figure {
    transform: scale(1);
}

.lightbox__img {
    max-width: 100%;
    max-height: calc(100vh - 160px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    background: var(--black);
    cursor: zoom-in;
    transform-origin: center center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
}

.lightbox.zoomed .lightbox__img { cursor: zoom-out; }
.lightbox.dragging .lightbox__img { transition: none; cursor: grabbing; }

.lightbox__caption {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-top: 18px;
    text-align: center;
    max-width: 720px;
    font-weight: 500;
}

.lightbox__counter {
    position: absolute;
    top: -36px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.lightbox__hint {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
}

.lightbox__hint kbd {
    display: inline-block;
    padding: 1px 6px;
    margin: 0 2px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), border-color var(--transition);
    z-index: 1001;
}

.lightbox__close:hover,
.lightbox__nav:hover {
    background: var(--red);
    border-color: var(--red);
    transform: scale(1.06);
}

.lightbox__close { top: 26px; right: 26px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.06); }
.lightbox__nav--prev { left: 26px; }
.lightbox__nav--next { right: 26px; }

@media (max-width: 720px) {
    .lightbox { padding: 80px 16px 60px; }
    .lightbox__close { top: 14px; right: 14px; width: 42px; height: 42px; }
    .lightbox__nav { width: 42px; height: 42px; }
    .lightbox__nav--prev { left: 10px; }
    .lightbox__nav--next { right: 10px; }
    .lightbox__img { max-height: calc(100vh - 200px); }
}

body.lightbox-open { overflow: hidden; }

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].in-view {
    opacity: 1;
    transform: translateY(0);
}

::selection { background: var(--red); color: var(--white); }

/* =========================================================
   COOKIE BANNER + MODAL
   ========================================================= */
.cookie-banner {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 1100;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.04);
    border-top: 4px solid var(--red);
    max-width: 980px;
    margin: 0 auto;
    transform: translateY(20px);
    opacity: 0;
    animation: cookieIn 0.4s ease 0.4s forwards;
}

@keyframes cookieIn {
    to { transform: translateY(0); opacity: 1; }
}

.cookie-banner__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 22px 28px;
}

.cookie-banner__body { flex: 1; min-width: 0; }

.cookie-banner h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--black);
}

.cookie-banner h3 svg { color: var(--red); }

.cookie-banner p {
    color: var(--gray-700);
    font-size: 0.92rem;
    line-height: 1.55;
}

.cookie-banner p a {
    color: var(--red);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner__actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 11px 18px;
    font-size: 0.85rem;
}

.cookie-btn--reject {
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.cookie-btn--reject:hover {
    background: var(--gray-100);
    color: var(--black);
    border-color: var(--gray-500);
}

.cookie-btn--prefs {
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.cookie-btn--prefs:hover {
    background: var(--gray-100);
    color: var(--black);
    border-color: var(--gray-500);
}

@media (max-width: 880px) {
    .cookie-banner__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 18px 18px 18px;
    }
    .cookie-banner__actions {
        flex-wrap: wrap;
        justify-content: stretch;
    }
    .cookie-btn {
        flex: 1 1 auto;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .cookie-banner { left: 8px; right: 8px; bottom: 8px; }
    .cookie-banner h3 { font-size: 1.05rem; }
    .cookie-banner p { font-size: 0.86rem; }
    .cookie-banner__actions { flex-direction: column; }
    .cookie-btn { width: 100%; }
}

/* ----- COOKIE MODAL ----- */
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.cookie-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.cookie-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 10, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.cookie-modal__panel {
    position: relative;
    background: var(--white);
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 48px);
    overflow: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    border-top: 4px solid var(--red);
    transform: scale(0.96);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cookie-modal.open .cookie-modal__panel { transform: scale(1); }

.cookie-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 26px;
    border-bottom: 1px solid var(--gray-200);
}

.cookie-modal__header h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    text-transform: uppercase;
    color: var(--black);
}

.cookie-modal__close {
    background: transparent;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
}

.cookie-modal__close:hover {
    color: var(--red);
    background: rgba(var(--red-rgb), 0.08);
}

.cookie-modal__body {
    padding: 22px 26px;
    color: var(--gray-700);
    font-size: 0.92rem;
    line-height: 1.55;
}

.cookie-modal__body > p:first-child {
    margin-bottom: 22px;
}

.cookie-cat {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 14px;
}

.cookie-cat__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    gap: 12px;
}

.cookie-cat__head h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    text-transform: uppercase;
    color: var(--black);
}

.cookie-cat__badge {
    font-size: 0.7rem;
    color: var(--gray-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    background: var(--gray-200);
    border-radius: 99px;
}

.cookie-cat p {
    font-size: 0.86rem;
    color: var(--gray-700);
    line-height: 1.5;
}

.cookie-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.cookie-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-switch__slider {
    width: 38px;
    height: 22px;
    background: var(--gray-300);
    border-radius: 11px;
    position: relative;
    transition: background var(--transition);
}

.cookie-switch__slider::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: var(--white);
    border-radius: 50%;
    transition: transform var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.cookie-switch input:checked + .cookie-switch__slider {
    background: var(--red);
}

.cookie-switch input:checked + .cookie-switch__slider::before {
    transform: translateX(16px);
}

.cookie-switch__label {
    font-size: 0.8rem;
    color: var(--gray-700);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cookie-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 26px;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-100);
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}

@media (max-width: 480px) {
    .cookie-modal__footer { flex-direction: column-reverse; }
    .cookie-modal__footer .btn { width: 100%; }
}

/* =========================================================
   LEGAL PAGES (privacy / cookie policy)
   ========================================================= */
.nav--simple { box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08); }
.nav--simple .nav__inner { height: 78px; }

.legal-page {
    padding: 50px 0 80px;
    background: var(--gray-100);
    min-height: calc(100vh - 200px);
}

.legal-page__inner {
    max-width: 820px;
}

.legal-page__header {
    text-align: center;
    margin-bottom: 40px;
}

.legal-page__header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    text-transform: uppercase;
    line-height: 1.1;
    margin: 14px 0 10px;
    color: var(--black);
}

.legal-page__updated {
    color: var(--gray-500);
    font-size: 0.88rem;
    font-weight: 500;
}

.legal-content {
    background: var(--white);
    padding: 50px 60px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--red);
    color: var(--gray-900);
    line-height: 1.7;
}

.legal-content__intro {
    font-size: 1.05rem;
    color: var(--gray-900);
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.legal-content h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    text-transform: uppercase;
    margin: 32px 0 14px;
    color: var(--black);
    letter-spacing: 0.01em;
}

.legal-content h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    text-transform: uppercase;
    margin: 24px 0 10px;
    color: var(--red);
}

.legal-content p {
    margin-bottom: 14px;
    color: var(--gray-700);
}

.legal-content ul, .legal-content ol {
    margin: 0 0 16px 22px;
    padding: 0;
    list-style: disc;
}

.legal-content ol { list-style: decimal; }

.legal-content li {
    margin-bottom: 8px;
    color: var(--gray-700);
    line-height: 1.65;
}

.legal-content a {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition);
    word-break: break-word;
}

.legal-content a:hover {
    color: var(--red-dark);
}

.legal-content__signature {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
    font-style: italic;
    color: var(--gray-700);
}

/* Cookie table */
.cookie-table-wrap {
    overflow-x: auto;
    margin: 12px 0 20px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.cookie-table th,
.cookie-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.cookie-table th {
    background: var(--gray-100);
    font-weight: 700;
    color: var(--black);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cookie-table tr:last-child td { border-bottom: none; }

.cookie-table code {
    background: rgba(var(--red-rgb), 0.08);
    color: var(--red-dark);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.85em;
}

@media (max-width: 720px) {
    .legal-content { padding: 30px 22px; }
    .legal-content h2 { font-size: 1.2rem; margin-top: 26px; }
    .legal-content h3 { font-size: 1rem; }
    .cookie-table th, .cookie-table td { padding: 8px 10px; font-size: 0.82rem; }
}

/* =========================================================
   MOBILE OPTIMIZATIONS — comprehensive pass
   ========================================================= */

@media (max-width: 880px) {
    .container { padding: 0 18px; }
    .section { padding: 70px 0; }
    .section__header { margin-bottom: 40px; }
}

@media (max-width: 600px) {
    /* TOP BAR: see dedicated rules above (line ~210) */

    /* ---------- NAV ---------- */
    .nav__inner { height: 64px; }
    .nav__logo-img { height: 40px; }
    .nav__logo { gap: 10px; }
    .nav__menu { top: 64px; padding: 18px; max-height: calc(100vh - 64px); overflow-y: auto; }
    .nav__cta { display: flex; justify-content: center; padding: 14px 22px; margin-top: 18px; }
    html { scroll-padding-top: 70px; }

    /* ---------- HERO ---------- */
    .hero { min-height: 78vh; }
    .hero__content { padding: 60px 18px 48px; }
    .hero__eyebrow { font-size: 0.7rem; padding: 5px 10px; margin-bottom: 18px; }
    .hero__title { font-size: clamp(1.9rem, 8vw, 2.6rem); line-height: 1.1; margin-bottom: 18px; }
    .hero__subtitle { font-size: 0.95rem; margin-bottom: 28px; }
    .hero__actions { gap: 10px; margin-bottom: 40px; }
    .hero__actions .btn { width: 100%; }
    .hero__stats { padding-top: 26px; gap: 18px 16px; }
    .stat__num { font-size: 1.8rem; }
    .stat__lbl { font-size: 0.7rem; }
    .hero__scroll { bottom: 14px; }

    /* ---------- BUTTONS ---------- */
    .btn { padding: 11px 20px; font-size: 0.88rem; }
    .btn--lg { padding: 14px 26px; font-size: 0.95rem; }

    /* ---------- SECTIONS ---------- */
    .section { padding: 56px 0; }
    .section__header { margin-bottom: 32px; }
    .section__title { font-size: clamp(1.55rem, 6vw, 2rem); }
    .section__lead { font-size: 0.95rem; }

    /* ---------- FEATURES STRIP ---------- */
    .features-strip { padding: 36px 0; }
    .feature h3 { font-size: 1.1rem; }
    .feature p { font-size: 0.86rem; }

    /* ---------- CHI SIAMO ---------- */
    .two-col { gap: 36px; }
    .two-col__media img { min-height: 240px; }
    .badge-floating { bottom: 16px; left: 16px; padding: 14px 18px; }
    .badge-floating__num { font-size: 1.5rem; }
    .badge-floating__lbl { font-size: 0.68rem; }
    .two-col__text .lead { font-size: 1.02rem; }
    .check-list li { font-size: 0.92rem; }

    /* ---------- STAFF ---------- */
    .staff-card { padding: 22px 18px 20px; }
    .staff-card__name { font-size: 1.1rem; }
    .staff-card__role { font-size: 0.84rem; margin-bottom: 14px; padding-bottom: 14px; }
    .staff-card__avatar { width: 42px; height: 42px; }
    .staff-card__avatar svg { width: 22px; height: 22px; }
    .staff-card__contacts a { font-size: 0.84rem; }

    /* ---------- PRODUCTS ---------- */
    .product-card__icon-wrap { aspect-ratio: 16 / 10; }
    .product-card__icon { width: 64px; height: 64px; }
    .product-card__body { padding: 18px 18px 20px; }
    .product-card__body p { font-size: 0.86rem; min-height: 0; margin-bottom: 10px; }

    .cta-band { padding: 40px 0; }
    .cta-band__inner { flex-direction: column; align-items: flex-start; gap: 18px; text-align: left; }
    .cta-band__inner .btn { width: 100%; }
    .cta-band p { font-size: 0.95rem; }

    .brand { height: 80px; }
    .brand span { font-size: 0.85rem; }
    .brand img { max-height: 50px; }

    .gallery-item__zoom { width: 32px; height: 32px; bottom: 8px; right: 8px; }
    .gallery-item__zoom svg { width: 16px; height: 16px; }

    .lightbox { padding: 70px 8px 50px; }
    .lightbox__hint { display: none; }
    .lightbox__counter { font-size: 0.72rem; top: -28px; }
    .lightbox__caption { font-size: 0.85rem; margin-top: 12px; padding: 0 8px; }
    .lightbox__img { max-height: calc(100vh - 170px); }

    .contact-card { padding: 18px; }
    .contact-card h4 { font-size: 0.95rem; }
    .contact-card p { font-size: 0.88rem; }
    .contact-form { padding: 22px 18px; }
    .contact-form h3 { font-size: 1.35rem; }
    .field input, .field select, .field textarea { padding: 11px 12px; font-size: 16px; }
    .map-wrap iframe { height: 300px; }

    .directions { padding: 50px 0 60px; }
    .directions-card { padding: 22px 18px; }
    .directions-card__head h3 { font-size: 1.1rem; }
    .directions-card__icon { width: 44px; height: 44px; }
    .directions-steps strong { font-size: 0.92rem; }
    .step-meta { font-size: 0.8rem; }
    .step-num { width: 28px; height: 28px; font-size: 0.85rem; }
    .directions-steps li:not(:last-child)::before { left: 13px; top: 36px; }
    .directions-cta { margin-top: 28px; }
    .directions-cta__note { font-size: 0.82rem; padding: 0 14px; }

    .footer__top { padding: 50px 18px 36px; gap: 30px; }
    .footer__col h5 { margin-bottom: 14px; }
    .footer__col ul { gap: 8px; }
    .footer__col a, .footer__col li { font-size: 0.88rem; }
    .footer__bottom { padding: 18px 0; text-align: center; }
    .footer__bottom-inner { flex-direction: column; gap: 8px; align-items: center; font-size: 0.76rem; }
    .footer__credit { font-size: 0.74rem; }
    .footer__legal { font-size: 0.76rem; }

    .back-to-top { width: 42px; height: 42px; bottom: 16px; right: 16px; }

    /* Pagination on mobile */
    .brands-pagination__btn { min-width: 34px; height: 34px; font-size: 0.85rem; padding: 0 8px; }
    .brands-pagination { gap: 4px; margin-top: 24px; }
}

@media (max-width: 400px) {
    .container { padding: 0 14px; }
    .section { padding: 48px 0; }
    .hero__title { font-size: 1.7rem; }
    .hero__stats { grid-template-columns: 1fr 1fr; gap: 14px; }
    .stat__num { font-size: 1.6rem; }
    .nav__logo-tag { display: none; }
}

@media (hover: none) and (pointer: coarse) {
    .btn { min-height: 44px; }
    .nav__link { padding: 12px 0; }
    .field input, .field select, .field textarea { min-height: 44px; }
    .gallery-item { min-height: 120px; }
    .footer__col a { padding: 4px 0; display: inline-block; }
}

@supports (-webkit-touch-callout: none) {
    @media (max-width: 600px) {
        .hero { min-height: 78vh; }
    }
}
