:root {
    --background: #f2ede3;
    --surface: #ffffff;
    --text: #111111;
    --muted: #6f6a63;
    --border: rgba(17, 17, 17, 0.16);
    --cream: #e5d4b7;

    --font-title: "League Spartan", sans-serif;
    --font-body: "Inter", sans-serif;

    --header-height: 84px;
    --container: 1240px;

    --shadow: 0 24px 70px rgba(17, 17, 17, 0.16);
    --transition: 220ms ease;
}

/* ==================================================
   RESET
================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
    max-width: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    width: 100%;
    min-width: 320px;
    max-width: 100%;

    overflow-x: hidden;

    background: var(--background);
    color: var(--text);

    font-family: var(--font-body);
    line-height: 1.5;
}

body.no-scroll {
    overflow: hidden;
}

img,
picture,
video,
svg {
    display: block;

    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.is-hidden {
    display: none !important;
}

/* ==================================================
   LOGO
================================================== */

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    display: block;
    height: 100px;
    width: auto;
}

/* ==================================================
   ELEMENTI GENERALI
================================================== */

.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

.section {
    padding: 120px 0;
}

.eyebrow,
.section-index {
    font-size: 0.75rem;
    font-weight: 600;

    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.section-index {
    color: var(--muted);
}

h1,
h2,
h3,
.brand {
    font-family: var(--font-title);
}

h1,
h2,
h3,
p {
    overflow-wrap: break-word;
}

h2 {
    font-size: clamp(2.7rem, 6vw, 5.8rem);
    line-height: 0.92;

    letter-spacing: -0.045em;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 52px;

    padding: 0 24px;

    border: 1px solid transparent;

    background: transparent;

    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.2;

    letter-spacing: 0.05em;
    text-align: center;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        transform var(--transition),
        background var(--transition),
        color var(--transition),
        border-color var(--transition);
}

.button:hover {
    transform: translateY(-2px);
}

.button--dark {
    background: var(--text);
    color: var(--surface);
}

.button--dark:hover {
    background: #303030;
}

.button--light {
    background: var(--surface);
    color: var(--text);
}

.button--ghost {
    border-color: var(--text);

    color: var(--text);
}

.button--ghost:hover {
    background: var(--text);
    color: var(--surface);
}

.button--full {
    width: 100%;
}

/* ==================================================
   HEADER
================================================== */

.site-header {
    position: fixed;
    z-index: 1000;

    top: 0;
    right: 0;
    left: 0;

    display: flex;
    align-items: center;

    width: 100%;
    min-height: var(--header-height);

    padding: 16px 4vw;

    border-bottom: 1px solid transparent;

    transition:
        background var(--transition),
        border-color var(--transition),
        backdrop-filter var(--transition);
}

.site-header.is-scrolled {
    border-bottom-color: var(--border);

    background: rgba(242, 237, 227, 0.94);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.brand {
    position: relative;
    z-index: 1004;

    display: inline-flex;
    flex-shrink: 0;
    flex-direction: column;

    line-height: 0.78;
}

.brand__name {
    font-size: 2rem;
    font-weight: 800;

    letter-spacing: 0.14em;
}

.brand__sub {
    margin-top: 8px;

    font-family: var(--font-body);
    font-size: 0.55rem;
    font-weight: 500;

    letter-spacing: 0.45em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;

    margin-left: auto;

    gap: 30px;
}

.main-nav a {
    position: relative;

    font-size: 0.82rem;
    font-weight: 500;

    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.main-nav a::after {
    position: absolute;

    right: 0;
    bottom: -7px;
    left: 0;

    height: 1px;

    background: var(--text);

    content: "";

    transform: scaleX(0);
    transform-origin: right;

    transition: transform var(--transition);
}

.main-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-actions {
    display: none;
    align-items: center;

    margin-left: auto;

    gap: 8px;
}

.menu-toggle {
    position: relative;
    z-index: 1005;

    display: none;
    flex: 0 0 44px;

    width: 44px;
    height: 44px;

    border: 0;

    background: transparent;

    cursor: pointer;
}

.menu-toggle span {
    position: absolute;
    left: 10px;

    width: 24px;
    height: 2px;

    background: var(--text);

    transition:
        top var(--transition),
        opacity var(--transition),
        transform var(--transition);
}

.menu-toggle span:nth-child(1) {
    top: 14px;
}

.menu-toggle span:nth-child(2) {
    top: 21px;
}

.menu-toggle span:nth-child(3) {
    top: 28px;
}

.menu-toggle.is-open span:nth-child(1) {
    top: 21px;

    transform: rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    top: 21px;

    transform: rotate(-45deg);
}

/* ==================================================
   CARRELLO HEADER
================================================== */

.cart-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 0 14px;

    border: 1px solid var(--text);

    background: transparent;

    font-size: 0.76rem;
    font-weight: 600;

    letter-spacing: 0.05em;
    text-transform: uppercase;

    cursor: pointer;

    gap: 8px;
}

.cart-button--mobile {
    display: none;
}

.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 22px;
    height: 22px;

    padding: 0 6px;

    border-radius: 999px;

    background: var(--text);
    color: var(--surface);

    font-size: 0.68rem;
}

/* ==================================================
   HERO
================================================== */

.hero {
    position: relative;

    display: flex;
    align-items: flex-end;

    width: 100%;
    min-height: 100svh;

    padding:
        calc(var(--header-height) + 70px) 4vw 80px;

    overflow: hidden;
}

.hero__media,
.hero__overlay {
    position: absolute;
    inset: 0;
}

.hero__media img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

.hero__overlay {
    background:
        linear-gradient(90deg,
            rgba(242, 237, 227, 0.98) 0%,
            rgba(242, 237, 227, 0.84) 37%,
            rgba(242, 237, 227, 0.15) 72%,
            rgba(242, 237, 227, 0) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;

    width: min(100%, 720px);
    max-width: 100%;
}

.hero h1 {
    max-width: 100%;

    margin: 20px 0 24px;

    font-size: clamp(5.5rem, 13vw, 12rem);
    font-weight: 800;
    line-height: 0.68;

    letter-spacing: -0.065em;
}

.hero h1 span {
    display: inline-block;

    font-size: 0.32em;
    font-weight: 600;
    line-height: 1;

    letter-spacing: 0.05em;
}

.hero__claim {
    width: 100%;
    max-width: 610px;

    font-size: clamp(1.05rem, 2vw, 1.45rem);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;

    width: 100%;

    margin-top: 36px;

    gap: 12px;
}

/* ==================================================
   CONCEPT
================================================== */

.statement__grid {
    display: grid;

    grid-template-columns: 0.7fr 2fr;

    gap: 60px;
}

.statement__copy {
    min-width: 0;
}

.statement__copy p {
    max-width: 700px;

    margin-top: 36px;

    color: var(--muted);

    font-size: 1.1rem;
}

/* ==================================================
   GALLERY
================================================== */

.editorial-gallery {
    display: grid;

    width: 100%;

    padding: 0 4vw;

    grid-template-columns: 1.4fr 0.8fr 0.8fr;

    gap: 16px;
}

.gallery-card {
    min-width: 0;
    min-height: 520px;

    overflow: hidden;
}

.gallery-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 700ms ease;
}

.gallery-card:hover img {
    transform: scale(1.035);
}

/* ==================================================
   COLLEZIONE
================================================== */

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 60px;

    gap: 40px;
}

.section-heading h2 {
    margin-top: 15px;
}

.section-heading>p {
    max-width: 430px;

    color: var(--muted);
}

.product-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 24px;
}

.product-card {
    min-width: 0;

    background: var(--surface);
}

.product-card__image {
    width: 100%;

    aspect-ratio: 4 / 5;

    overflow: hidden;
}

.product-card__image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 600ms ease;
}

.product-card:hover .product-card__image img {
    transform: scale(1.035);
}

.product-card__body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    min-width: 0;

    padding: 24px;

    gap: 20px;
}

.product-card__body>div {
    min-width: 0;
}

.product-card__body h3 {
    font-size: 1.35rem;
    line-height: 1.05;
}

.product-card__body p {
    margin-top: 5px;

    color: var(--muted);

    font-size: 0.85rem;
}

.product-card__button {
    flex: 0 0 auto;

    padding: 4px 0;

    border: 0;
    border-bottom: 1px solid var(--text);

    background: transparent;

    font-size: 0.72rem;
    font-weight: 600;

    letter-spacing: 0.05em;
    text-transform: uppercase;

    cursor: pointer;
}

/* ==================================================
   DETTAGLI
================================================== */

.details {
    background: var(--surface);
}

.details__grid {
    display: grid;
    align-items: center;

    grid-template-columns: 1fr 1fr;

    gap: 8vw;
}

.details__visual,
.details__content {
    min-width: 0;
}

.details__visual {
    min-height: 680px;
}

.details__visual img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.details__content h2 {
    margin: 20px 0 50px;
}

.spec-list {
    margin-bottom: 44px;

    border-top: 1px solid var(--border);
}

.spec-list>div {
    display: flex;
    justify-content: space-between;

    padding: 20px 0;

    border-bottom: 1px solid var(--border);

    gap: 20px;
}

.spec-list dt {
    color: var(--muted);
}

.spec-list dd {
    text-align: right;
}

/* ==================================================
   COME FUNZIONA
================================================== */

.steps {
    display: grid;

    margin-top: 55px;

    list-style: none;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 20px;
}

.steps li {
    min-width: 0;
    min-height: 280px;

    padding: 28px;

    border: 1px solid var(--border);

    background: rgba(255, 255, 255, 0.2);
}

.steps span {
    color: var(--muted);

    font-size: 0.75rem;
    font-weight: 600;
}

.steps h3 {
    margin: 80px 0 12px;

    font-size: 1.8rem;
}

.steps p {
    color: var(--muted);
}

/* ==================================================
   CTA FINALE
================================================== */

.final-cta {
    position: relative;

    display: grid;
    align-items: center;

    width: 100%;
    min-height: 740px;

    padding: 100px 7vw;

    overflow: hidden;

    background: var(--text);
    color: var(--surface);

    grid-template-columns: 1fr 1fr;
}

.final-cta__image {
    position: absolute;
    inset: 0;
}

.final-cta__image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0.35;
}

.final-cta::after {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(90deg,
            rgba(17, 17, 17, 0.96),
            rgba(17, 17, 17, 0.35));

    content: "";
}

.final-cta__content {
    position: relative;
    z-index: 2;

    min-width: 0;

    grid-column: 1;
}

.final-cta__content>p {
    max-width: 460px;

    font-size: 1.1rem;
}

.final-cta h2 {
    margin: 30px 0 40px;
}

/* ==================================================
   FOOTER
================================================== */

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    padding: 46px 4vw;

    gap: 30px;
}

.brand--footer .brand__name {
    font-size: 1.6rem;
}

.site-footer p,
.site-footer a {
    color: var(--muted);

    font-size: 0.8rem;
}

/* ==================================================
   CARRELLO FLOTTANTE
================================================== */

.floating-cart {
    position: fixed;
    z-index: 900;

    right: 22px;
    bottom: 22px;

    display: none;
    align-items: center;

    min-height: 52px;

    padding: 0 10px 0 18px;

    border: 0;
    border-radius: 999px;

    background: var(--text);
    color: var(--surface);

    box-shadow: var(--shadow);

    font-size: 0.72rem;
    font-weight: 600;

    letter-spacing: 0.05em;
    text-transform: uppercase;

    cursor: pointer;

    gap: 12px;
}

.floating-cart strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 34px;
    height: 34px;

    padding: 0 7px;

    border-radius: 50%;

    background: var(--surface);
    color: var(--text);
}

/* ==================================================
   MODALE E CARRELLO
================================================== */

.product-modal,
.cart-drawer {
    position: fixed;
    z-index: 2000;
    inset: 0;

    visibility: hidden;

    opacity: 0;

    transition:
        opacity var(--transition),
        visibility var(--transition);
}

.product-modal.is-open,
.cart-drawer.is-open {
    visibility: visible;

    opacity: 1;
}

.modal-backdrop,
.cart-drawer__backdrop {
    position: absolute;
    inset: 0;

    background: rgba(17, 17, 17, 0.55);

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.product-modal__panel {
    position: absolute;

    top: 50%;
    left: 50%;

    width: min(calc(100% - 32px), 560px);
    max-height: calc(100svh - 32px);

    padding: 42px;

    overflow-x: hidden;
    overflow-y: auto;

    background: var(--background);

    box-shadow: var(--shadow);

    transform: translate(-50%, calc(-50% + 30px));

    transition: transform 300ms ease;
}

.product-modal.is-open .product-modal__panel {
    transform: translate(-50%, -50%);
}

.modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    border: 0;

    background: transparent;

    font-size: 2rem;
    line-height: 1;

    cursor: pointer;
}

.product-modal__panel>.modal-close {
    position: absolute;

    top: 18px;
    right: 18px;
}

.product-modal h2,
.cart-drawer h2 {
    margin: 12px 0 18px;

    font-size: clamp(2.3rem, 6vw, 4rem);
}

.modal-intro {
    margin-bottom: 30px;

    color: var(--muted);
}

/* ==================================================
   FORM
================================================== */

.form-field {
    display: flex;
    flex-direction: column;

    min-width: 0;

    margin-bottom: 20px;

    gap: 9px;
}

.form-field>span,
.color-fieldset legend {
    font-size: 0.78rem;
    font-weight: 600;

    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    max-width: 100%;

    border: 1px solid var(--border);
    border-radius: 0;
    outline: none;

    background: var(--surface);
    color: var(--text);
}

.form-field input,
.form-field select {
    min-height: 52px;

    padding: 0 15px;
}

.form-field textarea {
    min-height: 110px;

    padding: 15px;

    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--text);
}

.form-row {
    display: grid;

    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

    gap: 16px;
}

.color-fieldset {
    min-width: 0;

    margin-bottom: 22px;

    border: 0;
}

.color-options {
    display: grid;

    margin-top: 11px;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 10px;
}

.color-option {
    position: relative;

    display: flex;
    align-items: center;

    min-width: 0;
    min-height: 58px;

    padding: 10px;

    border: 1px solid var(--border);

    background: var(--surface);

    cursor: pointer;

    gap: 10px;
}

.color-option:has(input:checked) {
    border-color: var(--text);

    box-shadow: inset 0 0 0 1px var(--text);
}

.color-option input {
    position: absolute;

    opacity: 0;
}

.color-option>span:last-child {
    min-width: 0;

    font-size: 0.78rem;

    overflow-wrap: break-word;
}

.color-swatch {
    flex: 0 0 28px;

    width: 28px;
    height: 28px;

    border: 1px solid rgba(17, 17, 17, 0.25);
    border-radius: 50%;
}

.color-swatch--white {
    background: #ffffff;
}

.color-swatch--black {
    background: #111111;
}

.color-swatch--cream {
    background: var(--cream);
}

.form-note {
    margin-top: 14px;

    color: var(--muted);

    font-size: 0.75rem;
}

/* ==================================================
   DRAWER CARRELLO
================================================== */

.cart-drawer__panel {
    position: absolute;

    top: 0;
    right: 0;
    bottom: 0;

    display: flex;
    flex-direction: column;

    width: min(100%, 500px);

    overflow: hidden;

    background: var(--background);

    box-shadow: var(--shadow);

    transform: translateX(100%);

    transition: transform 320ms ease;
}

.cart-drawer.is-open .cart-drawer__panel {
    transform: translateX(0);
}

.cart-drawer__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    flex: 0 0 auto;

    padding: 28px;

    border-bottom: 1px solid var(--border);

    gap: 20px;
}

.cart-drawer__header>div {
    min-width: 0;
}

.cart-empty {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;

    min-height: 0;

    padding: 30px;

    text-align: center;

    gap: 24px;
}

.cart-content {
    display: flex;
    flex: 1;
    flex-direction: column;

    min-width: 0;
    min-height: 0;
}

.cart-items {
    flex: 1;

    min-width: 0;
    min-height: 0;

    padding: 4px 28px;

    overflow-x: hidden;
    overflow-y: auto;
}

.cart-item {
    display: grid;

    min-width: 0;

    padding: 22px 0;

    border-bottom: 1px solid var(--border);

    grid-template-columns: minmax(0, 1fr) auto;

    gap: 16px;
}

.cart-item>div:first-child {
    min-width: 0;
}

.cart-item__title {
    font-family: var(--font-title);
    font-size: 1.35rem;
    line-height: 1.05;
}

.cart-item__details {
    margin-top: 5px;

    color: var(--muted);

    font-size: 0.82rem;
}

.cart-item__price {
    font-weight: 600;

    white-space: nowrap;
}

.cart-item__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-width: 0;

    margin-top: 16px;

    grid-column: 1 / -1;

    gap: 15px;
}

.quantity-control {
    display: inline-flex;
    align-items: center;

    border: 1px solid var(--border);
}

.quantity-control button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 34px;

    border: 0;

    background: transparent;

    cursor: pointer;
}

.quantity-control span {
    min-width: 36px;

    text-align: center;

    font-size: 0.82rem;
    font-weight: 600;
}

.remove-item,
.clear-cart-button {
    border: 0;
    border-bottom: 1px solid currentColor;

    background: transparent;
    color: var(--muted);

    font-size: 0.72rem;
    font-weight: 600;

    letter-spacing: 0.04em;
    text-transform: uppercase;

    cursor: pointer;
}

.cart-summary {
    flex: 0 0 auto;

    padding: 22px 28px;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    background: rgba(255, 255, 255, 0.3);
}

.cart-summary__line {
    display: flex;
    justify-content: space-between;

    gap: 20px;
}

.cart-summary__line+.cart-summary__line {
    margin-top: 12px;
}

.cart-summary__line--total {
    font-size: 1.05rem;
}

.checkout-form {
    flex: 0 0 auto;

    max-height: 48vh;

    padding: 24px 28px 30px;

    overflow-x: hidden;
    overflow-y: auto;
}

.clear-cart-button {
    display: block;

    margin: 16px auto 0;
}

/* ==================================================
   TOAST E ANIMAZIONI
================================================== */

.toast {
    position: fixed;
    z-index: 3000;

    right: 24px;
    bottom: 90px;

    max-width: calc(100% - 48px);

    padding: 15px 20px;

    background: var(--text);
    color: var(--surface);

    box-shadow: var(--shadow);

    font-size: 0.8rem;
    font-weight: 600;

    opacity: 0;

    pointer-events: none;

    transform: translateY(20px);

    transition:
        opacity var(--transition),
        transform var(--transition);
}

.toast.is-visible {
    opacity: 1;

    transform: translateY(0);
}

.reveal {
    opacity: 0;

    transform: translateY(35px);

    transition:
        opacity 700ms ease,
        transform 700ms ease;
}

.reveal.is-visible {
    opacity: 1;

    transform: translateY(0);
}

/* ==================================================
   TABLET E MENU MOBILE
================================================== */

@media (max-width: 991px) {
    :root {
        --header-height: 72px;
    }

    .logo-img {
        height: 56px;
    }

    .site-header {
        min-height: var(--header-height);

        padding: 10px 18px;

        border-bottom: 1px solid var(--border);

        background: rgba(242, 237, 227, 0.96);

        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    .header-actions {
        position: relative;
        z-index: 1005;

        display: flex;
    }

    .cart-button--mobile {
        display: inline-flex;
    }

    .cart-button--desktop {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        z-index: 1003;

        inset: 0;

        display: flex;
        align-items: stretch;
        flex-direction: column;

        width: 100%;
        max-width: 100%;
        height: 100dvh;

        margin: 0;
        padding:
            calc(var(--header-height) + 42px) 24px 40px;

        overflow-x: hidden;
        overflow-y: auto;

        background: var(--background);

        visibility: hidden;

        opacity: 0;

        transform: translateX(100%);

        transition:
            transform 300ms ease,
            opacity 220ms ease,
            visibility 220ms ease;

        gap: 0;
    }

    .main-nav.is-open {
        visibility: visible;

        opacity: 1;

        transform: translateX(0);
    }

    .main-nav a {
        display: flex;
        align-items: center;

        width: 100%;
        min-height: 74px;

        padding: 14px 0;

        border-bottom: 1px solid var(--border);

        font-family: var(--font-title);
        font-size: clamp(2.1rem, 8vw, 3.4rem);
        font-weight: 700;
        line-height: 1;

        letter-spacing: -0.04em;
        text-transform: none;

        white-space: normal;
    }

    .main-nav a:first-child {
        border-top: 1px solid var(--border);
    }

    .main-nav a::after {
        display: none;
    }

    .hero {
        align-items: flex-end;

        min-height: 820px;

        padding:
            calc(var(--header-height) + 75px) 24px 64px;
    }

    .hero__overlay {
        background:
            linear-gradient(180deg,
                rgba(242, 237, 227, 0.2) 0%,
                rgba(242, 237, 227, 0.55) 45%,
                rgba(242, 237, 227, 0.97) 78%);
    }

    .hero h1 {
        font-size: clamp(5rem, 18vw, 9rem);
    }

    .hero h1 span {
        display: block;

        margin-top: 15px;
    }

    .statement__grid {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .editorial-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-card--wide {
        grid-column: 1 / -1;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .details__grid {
        grid-template-columns: 1fr;

        gap: 60px;
    }

    .details__visual {
        min-height: 0;

        aspect-ratio: 4 / 5;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .steps li {
        min-height: 230px;
    }

    .steps h3 {
        margin-top: 60px;
    }

    .final-cta {
        grid-template-columns: 1fr;
    }

    .final-cta__content {
        grid-column: 1;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .floating-cart {
        display: flex;
    }
}

/* ==================================================
   SMARTPHONE
================================================== */

@media (max-width: 680px) {

    .logo-img {
        height: 46px;
    }

    .container {
        width: calc(100% - 32px);
        max-width: 100%;
    }

    .section {
        padding: 84px 0;
    }

    h2 {
        font-size: clamp(2.5rem, 13vw, 4rem);
    }

    .site-header {
        padding: 9px 14px;
    }

    .brand__name {
        font-size: 1.45rem;
    }

    .brand__sub {
        margin-top: 5px;

        font-size: 0.4rem;

        letter-spacing: 0.3em;
    }

    .cart-button--mobile {
        min-width: 42px;

        padding: 0 9px;

        font-size: 0;
    }

    .cart-button--mobile .cart-count {
        font-size: 0.68rem;
    }

    .main-nav {
        padding:
            calc(var(--header-height) + 30px) 18px 30px;
    }

    .main-nav a {
        min-height: 68px;

        font-size: clamp(2rem, 11vw, 3rem);
    }

    .hero {
        min-height: 760px;

        padding:
            calc(var(--header-height) + 55px) 16px 48px;
    }

    .hero__content {
        width: 100%;
    }

    .hero h1 {
        margin: 15px 0 24px;

        font-size: clamp(4.2rem, 21vw, 6.2rem);
        line-height: 0.72;
    }

    .hero h1 span {
        margin-top: 15px;

        font-size: 0.34em;
    }

    .hero__claim {
        max-width: 100%;

        font-size: 1rem;
        line-height: 1.45;
    }

    .hero__claim br {
        display: none;
    }

    .hero__actions {
        display: grid;

        grid-template-columns: 1fr;

        margin-top: 28px;
    }

    .hero__actions .button {
        width: 100%;
        max-width: 100%;

        padding-right: 14px;
        padding-left: 14px;

        white-space: normal;
    }

    .editorial-gallery {
        padding: 0 16px;

        grid-template-columns: 1fr;
    }

    .gallery-card,
    .gallery-card--wide {
        min-height: 420px;

        grid-column: auto;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;

        margin-bottom: 40px;

        gap: 20px;
    }

    .section-heading>p {
        max-width: 100%;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-card__body {
        padding: 20px;
    }

    .details__content h2 {
        margin-bottom: 32px;
    }

    .spec-list>div {
        align-items: flex-start;
        flex-direction: column;

        gap: 5px;
    }

    .spec-list dd {
        text-align: left;
    }

    .final-cta {
        min-height: 660px;

        padding: 76px 20px;
    }

    .product-modal__panel {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;

        width: 100%;
        max-width: 100%;
        max-height: 92svh;

        padding: 32px 18px 24px;

        transform: translateY(100%);
    }

    .product-modal.is-open .product-modal__panel {
        transform: translateY(0);
    }

    .product-modal h2 {
        padding-right: 35px;

        font-size: clamp(2.3rem, 12vw, 3.4rem);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .color-options {
        grid-template-columns: 1fr;
    }

    .cart-drawer__panel {
        width: 100%;
        max-width: 100%;
    }

    .cart-drawer__header {
        padding: 20px 18px;
    }

    .cart-drawer h2 {
        font-size: clamp(2.2rem, 11vw, 3rem);
    }

    .cart-items {
        padding-right: 18px;
        padding-left: 18px;
    }

    .cart-summary {
        padding-right: 18px;
        padding-left: 18px;
    }

    .checkout-form {
        max-height: 52vh;

        padding-right: 18px;
        padding-left: 18px;
    }

    .toast {
        right: 16px;
        bottom: 84px;
        left: 16px;

        max-width: none;

        text-align: center;
    }
}

/* ==================================================
   SMARTPHONE PICCOLI
================================================== */

@media (max-width: 420px) {
    .hero h1 {
        font-size: clamp(4rem, 21vw, 5.2rem);
    }

    .product-card__body {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-card__button {
        align-self: flex-start;
    }

    .cart-item {
        grid-template-columns: 1fr;
    }

    .cart-item__price {
        justify-self: start;
    }

    .cart-item__footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .floating-cart {
        right: 14px;
        bottom: 14px;
    }
}

/* ==================================================
   SCHERMI BASSI
================================================== */

@media (max-height: 700px) and (max-width: 991px) {
    .main-nav {
        padding-top: calc(var(--header-height) + 18px);
    }

    .main-nav a {
        min-height: 58px;

        font-size: clamp(1.8rem, 7vw, 2.6rem);
    }

    .product-modal__panel {
        max-height: 95svh;
    }
}

/* ==================================================
   ACCESSIBILITÀ ANIMAZIONI
================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;

        transform: none;
    }
}

/* ==================================================
   PAGINE LEGALI
================================================== */

.legal-page {
    min-height: 100vh;
    padding: 80px 0 120px;
}

.legal-page__container {
    max-width: 900px;
}

.legal-page__back {
    display: inline-block;

    margin-bottom: 60px;

    color: var(--muted);

    font-size: 0.8rem;
    font-weight: 600;

    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.legal-page h1 {
    margin: 12px 0 20px;

    font-family: var(--font-title);
    font-size: clamp(3.5rem, 9vw, 7rem);
    line-height: 0.85;

    letter-spacing: -0.05em;
}

.legal-page__updated {
    margin-bottom: 70px;

    color: var(--muted);

    font-size: 0.85rem;
}

.legal-section {
    padding: 40px 0;

    border-top: 1px solid var(--border);
}

.legal-section h2 {
    margin-bottom: 22px;

    font-size: clamp(1.6rem, 4vw, 2.4rem);
    line-height: 1;
}

.legal-section p {
    max-width: 780px;

    margin-bottom: 16px;

    color: var(--muted);
}

.legal-section ul {
    margin: 20px 0 20px 20px;

    color: var(--muted);
}

.legal-section li {
    margin-bottom: 10px;
}

.legal-section strong {
    color: var(--text);
}

@media (max-width: 680px) {
    .legal-page {
        padding: 50px 0 80px;
    }

    .legal-page__back {
        margin-bottom: 40px;
    }

    .legal-page__updated {
        margin-bottom: 50px;
    }

    .legal-section {
        padding: 32px 0;
    }
}

.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 20px;
}

.footer-links a {
    color: var(--muted);

    font-size: 0.8rem;
}

.footer-links a:hover {
    color: var(--text);
}

@media (max-width: 680px) {
    .footer-links {
        align-items: flex-start;
        flex-direction: column;

        gap: 12px;
    }
}