@font-face {
    font-family: 'Panchang';
    src: url('./fonts/Panchang-Variable.woff2') format('woff2'),
         url('./fonts/Panchang-Variable.woff') format('woff'),
         url('./fonts/Panchang-Variable.ttf') format('truetype');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Direzione "ELEGANTE" (H2): titoli serif a linea fine + interfaccia sans neutra */
    --font-main: "Poppins", "Helvetica Neue", Arial, sans-serif;
    --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
    --bg: #fff8f4;
    --bg-soft: #f8ebe4;
    --text: #1f1715;
    --muted: #7c6660;
    --rose: #df7d8d;
    --rose-dark: #a94759;
    --cream: #fff3ec;
    --white: #ffffff;
    --black: #111111;
    /* fondo delle sezioni scure, dei pulsanti e del piè di pagina.
       Era il marrone del testo (#1f1715): la cliente l'ha voluto nero. */
    --scuro: #111111;
    --line: rgba(31, 23, 21, 0.12);
    --shadow: 0 24px 70px rgba(85, 45, 40, 0.14);
    --radius: 28px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* Titoli: serif elegante a linea fine */
h1,
h2,
h3,
h4,
h5,
h6,
.logo {
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 0.002em;
}

/* Interfaccia (navigazione, bottoni, card): sans neutra */
button,
.btn,
.navbar,
.nav-links,
.mobile-menu,
.product-card,
.category-card {
    font-family: var(--font-main);
}

/* Nomi prodotto/categoria e prezzi restano nel serif */
.product-info h3,
.product-info strong,
.category-card h3,
.category-card h2 {
    font-family: var(--font-heading);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
    border: none;
}

.top-banner {
    width: 100%;
    padding: 10px 20px;
    background: var(--scuro);
    color: var(--white);
    text-align: center;
    font-size: 13px;
    letter-spacing: 0.02em;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 5vw;
    background: rgba(255, 248, 244, 0.84);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
}

.logo {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
}

.hero-logo {
    z-index: 2;
    height: auto;
    width: min(950px, 90vw);
    max-width: 100%;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    font-size: 16px;
    color: var(--muted);
}

.nav-links a:hover {
    color: var(--text);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-btn,
.cart-btn {
    padding: 11px 16px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--line);
    color: var(--text);
}

/* Barra di ricerca con lente */
.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    height: 42px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--line);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.search-box:focus-within {
    border-color: var(--rose);
    box-shadow: 0 0 0 3px rgba(223, 125, 141, .15);
}

.search-box svg {
    width: 17px;
    height: 17px;
    flex: none;
    color: var(--muted);
}

.search-box input {
    border: none;
    outline: none;
    background: none;
    width: 150px;
    font-size: 14px;
    color: var(--text);
}

.search-box input::placeholder { color: var(--muted); }
.search-box input::-webkit-search-cancel-button { cursor: pointer; }

/* Carrello con icona */
.cart-icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 48px;
    padding: 0 17px;
}

.cart-icon-btn svg {
    width: 23px;
    height: 23px;
}

@media (max-width: 1200px) {
    .search-box input { width: 110px; }
}

.cart-btn span {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    margin-left: 6px;
    border-radius: 50%;
    background: var(--rose);
    color: white;
    font-size: 12px;
}

.menu-btn {
    display: none;
    background: transparent;
    font-size: 26px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 103px;
    left: 0;
    right: 0;
    z-index: 40;
    background: var(--bg);
    padding: 24px 5vw;
    border-bottom: 1px solid var(--line);
}

.mobile-menu a {
    display: block;
    padding: 14px 0;
    font-size: 22px;
    font-weight: 700;
}

.hero {
    position: relative;
    min-height: calc(100vh - 103px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 70px 8vw;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 250, 247, 0.45); /* Soft beige brand overlay */
    z-index: 1;
    pointer-events: none;
}

.hero-video-bg {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.eyebrow {
    margin-bottom: 16px;
    color: var(--rose-dark);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 12px;
    font-weight: 900;
}

.hero h1 {
    max-width: 760px;
    font-size: clamp(54px, 8vw, 112px);
    line-height: 1.02;
    letter-spacing: -0.01em;
}

.hero-text {
    max-width: 560px;
    margin-top: 26px;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
}

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

.btn.secondary {
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid var(--line);
}

/* Pulsanti dell'hero: più grandi e con più stacco, stanno sopra il video */
.btn-hero {
    min-height: 60px;
    padding: 0 34px;
    font-size: 16px;
    letter-spacing: .01em;
    box-shadow: 0 14px 34px rgba(31, 23, 21, .28);
    transition: transform .28s cubic-bezier(.22,1,.36,1), box-shadow .28s ease, background .28s ease;
}

.btn-hero:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 44px rgba(31, 23, 21, .34);
}

.btn-hero.primary { background: var(--scuro); color: var(--white); }
.btn-hero.primary:hover { background: var(--rose-dark); }

.btn-hero.secondary {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .8);
    color: var(--text);
}

.btn-hero.secondary:hover { background: var(--white); }

.hero-visual {
    position: relative;
    min-height: 620px;
    border-radius: 48px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, .08)),
        radial-gradient(circle at center, #f7b4bf, #e88093 45%, #aa4057 100%);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.product-orbit {
    position: absolute;
    border-radius: 36px;
    box-shadow: 0 30px 80px rgba(82, 32, 38, 0.28);
}

.orbit-one {
    width: 160px;
    height: 430px;
    left: 18%;
    top: 15%;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .4), transparent),
        linear-gradient(#fff3ec 0 14%, #201515 14% 100%);
    transform: rotate(-14deg);
}

.orbit-two {
    width: 130px;
    height: 360px;
    right: 20%;
    top: 26%;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .34), transparent),
        linear-gradient(#1a1110 0 18%, #f0a2ad 18% 100%);
    transform: rotate(18deg);
}

.orbit-three {
    width: 220px;
    height: 220px;
    left: 36%;
    bottom: 11%;
    background:
        radial-gradient(circle at 35% 30%, #fff, transparent 22%),
        linear-gradient(135deg, #f6c0b4, #9d394f);
    border-radius: 50%;
}

.hero-card-floating {
    position: absolute;
    right: 8vw;
    bottom: 70px;
    width: 320px;
    padding: 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, .45);
    z-index: 2;
    box-shadow: var(--shadow);
}

.hero-card-floating span {
    display: block;
    margin-bottom: 8px;
    color: var(--rose-dark);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.hero-card-floating strong {
    display: block;
    font-size: 24px;
}

.hero-card-floating p {
    margin-top: 4px;
    color: var(--muted);
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--white);
}

.trust-strip div {
    padding: 26px 5vw;
    border-right: 1px solid var(--line);
}

.trust-strip strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.trust-strip span {
    color: var(--muted);
    font-size: 14px;
}

.section {
    padding: 96px 5vw;
}

.intro {
    max-width: 980px;
}

.intro h2,
.section-head h2,
.shade-content h2,
.about-text h2,
.newsletter h2 {
    font-size: clamp(36px, 5vw, 72px);
    line-height: 1.08;
    letter-spacing: -0.005em;
}

.intro p:last-child {
    max-width: 720px;
    margin-top: 24px;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.7;
}

/* Intro con immagine affiancata a destra */
.intro-split {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 56px;
    align-items: center;
    max-width: none;
}

.intro-split .intro-text {
    max-width: 640px;
}

.intro-split .intro-media {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;
    background: var(--bg-soft);
}

/* le foto stanno una sopra l'altra e si alternano in dissolvenza */
.intro-split .intro-media .intro-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.1s ease, transform 6s ease;
}

.intro-split .intro-media .intro-slide.on {
    opacity: 1;
    transform: scale(1);      /* lento avvicinamento mentre è visibile */
}

/* se ce n'è una sola, niente animazione */
.intro-split .intro-media .intro-slide:only-of-type {
    opacity: 1;
    transform: none;
}

.intro-punti {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.intro-punti button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    cursor: pointer;
    transition: all .25s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}

.intro-punti button.on { background: var(--white); width: 22px; border-radius: 20px; }

@media (max-width: 900px) {
    .intro-split {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .intro-split .intro-media {
        aspect-ratio: 16 / 10;
    }
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 34px;
}

.section-head a {
    color: var(--rose-dark);
    font-weight: 800;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.category-card {
    min-height: 360px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: var(--radius);
    overflow: hidden;
    color: white;
    box-shadow: var(--shadow);
}

.category-card span {
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.category-card h3 {
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: 0;
}

.cat-lips {
    background:
        linear-gradient(to top, rgba(40, 10, 20, .65), transparent),
        radial-gradient(circle at 60% 30%, #ffccd6, #d55b78 48%, #7e233a);
}

.cat-face {
    background:
        linear-gradient(to top, rgba(40, 20, 10, .55), transparent),
        radial-gradient(circle at 60% 30%, #ffe2c7, #d89571 48%, #744431);
}

.cat-eyes {
    background:
        linear-gradient(to top, rgba(10, 10, 20, .65), transparent),
        radial-gradient(circle at 60% 30%, #ddd3ff, #7c6ca8 48%, #241c35);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter {
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--line);
    color: var(--muted);
}

.filter.active {
    background: var(--scuro);
    color: var(--white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.category-grid-layout {
    grid-template-columns: repeat(2, 1fr);
    max-width: 820px;
    margin: 0 auto;
    gap: 30px;
}

.category-grid-layout .product-card {
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
}

.category-grid-layout .product-image {
    height: 250px;
}

@media (max-width: 768px) {
    .category-grid-layout {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    .category-grid-layout .product-card {
        max-width: 100%;
    }
}

.product-card {
    padding: 14px;
    border-radius: 30px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 14px 40px rgba(85, 45, 40, 0.08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

/* ---- Effetto al passaggio del mouse sulle card prodotto ---- */
.product-card {
    position: relative;
    isolation: isolate;
    transition: transform .35s cubic-bezier(.22, 1, .36, 1),
                box-shadow .35s ease,
                border-color .35s ease;
}

/* alone colorato dietro la card */
.product-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    background: linear-gradient(135deg, var(--rose), #c98fb0 45%, var(--rose-dark));
    filter: blur(14px);
    transition: opacity .35s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: transparent;
    box-shadow: 0 26px 60px rgba(169, 71, 89, .22);
}

.product-card:hover::before { opacity: .55; }

/* la foto respira e scorre una luce diagonale */
.product-card .product-image { position: relative; overflow: hidden; }

.product-card .product-image img {
    transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}

.product-card:hover .product-image img { transform: scale(1.08); }

.product-card .product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform .8s ease;
    pointer-events: none;
}

.product-card:hover .product-image::after { transform: translateX(120%); }

/* il pulsante si accende */
.product-card .add-to-cart { transition: background .3s ease, transform .3s ease, box-shadow .3s ease; }
.product-card:hover .add-to-cart {
    background: var(--rose-dark);
    box-shadow: 0 10px 24px rgba(169, 71, 89, .3);
}

/* il nome prodotto prende il colore del brand */
.product-card .product-info h3 { transition: color .3s ease; }
.product-card:hover .product-info h3 { color: var(--rose-dark); }

/* su touch niente hover: eviterebbe effetti "appiccicati" dopo il tap */
@media (hover: none) {
    .product-card:hover { transform: none; box-shadow: 0 14px 40px rgba(85, 45, 40, .08); }
    .product-card:hover::before { opacity: 0; }
    .product-card:hover .product-image img { transform: none; }
}

.product-image {
    position: relative;
    height: 310px;
    border-radius: 24px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.glow-skin-tint {
    background-image: url('./images/products/glow-skin-tint.png');
}

.glass-lip-oil {
    background-image: url('./images/products/glass-lip-oil.png');
}

.cloud-blush-stick {
    background-image: url('./images/products/cloud-blush-stick.png');
}

.soft-lift-mascara {
    background-image: url('./images/products/soft-lift-mascara.png');
}

.skin-cloud-concealer {
    background-image: url('./images/products/skin-cloud-concealer.png');
}

.velvet-lip-pencil {
    background-image: url('./images/products/velvet-lip-pencil.png');
}

.brow-sculpt-gel {
    background-image: url('./images/products/brow-sculpt-gel.png');
}

.soft-focus-powder {
    background-image: url('./images/products/soft-focus-powder.png');
}

.glossy-no-wet {
    background-image: url('./images/products/glossy-no-wet.png');
}

.basi-rubber {
    background-image: url('./images/products/basi-rubber.png');
}

.easy-gel-nude {
    background-image: url('./images/products/easy-gel-nude.png');
}

.seta-lashes {
    background-image: url('./images/products/seta-lashes.png');
}

.kalentin-kit {
    background-image: url('./images/products/kalentin-kit.png');
}

.corso-onicotecnica {
    background-image: url('./images/products/corso-onicotecnica.png');
}

.corso-lash-lift {
    background-image: url('./images/products/corso-lash-lift.png');
}

.lime-buffer {
    background-image: url('./images/products/lime-buffer.png');
}

.staleks-gummy {
    background-image: url('./images/products/staleks-gummy.png');
}


/* ---- Nuovi prodotti (placeholder foto: drop PNG in images/products/<id>.png) ---- */


/* ---- Prodotti reali (foto: images/products/<id>.png) ---- */
.one-step-rose {
    background-image: url('./images/products/one-step-rose.png'), linear-gradient(135deg, #f6d9d0, #e6b6a8);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}
.hard-white {
    background-image: url('./images/products/hard-white.png'), linear-gradient(135deg, #f3f0ec, #d9d2c8);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}
.kit-gel-basic {
    background-image: url('./images/products/kit-gel-basic.png'), linear-gradient(135deg, #f5e6da, #e3c3a6);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}
.art-gel-kit-6 {
    background-image: url('./images/products/art-gel-kit-6.png'), linear-gradient(135deg, #efd7e2, #c98fb0);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}
.kit-prova-acrygel {
    background-image: url('./images/products/kit-prova-acrygel.png'), linear-gradient(135deg, #f0e2d4, #d8bfa0);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}
.kit-laminazione-kalentin {
    background-image: url('./images/products/kit-laminazione-kalentin.png'), linear-gradient(135deg, #e9e2da, #c4b6a6);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}
.lampada-tavolo {
    background-image: url('./images/products/lampada-tavolo.png'), linear-gradient(135deg, #f2ded6, #dcaec0);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}
.maschera-zeolite {
    background-image: url('./images/products/maschera-zeolite.png'), linear-gradient(135deg, #e6ded0, #c3b39a);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}
.spatola-pedicure {
    background-image: url('./images/products/spatola-pedicure.png'), linear-gradient(135deg, #eae6df, #c9c0b2);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}

/* Hide any after pseudo-element mockups since we use real images */
.glow-skin-tint::after,
.glass-lip-oil::after,
.cloud-blush-stick::after,
.soft-lift-mascara::after,
.skin-cloud-concealer::after,
.velvet-lip-pencil::after,
.brow-sculpt-gel::after,
.soft-focus-powder::after,
.glossy-no-wet::after,
.basi-rubber::after,
.easy-gel-nude::after,
.seta-lashes::after,
.kalentin-kit::after,
.corso-onicotecnica::after,
.corso-lash-lift::after,
.lime-buffer::after,
.staleks-gummy::after {
    display: none;
}

.badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 1;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--white);
    font-size: 12px;
    font-weight: 900;
}

.badge.hot {
    background: var(--scuro);
    color: var(--white);
}

.product-info {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
}

.product-info h3 {
    margin-bottom: 5px;
    font-size: 19px;
    letter-spacing: 0;
}

.product-info p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.35;
}

.product-info strong {
    white-space: nowrap;
}

.shade-row {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.shade-row span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 1px var(--line);
}

.rating {
    margin-top: 16px;
    color: var(--rose-dark);
    font-size: 14px;
}

.rating span {
    color: var(--muted);
}

.add-to-cart {
    width: 100%;
    margin-top: 18px;
    padding: 15px;
    border-radius: 999px;
    background: var(--scuro);
    color: var(--white);
    font-weight: 900;
}

.add-to-cart:hover {
    background: var(--rose-dark);
}

.shade-finder {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 42px;
    align-items: center;
    margin: 40px 5vw;
    padding: 70px;
    border-radius: 42px;
    background:
        radial-gradient(circle at 86% 22%, rgba(255, 255, 255, .8), transparent 24%),
        linear-gradient(135deg, #f4b2bd, #9c3a51);
    color: white;
    box-shadow: var(--shadow);
}

.shade-content p:not(.eyebrow) {
    max-width: 540px;
    margin: 22px 0 30px;
    color: rgba(255, 255, 255, .82);
    font-size: 18px;
    line-height: 1.7;
}

.shade-content .eyebrow {
    color: rgba(255, 255, 255, .78);
}

.quiz-box {
    padding: 34px;
    border-radius: 32px;
    background: rgba(255, 255, 255, .75);
    backdrop-filter: blur(22px);
    color: var(--text);
}

.quiz-box span {
    display: block;
    margin-bottom: 12px;
    color: var(--rose-dark);
    font-weight: 900;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .14em;
}

.quiz-box h3 {
    font-size: 34px;
    letter-spacing: 0;
}

.quiz-options {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.quiz-options button {
    padding: 16px;
    border-radius: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    text-align: left;
    font-weight: 800;
}

.quiz-options button:hover {
    background: var(--scuro);
    color: var(--white);
}

.routine-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.routine-grid article {
    position: relative;
    min-height: 260px;
    padding: 34px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .7);
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 10px 30px rgba(85, 45, 40, .06);
    transition: transform .45s cubic-bezier(.22,1,.36,1), box-shadow .45s ease, border-color .45s ease;
}

/* alone che segue il mouse dentro la card */
.routine-grid article::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    left: var(--mx, 50%);
    top: var(--my, 50%);
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(223, 125, 141, .30), transparent 62%);
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
    z-index: -1;
}

/* bordo luminoso che si accende */
.routine-grid article::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--rose), transparent 40%, transparent 60%, var(--rose-dark));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}

.routine-grid article:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 60px rgba(85, 45, 40, .16);
    border-color: transparent;
}

.routine-grid article:hover::before { opacity: 1; }
.routine-grid article:hover::after { opacity: 1; }

/* il numero cresce e sbiadisce sullo sfondo */
.routine-grid article span {
    position: relative;
    transition: transform .45s cubic-bezier(.22,1,.36,1), color .45s ease;
}

.routine-grid article:hover span { transform: translateY(-4px); color: var(--rose); }

.routine-grid article h3 { transition: color .35s ease; }
.routine-grid article:hover h3 { color: var(--rose-dark); }

@media (hover: none) {
    .routine-grid article:hover { transform: none; }
    .routine-grid article:hover::before,
    .routine-grid article:hover::after { opacity: 0; }
}

.routine-grid span {
    display: inline-block;
    margin-bottom: 44px;
    color: var(--rose-dark);
    font-weight: 900;
}

.routine-grid h3 {
    margin-bottom: 12px;
    font-size: 34px;
    letter-spacing: 0;
}

.routine-grid p {
    color: var(--muted);
    line-height: 1.65;
}

.ugc-section {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 42px;
    align-items: center;
    padding: 96px 5vw;
    background: var(--scuro);
    color: var(--white);
}

.ugc-text p:not(.eyebrow) {
    max-width: 440px;
    color: rgba(255, 255, 255, .72);
    line-height: 1.7;
}

.ugc-text h2 {
    margin-bottom: 22px;
    font-size: clamp(44px, 6vw, 86px);
    line-height: 1.05;
    letter-spacing: -0.005em;
}

.ugc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.ugc-grid > * {
    min-height: 330px;
    border-radius: 28px;
    background-size: cover;
    background-position: center;
    display: block;
    transition: filter .3s ease;
}

.ugc-grid > *:hover {
    animation-play-state: paused;
    filter: brightness(1.15);
    cursor: pointer;
}

.ugc-grid > *:nth-child(1) { animation: eq-bar-1 2.2s ease-in-out infinite alternate; }
.ugc-grid > *:nth-child(2) { margin-top: 44px; animation: eq-bar-2 1.6s ease-in-out infinite alternate; }
.ugc-grid > *:nth-child(3) { animation: eq-bar-3 2.6s ease-in-out infinite alternate; }
.ugc-grid > *:nth-child(4) { margin-top: 44px; animation: eq-bar-4 1.9s ease-in-out infinite alternate; }

@media (prefers-reduced-motion: reduce) {
    .ugc-grid > * { animation: none !important; }
}

@keyframes eq-bar-1 {
    0% { transform: translateY(0); }
    100% { transform: translateY(-35px); }
}

@keyframes eq-bar-2 {
    0% { transform: translateY(0); }
    100% { transform: translateY(-25px); }
}

@keyframes eq-bar-3 {
    0% { transform: translateY(0); }
    100% { transform: translateY(-40px); }
}

@keyframes eq-bar-4 {
    0% { transform: translateY(0); }
    100% { transform: translateY(-30px); }
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.review-grid article {
    padding: 30px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--line);
}

.review-grid div {
    color: var(--rose-dark);
    margin-bottom: 18px;
}

.review-grid p {
    min-height: 100px;
    color: var(--muted);
    line-height: 1.7;
}

.review-grid strong {
    display: block;
    margin-top: 18px;
}

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 54px;
    align-items: center;
    padding: 96px 5vw;
}

.about-image {
    min-height: 620px;
    border-radius: 42px;
    background:
        linear-gradient(to top, rgba(30, 10, 14, .24), transparent),
        radial-gradient(circle at 50% 28%, #ffe4db, #cc7a86 48%, #5e2737);
    box-shadow: var(--shadow);
}

.about-text p:not(.eyebrow) {
    max-width: 560px;
    margin: 24px 0 30px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.75;
}

/* ---- Sezione brand su fondo scuro, loghi grandi ---- */
.brands-dark {
    background: var(--scuro);
    color: var(--white);
}

.brands-dark .eyebrow {
    color: var(--rose);
}

.brands-dark .brand-row {
    display: flex;
    flex-wrap: nowrap;          /* tutti i loghi su una sola riga */
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 2vw, 34px);
    max-width: 1600px;
    margin: 0 auto;
}

.brands-dark .brand-row img {
    height: clamp(46px, 5vw, 86px);
    width: auto;
    max-width: 12%;
    object-fit: contain;
    /* i loghi sono scuri: li rendo bianchi per il fondo scuro */
    filter: brightness(0) invert(1);
    opacity: .78;
    transition: opacity .3s ease, transform .3s ease;
}

.brands-dark .brand-row img:hover {
    opacity: 1;
    transform: translateY(-3px);
}

@media (max-width: 760px) {
    /* su telefono una riga sola sarebbe illeggibile: torno a due righe */
    .brands-dark .brand-row { flex-wrap: wrap; gap: 26px 34px; }
    .brands-dark .brand-row img { height: 32px; max-width: 26%; }
}

/* ---- Banner corsi ---- */
.banner-corsi {
    position: relative;
    margin: 64px 5vw 30px;
    padding: 74px 8%;
    border-radius: 42px;
    overflow: hidden;
    text-align: center;
    color: var(--white);
    background:
        linear-gradient(120deg, rgba(30, 12, 18, .82), rgba(120, 40, 62, .68)),
        radial-gradient(circle at 75% 25%, #f4b2bd, #9c3a51);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
}

.banner-corsi .eyebrow {
    color: rgba(255, 255, 255, .85);
}

.banner-corsi h2 {
    font-size: clamp(32px, 4.4vw, 58px);
    line-height: 1.08;
    margin-bottom: 16px;
}

.banner-corsi p {
    max-width: 640px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, .84);
    font-size: 18px;
    line-height: 1.65;
}

.banner-corsi .btn.primary {
    background: var(--white);
    color: var(--text);
}

.banner-corsi .btn.secondary {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .5);
    color: var(--white);
}

.banner-corsi .banner-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 760px) {
    .banner-corsi { padding: 52px 26px; border-radius: 30px; margin-left: 5vw; margin-right: 5vw; }
}

/* ---- Foto di testata sulle pagine interne ---- */
.page-hero {
    position: relative;
    /* stessa proporzione dei banner del brand: nessun taglio */
    aspect-ratio: 1920 / 455;
    max-height: 380px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 34px;
    background: var(--bg-soft);
}

@media (max-width: 700px) {
    .page-hero {
        aspect-ratio: 16 / 9;
    }
}

.page-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---- Prodotti correlati ---- */
.correlati {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 20px;
}

.correlati .product-grid {
    grid-template-columns: repeat(4, 1fr);
}

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

/* ---- Sottotitolo "scritto a mano" sotto i titoli di sezione ---- */
.firma {
    display: block;
    margin-top: 6px;
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(20px, 2.4vw, 34px);
    line-height: 1.15;
    color: var(--rose);
    opacity: .55;
    white-space: nowrap;
    /* il testo si scopre da sinistra come se una penna lo stesse scrivendo */
    -webkit-mask-image: linear-gradient(90deg, #000 0 0);
    mask-image: linear-gradient(90deg, #000 0 0);
    -webkit-mask-size: 0% 100%;
    mask-size: 0% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.firma.scritta {
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    transition: -webkit-mask-size 1.5s cubic-bezier(.35,.9,.4,1), mask-size 1.5s cubic-bezier(.35,.9,.4,1);
}

/* chi ha chiesto meno animazioni la vede già scritta */
@media (prefers-reduced-motion: reduce) {
    .firma { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
}

.ugc-text .firma, .brands-dark .firma { color: var(--rose); opacity: .7; }

/* ---- News ---- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.news-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    text-decoration: none;
    color: inherit;
    transition: transform .25s ease, box-shadow .25s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.news-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-soft);
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-body { padding: 22px; }

.news-data {
    display: block;
    margin-bottom: 8px;
    color: var(--rose-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.news-body h3 { font-size: 21px; line-height: 1.3; margin-bottom: 8px; }
.news-body p { color: var(--muted); font-size: 15px; line-height: 1.6; }

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

.newsletter {
    margin: 30px 5vw 96px;
    padding: 70px;
    text-align: center;
    border-radius: 42px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.newsletter form {
    max-width: 620px;
    display: flex;
    gap: 10px;
    margin: 32px auto 14px;
}

.newsletter input {
    flex: 1;
    min-height: 58px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid var(--line);
    outline: none;
    background: var(--bg);
}

.newsletter button {
    min-height: 58px;
    padding: 0 26px;
    border-radius: 999px;
    background: var(--scuro);
    color: var(--white);
    font-weight: 900;
}

.newsletter small {
    color: var(--muted);
}

.footer {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 30px;
    padding: 52px 5vw 40px;
    background: var(--scuro);
    color: var(--white);
}

.footer p {
    max-width: 330px;
    margin-top: 16px;
    color: rgba(255, 255, 255, .64);
    line-height: 1.6;
}

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

.footer a:not(.logo) {
    display: block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, .64);
    transition: color .2s ease;
}

.footer a:not(.logo):hover { color: var(--white); }

/* social nel footer */
.footer-social { display: flex; gap: 12px; margin-top: 20px; }

.footer-social a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0 !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    color: rgba(255, 255, 255, .8);
    transition: all .25s ease;
}

.footer-social a:hover {
    background: var(--rose);
    border-color: var(--rose);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-social svg { width: 19px; height: 19px; }

.footer-whatsapp {
    display: inline-block !important;
    margin-top: 18px !important;
    padding: 11px 22px;
    border-radius: 999px;
    background: #25D366;
    color: var(--white) !important;
    font-size: 14px;
    font-weight: 600;
    transition: transform .25s ease, box-shadow .25s ease;
}

.footer-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(37, 211, 102, .35); }

/* dati dell'azienda su una riga, tra il footer e la riga finale */
.footer-azienda {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 0;
    padding: 16px 5vw;
    background: var(--scuro);
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .55);
    font-size: 12.5px;
    line-height: 1.5;
}
.footer-azienda > * { white-space: nowrap; }
.footer-azienda > * + *::before { content: '·'; margin: 0 12px; color: rgba(255, 255, 255, .3); }
.footer-azienda strong { color: rgba(255, 255, 255, .85); font-weight: 600; }
.footer-azienda a { color: rgba(255, 255, 255, .62); }
.footer-azienda a:hover { color: var(--white); }
@media (max-width: 700px) {
    .footer-azienda { flex-direction: column; align-items: flex-start; }
    .footer-azienda > * + *::before { display: none; }
}

/* riga finale sotto il footer */
.footer-basso {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 5vw;
    background: #0a0a0a;
    color: rgba(255, 255, 255, .5);
    font-size: 12.5px;
}

.footer-basso a { color: rgba(255, 255, 255, .62); }
.footer-basso a:hover { color: var(--white); }

@media (max-width: 700px) {
    .footer-basso { flex-direction: column; align-items: flex-start; text-align: left; }
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -440px;
    z-index: 100;
    width: min(440px, 100%);
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--white);
    box-shadow: -30px 0 80px rgba(0, 0, 0, .18);
    transition: right .3s ease;
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--line);
}

.cart-header h3 {
    font-size: 26px;
}

.cart-header button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-soft);
    font-size: 28px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.empty-cart {
    color: var(--muted);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.cart-item strong {
    display: block;
    margin-bottom: 4px;
}

.cart-item span {
    color: var(--muted);
    font-size: 14px;
}

.cart-item button {
    background: transparent;
    color: var(--rose-dark);
    font-weight: 900;
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--line);
}

.cart-footer div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    font-size: 20px;
}

.checkout-btn {
    width: 100%;
    padding: 17px;
    border-radius: 999px;
    background: var(--scuro);
    color: var(--white);
    font-weight: 900;
}

.overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    background: rgba(0, 0, 0, .35);
}

.overlay.show {
    display: block;
}

@media (max-width: 1100px) {

    .shade-finder,
    .about,
    .ugc-section {
        grid-template-columns: 1fr;
    }

    .hero-card-floating {
        display: none;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .ugc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .mobile-menu.open {
        display: block;
    }

    .hero {
        min-height: auto;
        padding: 54px 5vw;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-logo {
        height: 140px;
        margin: 24px 0 0;
    }

    .hero h1 {
        font-size: 58px;
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-visual {
        min-height: 420px;
        border-radius: 34px;
    }

    .orbit-one {
        left: 12%;
        width: 120px;
        height: 330px;
    }

    .orbit-two {
        right: 12%;
        width: 100px;
        height: 300px;
    }

    .orbit-three {
        width: 170px;
        height: 170px;
        left: 30%;
    }

    .trust-strip,
    .category-grid,
    .product-grid,
    .routine-grid,
    .review-grid,
    .footer {
        grid-template-columns: 1fr;
    }

    .section,
    .about,
    .ugc-section {
        padding: 64px 5vw;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-card {
        min-height: 270px;
    }

    .product-image {
        height: 280px;
    }

    .shade-finder,
    .newsletter {
        margin-left: 5vw;
        margin-right: 5vw;
        padding: 38px 24px;
        border-radius: 30px;
    }

    .newsletter form {
        flex-direction: column;
    }

    .about-image {
        min-height: 430px;
    }

    .ugc-grid > *,
    .ugc-grid > *:nth-child(2),
    .ugc-grid > *:nth-child(4) {
        min-height: 240px;
        margin-top: 0;
    }
}

/* Navigation Dropdowns */
.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px 0;
    min-width: 210px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 100;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    text-align: left;
}

.dropdown-menu a:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--rose-dark);
}

/* Shop Sidebar Layout */
.shop-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    padding: 70px 5vw;
    align-items: start;
}

.shop-sidebar {
    position: sticky;
    top: 120px;
}

.shop-sidebar h3 {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    font-family: var(--font-main);
    font-weight: 700;
}

.sidebar-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-filters .filter {
    background: none;
    border: none;
    padding: 12px 16px;
    border-radius: 12px;
    width: 100%;
    text-align: left;
    color: var(--muted);
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-filters .filter:hover {
    background: rgba(0, 0, 0, 0.02);
    color: var(--text);
}

.sidebar-filters .filter.active {
    background: var(--scuro);
    color: var(--white);
}

.sidebar-filters .filter .count {
    font-size: 12px;
    opacity: 0.7;
}

/* Product Card Perfect Alignment */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin-top: 18px;
}

.product-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-grow: 1;
    margin-bottom: 8px;
}

.product-info h3 {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.3;
}

.product-info p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
    margin-top: 6px;
}

.rating {
    margin-top: auto;
    margin-bottom: 12px;
    color: var(--rose-dark);
    font-size: 14px;
}

.shade-row {
    display: flex;
    gap: 8px;
    height: 24px; /* Fix height for alignment */
    margin-bottom: 16px;
}

.add-to-cart {
    width: 100%;
    margin-top: auto;
    padding: 15px;
    border-radius: 999px;
    background: var(--scuro);
    color: var(--white);
    font-weight: 900;
}

/* Responsive adjustments for shop container */
@media (max-width: 1024px) {
    .shop-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .shop-sidebar {
        position: static;
    }
    .sidebar-filters {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
        white-space: nowrap;
    }
    .sidebar-filters .filter {
        width: auto;
    }
}

/* ============================================
   MOBILE OVERRIDES — kept last so cascade wins
   (fixes .nav-links re-shown by later desktop rule)
   ============================================ */
@media (max-width: 760px) {

    .nav-links,
    .nav-actions {
        display: none !important;
    }

    .menu-btn {
        display: block !important;
    }

    .navbar {
        padding: 14px 5vw;
    }

    .navbar .logo {
        font-size: 20px;
    }

    /* subpage navbar logo image */
    .navbar .logo img {
        height: 56px !important;
    }

    .top-banner {
        font-size: 12px;
        padding: 8px 12px;
        text-align: center;
    }

    /* Hero — centered stack on phone */
    .hero {
        min-height: 78vh;
        padding: 48px 6vw;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        align-items: center;
        text-align: center;
    }

    .hero-logo {
        width: min(440px, 88vw);
        height: auto;
        margin: 0 0 8px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 340px;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    /* Headings scale down */
    .hero h1 {
        font-size: clamp(38px, 11vw, 56px);
        line-height: 0.95;
    }

    .section h2,
    .about h2,
    .ugc-section h2 {
        font-size: clamp(30px, 8vw, 44px);
    }

    /* Single-column everywhere that was multi */
    .trust-strip,
    .category-grid,
    .product-grid,
    .routine-grid,
    .review-grid,
    .ugc-grid,
    .footer,
    .about,
    .ugc-section {
        grid-template-columns: 1fr !important;
    }

    .section,
    .about,
    .ugc-section {
        padding: 56px 6vw;
    }

    /* Bulletproof: nothing may exceed the viewport width on phones */
    main {
        overflow-x: hidden;
    }

    main *,
    footer * {
        max-width: 100%;
    }

    p, h1, h2, h3, li, a, span, strong {
        overflow-wrap: break-word;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .hero-card-floating {
        display: none;
    }

    /* Force ANY inline-styled grid to single column on phone
       (subpages set grid-template-columns inline; !important beats inline) */
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    /* Product detail page: image + info stack */
    .product-detail,
    .shop-container {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }

    /* CRITICAL: let grid/flex children shrink below content width.
       Without min-width:0 the nowrap sidebar filter row forces the
       whole grid track to ~700px -> everything clipped at screen edge. */
    .shop-container > *,
    .shop-sidebar,
    .shop-main,
    .product-detail > *,
    .product-card,
    .product-card-body,
    .product-info,
    .product-info > div,
    .section-head,
    .section-head > div {
        min-width: 0 !important;
    }

    /* Grid items must not exceed their track (fixes image + text
       overflowing the column by ~40px on narrow phones) */
    .product-detail > * {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        justify-self: stretch;
    }

    .product-detail .product-image {
        height: 62vh !important;
        max-height: 460px;
    }

    .sidebar-filters {
        min-width: 0;
        max-width: 100%;
    }

    /* Breathing room for card text so price isn't glued to edge */
    .product-card-body {
        padding: 0 16px 16px;
    }

    .product-info strong {
        white-space: nowrap;
        padding-left: 10px;
    }

    /* Product detail text must wrap inside column, never overflow */
    .product-specs {
        min-width: 0 !important;
        max-width: 100%;
    }

    .product-specs p,
    .product-specs h1 {
        max-width: 100% !important;
        overflow-wrap: anywhere;
    }

    /* Kill horizontal overflow anywhere */
    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }

    img {
        max-width: 100%;
    }

    /* Inline two-col flex blocks stack */
    [style*="display: grid"],
    [style*="display:grid"] {
        gap: 24px !important;
    }

    /* Dropdown menus never float on mobile menu */
    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        min-width: 0;
        padding: 4px 0 4px 14px;
        background: transparent;
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 440px) {
    .hero-logo {
        width: 92vw;
    }

    .hero h1 {
        font-size: clamp(32px, 12vw, 44px);
    }

    .product-image {
        height: 240px;
    }
}
/* ============================================
   MENU DEL TELEFONO (ottobre 2026)
   Pannello sotto la barra che scorre da solo; la pagina sotto resta ferma.
   Il carrello resta visibile in alto anche sul telefono.
   ============================================ */
@media (max-width: 760px) {
    .mobile-menu {
        top: var(--menu-top, 84px);
        bottom: 0;
        z-index: 45;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding: 10px 6vw calc(28px + env(safe-area-inset-bottom));
        box-shadow: 0 20px 30px rgba(0, 0, 0, .08);
    }

    .mobile-menu a {
        font-size: 17px;
        font-weight: 600;
        padding: 12px 0;
        border-bottom: 1px solid var(--line);
    }

    .mobile-menu a.mm-forte {
        font-size: 20px;
        font-weight: 800;
    }

    .mobile-menu .mm-titolo {
        display: block;
        margin: 22px 0 2px;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .14em;
        text-transform: uppercase;
        color: var(--rose);
    }

    .mobile-menu .mm-azioni {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 24px;
    }

    .mobile-menu .mm-azioni a {
        border: 1px solid var(--line);
        border-radius: 999px;
        padding: 12px 10px;
        text-align: center;
        font-size: 15px;
        font-weight: 700;
    }

    .mobile-menu .mm-azioni a:first-child {
        background: var(--scuro);
        color: var(--white);
        border-color: var(--scuro);
    }

    html.menu-aperto,
    html.menu-aperto body {
        overflow: hidden;
    }

    .menu-btn {
        width: 44px;
        height: 44px;
        line-height: 44px;
        text-align: center;
        padding: 0;
        color: var(--scuro);
    }

    /* carrello visibile anche sul telefono (prima spariva con tutta la barra) */
    .navbar .nav-actions {
        display: flex !important;
        margin-left: auto;
        margin-right: 6px;
    }

    .navbar .nav-actions .search-box,
    .navbar .nav-actions > a.cart-btn {
        display: none;
    }
}

/* Telefono: campi a 16px. Sotto i 16px l'iPhone ingrandisce la pagina quando
   tocchi un campo e la lascia ingrandita (sembra "incastrata"). */
@media (max-width: 760px) {
    input:not([type=checkbox]):not([type=radio]):not([type=range]),
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* pallini del banner: piccoli da vedere, ma comodi da toccare */
.banner-punti button { position: relative; }
.banner-punti button::after { content: ''; position: absolute; inset: -12px; }

/* Carrello e checkout: il riquadro "Il tuo ordine" è appiccicoso (sticky) sul
   computer, dove sta a fianco del modulo. Sul telefono sta SOTTO il modulo e
   restando appiccicoso si sovrapponeva alla casella della newsletter. */
.cart-page-grid > aside { background: var(--bg); }
@media (max-width: 820px) {
    .cart-page-grid > aside {
        position: static !important;
        top: auto !important;
        margin-top: 8px;
    }
}

/* Safari su iPhone calcolava l'altezza della colonna del modulo come se il
   testo della casella newsletter stesse su una riga: il riquadro "Il tuo
   ordine" finiva sopra. Le righe del modulo devono poter andare a capo. */
.cart-page-grid > * { min-width: 0; max-width: 100%; }
.co-check span, .pay-opt > span { min-width: 0; flex: 1 1 auto; }
@media (max-width: 820px) {
    .cart-page-grid { grid-template-rows: auto auto; grid-auto-rows: auto; }
    .cart-page-grid > aside { margin-top: 28px; }
}

/* SEO: titolo di pagina presente ma invisibile (home: c'è solo il logo) */
.visivamente-nascosto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* h1 dello shop con lo stesso aspetto degli h2 */
h1.h2 { font-size: clamp(36px, 5vw, 72px); line-height: 1.08; letter-spacing: -0.005em; font-weight: 500; margin: 0; }

/* avviso sopra il bottone di carrello e checkout (testo dal pannello) */
.co-avviso { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 16px; padding: 13px 14px; border-radius: 14px; background: #fff1f4; border: 1px solid rgba(179, 6, 109, .18); color: #7a1246; }
.co-avviso svg { width: 24px; height: 24px; flex: none; margin-top: 1px; }
.co-avviso p { margin: 0; font-size: 14px; line-height: 1.4; }
.co-avviso strong { color: #b3066d; }

/* popup di benvenuto in home (banner dal pannello) */
.pop-banner { width: min(92vw, 760px); padding: 0; border: 0; border-radius: 22px; overflow: hidden; background: #fff; color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); position: fixed; inset: 0; margin: auto; }
.pop-banner::backdrop { background: rgba(20, 10, 14, .55); backdrop-filter: blur(3px); }
.pop-banner img { display: block; width: 100%; height: auto; }
.pop-banner-chiudi { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--scuro); font-size: 16px; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); z-index: 1; }
.pop-banner-corpo { padding: 22px 26px 26px; }
.pop-banner-sopra { margin: 0 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--rose-dark); }
.pop-banner-corpo h2 { margin: 0 0 10px; font-size: clamp(22px, 3vw, 30px); line-height: 1.1; }
.pop-banner-corpo p { margin: 0 0 18px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.pop-banner-ok { display: block; width: 100%; border: 0; cursor: pointer; padding: 14px; text-align: center; }
@media (max-width: 600px) { .pop-banner-corpo { padding: 18px 18px 20px; } .pop-banner-corpo h2 { font-size: 22px; } }

/* carrello: spedizione spiegata chiaramente, con barra verso la soglia gratis */
.ship-hint { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: #fff1f4; border: 1px solid rgba(179, 6, 109, .14); }
.ship-hint p { margin: 0 0 8px; font-size: 13px; line-height: 1.4; color: var(--text); }
.ship-hint strong { color: #b3066d; }
.ship-bar { height: 6px; border-radius: 999px; background: rgba(179, 6, 109, .12); overflow: hidden; }
.ship-bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: #b3066d; transition: width .4s ease; }
.ship-hint.ok { background: #eefaf2; border-color: rgba(28, 124, 67, .2); }
.ship-hint.ok strong { color: #1c7c43; }
.ship-hint.ok .ship-bar span { background: #1c7c43; }
.co-ship-nota { margin: -6px 0 14px; font-size: 12px; color: var(--muted); }

/* conferma ordine con bonifico: ricevuta su WhatsApp */
.co-wa-ricevuta { display: flex; gap: 12px; align-items: center; margin-top: 14px; padding: 13px 16px; border-radius: 14px; background: #e9f9ee; border: 1px solid rgba(28, 124, 67, .25); color: #155c35; text-decoration: none; font-size: 14px; line-height: 1.45; }
.co-wa-ricevuta svg { width: 28px; height: 28px; flex: none; color: #25d366; }
.co-wa-ricevuta:hover { background: #dff5e6; }

/* shop: sottocategorie della categoria scelta (es. Vybi Nails → Acrygel, Polish…) */
.sotto-cat { margin: -10px 0 26px; }
.sotto-cat-briciole { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.sotto-cat-briciole a { color: var(--muted); text-decoration: none; }
.sotto-cat-briciole a:hover { color: var(--text); }
.sotto-cat-briciole span { margin: 0 4px; }
.sotto-cat-briciole strong { color: var(--text); font-weight: 600; }
.sotto-cat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sotto-cat-chips .chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--text); font-size: 14px; font-weight: 500; text-decoration: none; }
.sotto-cat-chips .chip small { font-size: 12px; color: var(--muted); }
.sotto-cat-chips .chip:hover { border-color: var(--scuro); }
.sotto-cat-chips .chip.active { background: var(--scuro); color: var(--white); border-color: var(--scuro); }
.sotto-cat-chips .chip.active small { color: rgba(255, 255, 255, .7); }
@media (max-width: 760px) { .sotto-cat-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; } .sotto-cat-chips .chip { flex: none; } }

/* scheda prodotto: miniature affiancate (prima su telefono finivano una sotto l'altra, enormi) */
.pm-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pm-thumb { width: 76px; height: 76px; flex: none; border-radius: 12px; background: #fff; border: 2px solid transparent; padding: 0; cursor: pointer; overflow: hidden; }
.pm-thumb picture, .pm-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pm-thumb.attiva { border-color: #b3066d; }
@media (max-width: 760px) { .pm-thumb { width: 64px; height: 64px; } }

/* checkout: ritiro in negozio */
.co-ritiro { border: 1px solid rgba(179, 6, 109, .18); background: #fff6f8; border-radius: 16px; padding: 16px; }
.co-ritiro-titolo { margin: 0 0 10px; font-weight: 600; }
.co-sede { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.co-sede input { margin-top: 4px; }
.co-sede span { display: flex; flex-direction: column; gap: 2px; }
.co-sede small { color: var(--muted); font-size: 12px; }
.co-sede:has(input:checked) { border-color: #b3066d; background: rgba(179, 6, 109, .04); }
.co-ritiro-nota { margin: 12px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.co-codice-ritiro { text-align: center; margin: 14px 0; padding: 18px; border-radius: 16px; background: var(--bg-soft); }
.co-codice-ritiro small { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.co-codice-ritiro strong { font-family: var(--font-heading); font-size: 34px; letter-spacing: .04em; color: #b3066d; }

/* shop: sottocategorie dentro la colonna di sinistra; i bottoni sopra i prodotti solo sul telefono */
.sub-filters { display: flex; flex-direction: column; gap: 4px; margin: -2px 0 6px 14px; padding-left: 10px; border-left: 2px solid var(--line); }
.sidebar-filters .filter.sub { padding: 8px 12px; font-size: 14px; }
.sidebar-filters .filter.sub.livello { color: var(--text); font-weight: 600; }
.sidebar-filters .filter.sub.active { background: #b3066d; color: #fff; }
@media (min-width: 821px) { .sotto-cat-chips { display: none; } .sotto-cat { margin-bottom: 18px; } }
@media (max-width: 820px) { .sub-filters { display: none; } }

/* shop: la colonna categorie resta fissa ma, se è più alta dello schermo,
   scorre per conto suo (prima la parte bassa si vedeva solo a fine pagina) */
@media (min-width: 821px) {
    .shop-sidebar { max-height: calc(100vh - 140px); overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; scrollbar-width: thin; }
}

/* ============================================
   Corsi: vetrina del Percorso Accademico (13 corsi)
   ============================================ */
.acc { padding: 56px 5vw 10px; }
.acc-dentro { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; max-width: 1180px; margin: 0 auto; padding: 48px 52px; border-radius: 32px; background: radial-gradient(120% 140% at 85% 10%, #4a1230 0%, #2a0d1f 45%, #170a12 100%); color: #fff; box-shadow: 0 40px 90px rgba(74, 18, 48, .35); }
.acc-luce { position: absolute; inset: -40% -20% auto -20%; height: 120%; background: radial-gradient(closest-side at 70% 20%, rgba(255, 190, 210, .35), transparent 70%); pointer-events: none; animation: accLuce 9s ease-in-out infinite alternate; }
@keyframes accLuce { from { transform: translate3d(-4%, 0, 0); } to { transform: translate3d(6%, 4%, 0); } }
.acc-testo { position: relative; z-index: 1; }
.acc-sopra { display: inline-block; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #ffd6e2; }
.acc h2 { margin: 18px 0 14px; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.02; color: #fff; }
.acc h2 .cs-luce { color: #ffb3c9; font-style: italic; }
.acc-testo > p { margin: 0 0 18px; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .82); max-width: 54ch; }
.acc-punti { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.acc-punti li { padding-left: 26px; position: relative; font-size: 15px; color: rgba(255, 255, 255, .9); }
.acc-punti li::before { content: ''; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #ffb3c9; box-shadow: 0 0 0 4px rgba(255, 179, 201, .18); }
.acc-prezzo { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.acc-prezzo s { font-size: 20px; color: rgba(255, 255, 255, .5); }
.acc-prezzo strong { font-family: var(--font-heading); font-size: clamp(40px, 5vw, 64px); line-height: 1; color: #fff; }
.acc-prezzo em { font-style: normal; padding: 6px 12px; border-radius: 999px; background: #ffb3c9; color: #4a1230; font-size: 13px; font-weight: 800; }
.acc-azioni { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.acc-btn { background: #fff !important; color: #2a0d1f !important; border: 0; padding: 16px 28px; border-radius: 999px; font-weight: 800; font-size: 15px; cursor: pointer; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); transition: transform .2s ease; }
.acc-btn:hover { transform: translateY(-2px); }
.acc-wa { color: #fff; text-decoration: none; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .4); padding-bottom: 2px; }
.acc-nota { display: block; margin-top: 16px; font-size: 12px; color: rgba(255, 255, 255, .55); }
.acc-foto { position: relative; z-index: 1; }
.acc-foto img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 24px; box-shadow: 0 30px 60px rgba(0, 0, 0, .4); transform: rotate(2deg); }
.acc-bollo { position: absolute; left: -18px; bottom: 22px; width: 104px; height: 104px; border-radius: 50%; background: #fff; color: #2a0d1f; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 16px 36px rgba(0, 0, 0, .35); transform: rotate(-8deg); }
.acc-bollo b { font-family: var(--font-heading); font-size: 40px; line-height: 1; }
.acc-bollo span { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 900px) {
    .acc { padding: 36px 4vw 0; }
    .acc-dentro { grid-template-columns: 1fr; gap: 26px; padding: 30px 24px 34px; border-radius: 24px; }
    .acc-foto { order: -1; max-width: 320px; margin: 0 auto; }
    .acc-foto img { transform: none; }
    .acc-bollo { left: auto; right: -10px; bottom: -14px; width: 84px; height: 84px; }
    .acc-bollo b { font-size: 32px; }
    .acc-btn { width: 100%; text-align: center; }
}
