/*
Theme Name: Dolci Tentazioni Gutenberg
Text Domain: dolci
Author: Giada Morena
Description: Dolci Tentazioni, tema a blocchi Gutenberg con contenuti e sezioni modificabili da WordPress.
Version: 1.5.2
Requires at least: 6.6
Requires PHP: 7.4
*/


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: #f7f4ee;
    color: #171614;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1.6;

    overflow-x: hidden;
}

body.menu-is-open {
    overflow: hidden;
}

img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --dolci-black: #171614;
    --dolci-cream: #f7f4ee;
    --dolci-white: #ffffff;
    --dolci-beige: #eae4d9;

    --dolci-line: rgba(23, 22, 20, 0.16);
    --dolci-dark-line: rgba(247, 244, 238, 0.2);

    --container: 1400px;
    --padding: 5.2vw;

    --font-serif: Georgia, "Times New Roman", serif;
    --font-sans: Arial, Helvetica, sans-serif;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}


/* =========================================================
   CONTAINER
========================================================= */

.container {
    width: min(calc(100% - (var(--padding) * 2)),
            var(--container));

    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   TYPOGRAPHY
========================================================= */

.eyebrow,
.story-label {
    margin: 0;

    font-family: var(--font-sans);

    font-size: 12px;
    font-weight: 600;

    line-height: 1.4;

    letter-spacing: 0.2em;

    text-transform: uppercase;
}

.section-title {
    margin: 0;

    font-family: var(--font-serif);

    font-size: clamp(58px, 6vw, 88px);

    font-weight: 400;

    line-height: 0.96;

    letter-spacing: -0.045em;
}


/* =========================================================
   BUTTON
========================================================= */

.dolci-button {
    position: relative;
    z-index: 1;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 54px;

    padding: 16px 30px;

    overflow: hidden;

    border: 1px solid currentColor;

    background: transparent;

    font-family: var(--font-sans);

    font-size: 12px;
    font-weight: 600;

    line-height: 1;

    letter-spacing: 0.17em;

    text-transform: uppercase;

    transition:
        color 0.45s var(--ease),
        border-color 0.45s var(--ease),
        transform 0.45s var(--ease);
}

.dolci-button::before {
    position: absolute;
    z-index: -1;

    inset: 0;

    background: currentColor;

    content: "";

    transform: translateY(101%);

    transition:
        transform 0.55s var(--ease);
}

.dolci-button:hover {
    color: var(--dolci-black);
}

.dolci-button:hover::before {
    transform: translateY(0);
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: absolute;

    z-index: 100;

    top: 0;
    left: 0;

    width: 100%;

    color: #ffffff;
}

.site-header__inner {
    display: flex;

    align-items: center;

    width: min(calc(100% - (var(--padding) * 2)),
            var(--container));

    min-height: 105px;

    margin: auto;

    padding-top: 18px;
}

.site-logo {
    display: inline-flex;

    align-items: center;

    flex-shrink: 0;

    line-height: 0;
}

.site-header .site-logo img {
    width: auto;

    height: 62px;

    max-width: 220px;

    object-fit: contain;
}


/* =========================================================
   NAVIGATION
========================================================= */

.site-navigation {
    margin-left: auto;
    margin-right: 48px;
}

.site-navigation__list {
    display: flex;

    align-items: center;

    gap: 28px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.site-navigation__list li {
    margin: 0;
    padding: 0;
}

.site-navigation__list a {
    position: relative;

    display: block;

    padding: 10px 0;

    font-size: 13px;
    font-weight: 600;

    line-height: 1;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    white-space: nowrap;

    opacity: 0.9;

    transition: opacity 0.3s ease;
}

.site-navigation__list a:hover {
    opacity: 1;
}

.site-navigation__list a::after {
    position: absolute;

    right: 0;
    bottom: 1px;
    left: 0;

    height: 1px;

    background: currentColor;

    content: "";

    transform: scaleX(0);
    transform-origin: right;

    transition:
        transform 0.45s var(--ease);
}

.site-navigation__list a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-book-button {
    flex-shrink: 0;
}


/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-menu-toggle {
    display: none;

    position: relative;

    width: 48px;
    height: 48px;

    margin-left: auto;

    padding: 0;

    border: 0;

    background: transparent;

    color: #ffffff;

    cursor: pointer;
}

.mobile-menu-toggle span {
    position: absolute;

    left: 9px;

    width: 30px;
    height: 1px;

    background: currentColor;

    transition:
        top 0.4s var(--ease),
        transform 0.4s var(--ease);
}

.mobile-menu-toggle span:first-child {
    top: 18px;
}

.mobile-menu-toggle span:last-child {
    top: 29px;
}

.mobile-menu-toggle.is-open span:first-child {
    top: 23px;
    transform: rotate(45deg);
}

.mobile-menu-toggle.is-open span:last-child {
    top: 23px;
    transform: rotate(-45deg);
}

.mobile-menu {
    position: fixed;

    z-index: 90;

    inset: 0;

    visibility: hidden;

    background: var(--dolci-black);

    opacity: 0;

    transition:
        opacity 0.5s var(--ease),
        visibility 0.5s;
}

.mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
}

.mobile-menu__inner {
    display: flex;

    flex-direction: column;

    min-height: 100%;

    padding:
        125px var(--padding) 50px;
}

.mobile-menu__inner nav {
    display: flex;

    flex-direction: column;

    margin-top: 30px;
}

.mobile-menu__inner nav a {
    padding: 9px 0;

    font-family: var(--font-serif);

    font-size: clamp(48px, 11vw, 76px);

    line-height: 0.92;

    letter-spacing: -0.05em;
}


/* =========================================================
   HERO
========================================================= */

.story-hero {
    position: relative;

    height: 100svh;
    min-height: 720px;

    overflow: hidden;

    background: var(--dolci-black);

    color: var(--dolci-cream);
}

.story-hero__media {
    position: absolute;

    inset: -5%;

    transform: scale(1.08);

    transition:
        transform 1.8s var(--ease);
}

.story-hero.is-ready .story-hero__media {
    transform: scale(1);
}

.story-hero__media img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

.story-hero__veil {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(90deg,
            rgba(0, 0, 0, 0.76) 0%,
            rgba(0, 0, 0, 0.43) 52%,
            rgba(0, 0, 0, 0.12) 100%);
}

.story-hero__content {
    position: relative;

    z-index: 2;

    display: flex;

    flex-direction: column;

    justify-content: center;

    width: min(calc(100% - (var(--padding) * 2)),
            var(--container));

    height: 100%;

    margin: 0 auto;

    padding-top: 40px;
}

.story-label {
    margin-bottom: 34px;

    font-size: 12px;

    opacity: 0;

    transform: translateY(20px);

    transition:
        opacity 0.8s var(--ease) 0.2s,
        transform 0.8s var(--ease) 0.2s;
}

.story-hero.is-ready .story-label {
    opacity: 1;
    transform: translateY(0);
}

.story-hero__title {
    display: flex;
    flex-direction: column;

    width: min(100%, 950px);

    margin: 0;
    padding: 0;

    font-family: var(--font-serif);

    font-size: clamp(72px, 8vw, 126px);

    font-weight: 400;

    line-height: 0.88;

    letter-spacing: -0.055em;
}

.story-hero__title span {
    display: block;

    width: fit-content;
    max-width: 100%;

    margin: 0;

    opacity: 0;

    transform: translate3d(0, 55px, 0);

    transition:
        opacity 0.9s var(--ease),
        transform 1.15s var(--ease);
}

.story-hero.is-ready .story-hero__title span {
    opacity: 1;

    transform: translate3d(0, 0, 0);
}

.story-hero.is-ready .story-hero__title span:nth-child(1) {
    transition-delay: 0.25s;
}

.story-hero.is-ready .story-hero__title span:nth-child(2) {
    transition-delay: 0.38s;
}

.story-hero.is-ready .story-hero__title span:nth-child(3) {
    transition-delay: 0.51s;
}

.story-hero__bottom {
    position: absolute;

    right: 0;
    bottom: 42px;
    left: 0;

    display: flex;

    align-items: flex-end;

    justify-content: space-between;
}

.story-hero__bottom p {
    margin: 0;

    font-size: 16px;

    line-height: 1.55;

    opacity: 0;

    transform: translateY(15px);

    transition:
        opacity 0.8s var(--ease) 0.8s,
        transform 0.8s var(--ease) 0.8s;
}

.story-hero.is-ready .story-hero__bottom p {
    opacity: 0.8;
    transform: translateY(0);
}

.story-scroll {
    display: flex;

    align-items: center;

    gap: 16px;

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 0.2em;

    text-transform: uppercase;
}

.story-scroll i {
    width: 58px;
    height: 1px;

    background: currentColor;

    transform-origin: left;

    animation:
        scroll-line 2.2s ease-in-out infinite;
}

@keyframes scroll-line {

    0%,
    100% {
        transform: scaleX(0.35);
    }

    50% {
        transform: scaleX(1);
    }
}


/* =========================================================
   INTRO
========================================================= */

.story-intro {
    position: relative;

    height: 210vh;

    background: var(--dolci-cream);
}

.story-intro__sticky {
    position: sticky;

    top: 0;

    height: 100svh;
    min-height: 680px;

    overflow: hidden;
}

.story-intro__image {
    position: absolute;

    top: 12%;
    left: var(--padding);

    width: 46%;
    height: 76%;

    overflow: hidden;

    opacity: 0;

    transform: scale(0.94);

    transition:
        opacity 1s ease,
        transform 1.2s var(--ease);
}

.story-intro.is-active .story-intro__image {
    opacity: 1;
    transform: scale(1);
}

.story-intro__image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.story-intro__content {
    position: absolute;

    top: 50%;
    right: 7%;

    width: 38%;

    transform: translateY(-50%);
}

.story-intro__content .eyebrow {
    margin-bottom: 28px;
}

.story-intro__heading {
    display: flex;
    flex-direction: column;

    font-family: var(--font-serif);

    font-size: clamp(64px, 7vw, 102px);

    line-height: 0.86;

    letter-spacing: -0.055em;
}

.story-intro__heading span {
    opacity: 0;

    transform: translateY(45px);

    transition:
        opacity 0.8s var(--ease),
        transform 0.9s var(--ease);
}

.story-intro.is-active .story-intro__heading span {
    opacity: 1;
    transform: translateY(0);
}

.story-intro.is-active .story-intro__heading span:nth-child(2) {
    transition-delay: 0.12s;
}

.story-intro__text {
    max-width: 520px;

    margin: 38px 0 0;

    font-size: 17px;

    line-height: 1.75;

    opacity: 0;

    transform: translateY(25px);

    transition:
        opacity 0.8s var(--ease) 0.25s,
        transform 0.8s var(--ease) 0.25s;
}

.story-intro.is-active .story-intro__text {
    opacity: 1;
    transform: translateY(0);
}

.story-intro__content .dolci-button {
    margin-top: 35px;

    opacity: 0;

    transform: translateY(20px);

    transition:
        opacity 0.8s var(--ease) 0.35s,
        transform 0.8s var(--ease) 0.35s,
        color 0.45s var(--ease);
}

.story-intro.is-active .story-intro__content .dolci-button {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   ANNO
========================================================= */

.story-intro__year {
    position: absolute;

    right: var(--padding);
    bottom: 7%;

    margin: 0;

    color: var(--dolci-black);

    font-family: var(--font-serif);

    font-size: clamp(64px, 7vw, 94px);

    font-weight: 400;

    line-height: 0.85;

    letter-spacing: -0.065em;

    white-space: nowrap;

    opacity: 0.35;

    will-change:
        transform,
        opacity;

    transition:
        transform 0.16s var(--ease),
        opacity 0.16s ease;
}

.story-intro__year.year-changing {
    transform: translateY(-3px);
    opacity: 0.48;
}


/* =========================================================
   THREE WORLDS
========================================================= */

.story-worlds {
    position: relative;

    height: 300vh;

    background: var(--dolci-black);

    color: var(--dolci-cream);
}

.story-worlds__sticky {
    position: sticky;

    top: 0;

    height: 100svh;
    min-height: 680px;

    overflow: hidden;
}

.story-worlds__intro {
    position: absolute;

    z-index: 10;

    top: 9%;
    left: var(--padding);
}

.story-worlds__intro h2 {
    margin: 22px 0 0;

    font-family: var(--font-serif);

    font-size: clamp(58px, 6vw, 88px);

    font-weight: 400;

    line-height: 0.88;

    letter-spacing: -0.055em;
}

.story-worlds__counter {
    display: flex;

    gap: 9px;

    margin-top: 32px;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 0.18em;
}

.world-card {
    position: absolute;

    top: 14%;
    right: 6%;
    bottom: 8%;
    left: 30%;

    overflow: hidden;

    opacity: 0;

    transform:
        translateX(100%) scale(0.86);

    transition:
        opacity 0.8s ease,
        transform 1.1s var(--ease);
}

.world-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 1.4s var(--ease);
}

.world-card:hover img {
    transform: scale(1.035);
}

.world-card__overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(180deg,
            transparent 20%,
            rgba(0, 0, 0, 0.76));
}

.world-card__content {
    position: absolute;

    right: 7%;
    bottom: 7%;
    left: 7%;
}

.world-card__number {
    font-size: 11px;

    font-weight: 600;

    letter-spacing: 0.2em;
}

.world-card h3 {
    margin: 18px 0 0;

    font-family: var(--font-serif);

    font-size: clamp(64px, 7vw, 104px);

    font-weight: 400;

    line-height: 0.86;

    letter-spacing: -0.055em;
}

.world-card p {
    max-width: 470px;

    margin: 24px 0 0;

    font-size: 17px;

    line-height: 1.65;
}

.world-card a {
    display: inline-flex;

    gap: 16px;

    margin-top: 30px;

    padding-bottom: 7px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.45);

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 0.18em;

    text-transform: uppercase;
}

.world-card a span {
    font-size: 18px;

    transition:
        transform 0.4s var(--ease);
}

.world-card a:hover span {
    transform: translateX(5px);
}

.story-worlds.world-step-1 .world-card--1,
.story-worlds.world-step-2 .world-card--2,
.story-worlds.world-step-3 .world-card--3 {
    opacity: 1;

    transform:
        translateX(0) scale(1);
}

.story-worlds.world-step-2 .world-card--1,
.story-worlds.world-step-3 .world-card--2 {
    opacity: 0;

    transform:
        translateX(-15%) scale(0.94);
}


/* =========================================================
   CREAZIONI
========================================================= */

.creations-story {
    position: relative;

    padding-top: 170px;
    padding-bottom: 170px;

    background: var(--dolci-cream);

    overflow: hidden;
}

.creations-story__header {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr) minmax(300px, 0.38fr);

    align-items: end;

    gap: 90px;

    padding-bottom: 70px;

    border-bottom:
        1px solid var(--dolci-line);
}

.creations-story__title-wrap {
    max-width: 780px;
}

.creations-story__title-wrap h2 {
    margin: 25px 0 0;

    font-family: var(--font-serif);

    font-size: clamp(82px,
            9vw,
            132px);

    font-weight: 400;

    line-height: 0.8;

    letter-spacing: -0.07em;
}

.creations-story__intro {
    padding-bottom: 8px;
}

.creations-story__intro p {
    max-width: 360px;

    margin: 0;

    font-size: 17px;

    line-height: 1.75;

    opacity: 0.65;
}

.creations-story__intro>a {
    display: inline-flex;

    align-items: center;

    gap: 16px;

    margin-top: 32px;

    padding-bottom: 7px;

    border-bottom:
        1px solid rgba(23, 22, 20, 0.3);

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 0.18em;

    text-transform: uppercase;
}

.creations-story__intro>a span {
    font-size: 17px;

    transition:
        transform 0.4s var(--ease);
}

.creations-story__intro>a:hover span {
    transform: translateX(5px);
}

.creations-gallery {
    display: grid;

    grid-template-columns:
        repeat(12, 1fr);

    grid-template-rows:
        470px 320px;

    gap: 14px;

    margin-top: 60px;
}

.creation-feature {
    position: relative;

    grid-column:
        1 / span 7;

    grid-row:
        1 / span 2;

    overflow: hidden;

    background: #ddd7cc;

    opacity: 0;

    transform: translateY(45px);

    transition:
        opacity 1s var(--ease),
        transform 1.1s var(--ease);
}

.creations-story.is-active .creation-feature {
    opacity: 1;

    transform: translateY(0);
}

.creation-feature__image {
    position: absolute;

    inset: 0;

    overflow: hidden;
}

.creation-feature__image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 1.3s var(--ease);
}

.creation-feature:hover .creation-feature__image img {
    transform: scale(1.045);
}

.creation-feature::after {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(180deg,
            transparent 45%,
            rgba(0, 0, 0, 0.72) 100%);

    content: "";

    pointer-events: none;
}

.creation-feature__bottom {
    position: absolute;

    z-index: 2;

    right: 32px;
    bottom: 30px;
    left: 32px;

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    color: #ffffff;
}

.creation-number {
    display: block;

    margin-bottom: 12px;

    font-family: var(--font-sans);

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 0.18em;
}

.creation-feature__bottom h3 {
    margin: 0;

    font-family: var(--font-serif);

    font-size: clamp(58px,
            6vw,
            88px);

    font-weight: 400;

    line-height: 0.84;

    letter-spacing: -0.055em;
}

.creation-arrow {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    border:
        1px solid rgba(255, 255, 255, 0.5);

    border-radius: 50%;

    font-size: 18px;

    transition:
        transform 0.5s var(--ease),
        background-color 0.4s ease,
        color 0.4s ease;
}

.creation-feature:hover .creation-arrow {
    background: #ffffff;

    color: var(--dolci-black);

    transform: translateX(4px);
}

.creation-card {
    position: relative;

    overflow: hidden;

    background: #ddd7cc;

    opacity: 0;

    transform: translateY(35px);

    transition:
        opacity 0.9s var(--ease),
        transform 1s var(--ease);
}

.creations-story.is-active .creation-card {
    opacity: 1;

    transform: translateY(0);
}

.creation-card--mignon {
    grid-column: 8 / span 5;
    grid-row: 1;
}

.creation-card--lievitati {
    grid-column: 8 / span 5;
    grid-row: 2;
}

.creation-card--biscotteria,
.creation-card--specialita {
    display: none;
}

.creation-card__image {
    position: absolute;

    inset: 0;

    overflow: hidden;
}

.creation-card__image::after {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(180deg,
            transparent 35%,
            rgba(0, 0, 0, 0.62));

    content: "";
}

.creation-card__image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 1.1s var(--ease);
}

.creation-card:hover .creation-card__image img {
    transform: scale(1.055);
}

.creation-card__bottom {
    position: absolute;

    z-index: 2;

    right: 23px;
    bottom: 21px;
    left: 23px;

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    color: #ffffff;
}

.creation-card__bottom h3 {
    margin: 0;

    font-family: var(--font-serif);

    font-size: 40px;

    font-weight: 400;

    line-height: 0.9;

    letter-spacing: -0.04em;
}

.creation-card__bottom span {
    font-size: 10px;

    font-weight: 600;

    letter-spacing: 0.18em;
}

.creations-story__footer {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: 32px;

    padding-top: 25px;

    border-top:
        1px solid var(--dolci-line);
}

.creations-story__footer p {
    margin: 0;

    font-family: var(--font-serif);

    font-size: 25px;

    letter-spacing: -0.03em;

    opacity: 0.8;
}

.creations-story__footer a {
    display: inline-flex;

    align-items: center;

    gap: 16px;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 0.18em;

    text-transform: uppercase;
}


/* =========================================================
   MENU
========================================================= */

.story-menu-new {
    position: relative;

    height: 260vh;

    background: var(--dolci-black);

    color: var(--dolci-cream);
}

.story-menu-new__sticky {
    position: sticky;

    top: 0;

    height: 100svh;

    min-height: 700px;

    overflow: hidden;
}

.story-menu-new__background {
    position: absolute;

    inset: 0;

    background:
        radial-gradient(circle at 80% 50%,
            #3a3731 0%,
            #211f1c 34%,
            #171614 72%);
}

.story-menu-new__inner {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        minmax(320px, 0.72fr) minmax(500px, 1.28fr);

    gap: 7vw;

    align-items: center;

    height: 100%;
}

.story-menu-new__runway {
    display: contents;
}

.story-menu-new__intro h2 {
    margin: 25px 0 0;

    font-family: var(--font-serif);

    font-size: clamp(68px,
            7vw,
            108px);

    font-weight: 400;

    line-height: 0.85;

    letter-spacing: -0.06em;
}

.story-menu-new__description {
    max-width: 430px;

    margin: 36px 0 0;

    color: rgba(247, 244, 238, 0.64);

    font-size: 17px;

    line-height: 1.75;
}

.story-menu-new__intro .dolci-button {
    margin-top: 35px;

    color: var(--dolci-cream);
}

.story-menu-new__intro .dolci-button::before {
    background: var(--dolci-cream);
}

.story-menu-new__intro .dolci-button:hover {
    color: var(--dolci-black);
}

.story-menu-new__visual {
    position: relative;

    height: 76vh;

    min-height: 560px;

    max-height: 760px;
}

.story-menu-new__image {
    position: absolute;

    top: 0;
    right: 0;

    width: 74%;
    height: 100%;

    overflow: hidden;

    background: #27241f;

    transform:
        translateX(60px) scale(0.96);

    opacity: 0;

    transition:
        opacity 1s var(--ease),
        transform 1.2s var(--ease);
}

.story-menu-new.is-active .story-menu-new__image {
    opacity: 1;

    transform:
        translateX(0) scale(1);
}

.story-menu-new__image::after {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(180deg,
            rgba(0, 0, 0, 0.05),
            rgba(0, 0, 0, 0.5));

    content: "";
}

.story-menu-new__image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transform: scale(1.08);

    transition:
        transform 1.8s var(--ease);
}

.story-menu-new.is-active .story-menu-new__image img {
    transform: scale(1);
}

.story-menu-new__content {
    position: absolute;

    z-index: 4;

    right: 7%;
    bottom: 8%;
    left: 8%;

    min-height: 290px;
}

.menu-category {
    position: absolute;

    right: 0;
    bottom: 0;
    left: 0;

    opacity: 0;

    transform: translateY(35px);

    pointer-events: none;

    transition:
        opacity 0.7s var(--ease),
        transform 0.8s var(--ease);
}

.menu-category--1 {
    opacity: 1;
    transform: translateY(0);
}

.story-menu-new.menu-step-1 .menu-category--1,
.story-menu-new.menu-step-2 .menu-category--2,
.story-menu-new.menu-step-3 .menu-category--3 {
    opacity: 1;

    transform: translateY(0);

    pointer-events: auto;
}

.story-menu-new.menu-step-1 .menu-category--2,
.story-menu-new.menu-step-1 .menu-category--3,
.story-menu-new.menu-step-2 .menu-category--1,
.story-menu-new.menu-step-2 .menu-category--3,
.story-menu-new.menu-step-3 .menu-category--1,
.story-menu-new.menu-step-3 .menu-category--2 {
    opacity: 0;

    transform: translateY(35px);

    pointer-events: none;
}

.menu-category__top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding-bottom: 16px;

    border-bottom:
        1px solid rgba(247, 244, 238, 0.38);

    color: rgba(247, 244, 238, 0.68);

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 0.18em;

    text-transform: uppercase;
}

.menu-category h3 {
    margin: 25px 0 0;

    font-family: var(--font-serif);

    font-size: clamp(72px,
            8vw,
            116px);

    font-weight: 400;

    line-height: 0.8;

    letter-spacing: -0.065em;
}

.menu-category p {
    max-width: 470px;

    margin: 25px 0 0;

    color: rgba(247, 244, 238, 0.75);

    font-size: 16px;

    line-height: 1.7;
}

.story-menu-new__progress {
    position: absolute;

    z-index: 5;

    top: 50%;
    right: 0;

    display: flex;

    align-items: center;

    gap: 12px;

    color: rgba(247, 244, 238, 0.55);

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 0.18em;

    transform:
        rotate(90deg) translateX(50%);

    transform-origin:
        right center;
}

.story-menu-new__progress .active {
    color: var(--dolci-cream);
}

.story-menu-new__progress i {
    width: 50px;
    height: 1px;

    background:
        rgba(247, 244, 238, 0.35);
}


/* =========================================================
   PHILOSOPHY
========================================================= */

.story-philosophy {
    position: relative;

    height: 190vh;

    background: var(--dolci-black);

    color: var(--dolci-cream);
}

.story-philosophy__image {
    position: sticky;

    top: 0;

    height: 100svh;

    min-height: 700px;

    overflow: hidden;
}

.story-philosophy__image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0.8;

    transform: scale(1.08);

    transition:
        transform 1.4s var(--ease),
        opacity 1s ease;
}

.story-philosophy.is-active .story-philosophy__image img {
    opacity: 0.3;

    transform: scale(1);
}

.story-philosophy__content {
    position: absolute;

    z-index: 3;

    top: 50%;
    left: var(--padding);

    width: min(800px,
            75%);

    transform: translateY(-50%);
}

.story-philosophy__content .eyebrow {
    margin-bottom: 35px;
}

.philosophy-statement {
    display: flex;

    flex-direction: column;

    font-family: var(--font-serif);

    font-size: clamp(64px,
            8vw,
            120px);

    line-height: 0.82;

    letter-spacing: -0.065em;
}

.philosophy-statement span {
    opacity: 0.12;

    transform: translateX(-35px);

    transition:
        opacity 0.8s var(--ease),
        transform 0.9s var(--ease);
}

.story-philosophy.is-active .philosophy-statement span {
    opacity: 1;

    transform: translateX(0);
}

.story-philosophy.is-active .philosophy-statement span:nth-child(2) {
    transition-delay: 0.08s;
}

.story-philosophy.is-active .philosophy-statement span:nth-child(3) {
    transition-delay: 0.16s;
}

.story-philosophy.is-active .philosophy-statement span:nth-child(4) {
    transition-delay: 0.24s;
}

.philosophy-line {
    width: 55px;
    height: 1px;

    margin-top: 40px;

    background: currentColor;

    transform: scaleX(0);

    transform-origin: left;

    transition:
        transform 1s var(--ease) 0.4s;
}

.story-philosophy.is-active .philosophy-line {
    transform: scaleX(1);
}

.story-philosophy__content .dolci-button {
    margin-top: 35px;

    color: var(--dolci-cream);
}


/* =========================================================
   SERVICES
========================================================= */

.services-story {
    position: relative;

    padding-top: 170px;
    padding-bottom: 170px;

    background: var(--dolci-black);

    color: var(--dolci-cream);
}

.services-story__inner {
    display: grid;

    grid-template-columns:
        0.85fr 1.15fr;

    gap: 9vw;

    align-items: center;
}

.services-story__intro h2 {
    margin: 25px 0 0;

    font-family: var(--font-serif);

    font-size: clamp(60px,
            6vw,
            94px);

    font-weight: 400;

    line-height: 0.86;

    letter-spacing: -0.06em;
}

.services-story__intro>p:not(.eyebrow) {
    max-width: 470px;

    margin: 34px 0 0;

    color: rgba(247, 244, 238, 0.65);

    font-size: 17px;

    line-height: 1.75;
}

.services-story__intro .dolci-button {
    margin-top: 35px;

    color: var(--dolci-cream);
}

.services-story__list {
    border-top:
        1px solid rgba(247, 244, 238, 0.2);
}

.service-story-item {
    position: relative;

    display: grid;

    grid-template-columns:
        42px 64px 1fr 35px;

    align-items: center;

    min-height: 145px;

    gap: 18px;

    border-bottom:
        1px solid rgba(247, 244, 238, 0.2);

    cursor: pointer;

    opacity: 0.48;

    transition:
        opacity 0.5s ease,
        padding 0.6s var(--ease),
        background-color 0.5s ease;
}

.service-story-item:hover,
.service-story-item.is-active {
    opacity: 1;
}

.service-story-item.is-active {
    padding-left: 22px;
    padding-right: 22px;

    background:
        rgba(247, 244, 238, 0.045);
}

.service-story-item__number {
    align-self: start;

    padding-top: 32px;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 0.15em;
}

.service-story-item__icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    border:
        1px solid rgba(247, 244, 238, 0.22);

    border-radius: 50%;

    transition:
        transform 0.6s var(--ease),
        background-color 0.5s ease;
}

.service-story-item.is-active .service-story-item__icon {
    background: var(--dolci-cream);

    transform: scale(1.08);
}

.service-story-item__icon svg {
    width: 23px;
    height: 23px;

    fill: none;

    stroke: var(--dolci-cream);

    stroke-width: 1.2;

    stroke-linecap: round;
    stroke-linejoin: round;

    transition:
        stroke 0.5s ease;
}

.service-story-item.is-active .service-story-item__icon svg {
    stroke: var(--dolci-black);
}

.service-story-item__content h3 {
    margin: 0;

    font-family: var(--font-serif);

    font-size: 38px;

    font-weight: 400;

    line-height: 1;

    letter-spacing: -0.04em;
}

.service-story-item__content p {
    max-width: 420px;

    max-height: 0;

    margin: 0;

    overflow: hidden;

    color: rgba(247, 244, 238, 0.65);

    font-size: 15px;

    line-height: 1.6;

    opacity: 0;

    transition:
        max-height 0.6s var(--ease),
        margin 0.6s var(--ease),
        opacity 0.5s ease;
}

.service-story-item.is-active .service-story-item__content p {
    max-height: 90px;

    margin-top: 11px;

    opacity: 1;
}

.service-story-item__arrow {
    font-size: 20px;

    opacity: 0;

    transform: translateX(-8px);

    transition:
        opacity 0.4s ease,
        transform 0.5s var(--ease);
}

.service-story-item.is-active .service-story-item__arrow {
    opacity: 1;

    transform: translateX(0);
}


/* =========================================================
   CONTACT
========================================================= */

.contact-story {
    position: relative;

    padding-top: 150px;
    padding-bottom: 150px;

    background: var(--dolci-beige);

    overflow: hidden;
}

.contact-story__inner {
    display: grid;

    grid-template-columns:
        minmax(0, 0.88fr) minmax(0, 1.12fr);

    gap: 7vw;

    align-items: center;
}

.contact-story__info {
    position: relative;

    z-index: 2;
}

.contact-story__title {
    margin: 25px 0 0;

    font-family: var(--font-serif);

    font-size: clamp(68px,
            7vw,
            112px);

    font-weight: 400;

    line-height: 0.83;

    letter-spacing: -0.065em;
}

.contact-story__intro {
    max-width: 570px;

    margin: 38px 0 0;

    font-family: var(--font-serif);

    font-size: 21px;

    line-height: 1.45;

    letter-spacing: -0.02em;

    opacity: 0.78;
}

.contact-story__details {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    margin-top: 70px;

    border-top:
        1px solid rgba(23, 22, 20, 0.18);

    border-bottom:
        1px solid rgba(23, 22, 20, 0.18);
}

.contact-story__detail {
    display: flex;

    flex-direction: column;

    min-height: 190px;

    padding:
        25px 24px 28px 0;
}

.contact-story__detail+.contact-story__detail {
    padding-left: 24px;

    border-left:
        1px solid rgba(23, 22, 20, 0.18);
}

.contact-story__icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    margin-bottom: 28px;

    border:
        1px solid rgba(23, 22, 20, 0.45);

    border-radius: 50%;
}

.contact-story__icon svg {
    width: 23px;
    height: 23px;

    fill: none;

    stroke: var(--dolci-black);

    stroke-width: 1.35;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-story__detail .eyebrow {
    margin-bottom: 12px;

    font-size: 11px;
}

.contact-story__detail>div:last-child>p:last-child {
    margin: 0;

    font-size: 15px;

    line-height: 1.65;
}

.contact-story__detail a {
    transition: opacity 0.3s ease;
}

.contact-story__detail a:hover {
    opacity: 0.5;
}


/* =========================================================
   CONTACT BUTTON
========================================================= */

.contact-story__map-button {
    display: inline-flex;

    align-items: center;

    justify-content: space-between;

    min-width: 300px;

    margin-top: 35px;

    padding:
        18px 20px 18px 24px;

    border:
        1px solid rgba(23, 22, 20, 0.55);

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 0.19em;

    text-transform: uppercase;

    transition:
        background-color 0.45s var(--ease),
        color 0.45s var(--ease),
        border-color 0.45s var(--ease);
}

.contact-story__map-button:hover {
    background: var(--dolci-black);

    border-color: var(--dolci-black);

    color: var(--dolci-cream);
}

.contact-story__map-button-arrow {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    margin-left: 25px;

    font-size: 19px;

    transition:
        transform 0.45s var(--ease);
}

.contact-story__map-button:hover .contact-story__map-button-arrow {
    transform: translateX(5px);
}


/* =========================================================
   CONTACT SOCIAL
========================================================= */

.contact-story__social {
    display: flex;

    align-items: center;

    gap: 9px;

    margin-top: 35px;
}

.contact-story__social-label {
    margin-right: 10px;

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 0.17em;

    text-transform: uppercase;

    opacity: 0.6;
}

.contact-story__social a {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    border:
        1px solid rgba(23, 22, 20, 0.45);

    border-radius: 50%;

    font-size: 9px;

    font-weight: 700;

    transition:
        background-color 0.4s ease,
        color 0.4s ease,
        transform 0.4s var(--ease);
}

.contact-story__social a:hover {
    background: var(--dolci-black);

    color: var(--dolci-cream);

    transform: translateY(-3px);
}


/* =========================================================
   CONTACT MAP
========================================================= */

.contact-story__visual {
    display: flex;

    flex-direction: column;

    gap: 14px;

    min-width: 0;
}

.contact-story__map {
    position: relative;

    width: 100%;

    height: 540px;

    overflow: hidden;

    border:
        1px solid rgba(23, 22, 20, 0.32);

    background: #ddd9d1;
}

.contact-story__map iframe {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;

    filter:
        grayscale(0.1) contrast(0.92);
}

.contact-story__map-label {
    position: absolute;

    z-index: 3;

    top: 20px;
    left: 20px;

    display: flex;

    align-items: center;

    gap: 14px;

    min-width: 285px;

    padding:
        15px 18px;

    background:
        rgba(247, 244, 238, 0.95);

    box-shadow:
        0 12px 35px rgba(23, 22, 20, 0.1);
}

.contact-story__map-pin {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 40px;
    height: 40px;

    border:
        1px solid rgba(23, 22, 20, 0.35);

    border-radius: 50%;
}

.contact-story__map-pin svg {
    width: 19px;
    height: 19px;

    fill: none;

    stroke: var(--dolci-black);

    stroke-width: 1.4;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-story__map-label strong {
    display: block;

    margin-bottom: 3px;

    font-family: var(--font-serif);

    font-size: 19px;

    font-weight: 400;

    line-height: 1.1;
}

.contact-story__map-label div>span {
    display: block;

    font-size: 11px;

    line-height: 1.4;

    opacity: 0.65;
}


/* =========================================================
   CONTACT PHOTO
========================================================= */

.contact-story__photo {
    position: relative;

    height: 285px;

    overflow: hidden;

    background: #24211d;
}

.contact-story__photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;

    transform: scale(1.02);

    transition:
        transform 1.2s var(--ease);
}

.contact-story__photo:hover img {
    transform: scale(1.05);
}

.contact-story__photo::after {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(180deg,
            rgba(0, 0, 0, 0.02),
            rgba(0, 0, 0, 0.42));

    content: "";

    pointer-events: none;
}

.contact-story__photo-overlay {
    position: absolute;

    z-index: 2;

    right: 28px;
    bottom: 23px;

    color: #ffffff;

    font-family: var(--font-serif);

    font-size: 31px;

    letter-spacing: 0.08em;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    padding-top: 100px;
    padding-bottom: 30px;

    background: var(--dolci-black);

    color: var(--dolci-cream);
}

.site-footer__inner {
    display: grid;

    grid-template-columns:
        2fr 1fr 1fr;

    gap: 70px;

    padding-bottom: 90px;
}

.site-footer .site-logo img {
    width: auto;

    height: 62px;

    max-width: 220px;

    object-fit: contain;
}

.site-footer p {
    font-size: 15px;

    line-height: 1.65;
}

.site-footer a {
    transition:
        opacity 0.3s ease;
}

.site-footer a:hover {
    opacity: 0.55;
}

.site-footer__bottom {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding-top: 25px;

    border-top:
        1px solid rgba(247, 244, 238, 0.18);
}

.site-footer__bottom p {
    margin: 0;

    font-size: 11px;

    opacity: 0.45;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    :root {
        --padding: 4vw;
    }

    .site-navigation {
        margin-right: 28px;
    }

    .site-navigation__list {
        gap: 18px;
    }

    .site-navigation__list a {
        font-size: 11px;
    }

    .story-intro__content {
        right: 5%;
        width: 42%;
    }

    .world-card {
        left: 25%;
    }

    .story-menu-new__inner {
        gap: 4vw;
    }

    .story-menu-new__visual {
        height: 70vh;
    }

    .story-menu-new__image {
        width: 80%;
    }

    .menu-category h3 {
        font-size: 78px;
    }

    .creations-story__header {
        gap: 55px;
    }

    .creations-gallery {
        grid-template-rows:
            420px 280px;
    }

    .services-story__inner {
        gap: 5vw;
    }

    .contact-story__inner {
        gap: 5vw;
    }

    .contact-story__title {
        font-size: clamp(60px,
                6.5vw,
                90px);
    }

    .contact-story__intro {
        font-size: 18px;
    }

    .contact-story__details {
        grid-template-columns: 1fr;
    }

    .contact-story__detail {
        flex-direction: row;

        align-items: flex-start;

        min-height: 0;

        padding: 22px 0;
    }

    .contact-story__detail+.contact-story__detail {
        padding-left: 0;

        border-top:
            1px solid rgba(23, 22, 20, 0.18);

        border-left: 0;
    }

    .contact-story__icon {
        flex-shrink: 0;

        margin-right: 20px;
        margin-bottom: 0;
    }

    .contact-story__map {
        height: 470px;
    }

    .contact-story__photo {
        height: 250px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {

    :root {
        --padding: 6vw;
    }


    /* -----------------------------------------------------
       HEADER
    ----------------------------------------------------- */

    .site-header {
        padding-top: 2px;
    }

    .site-header__inner {
        min-height: 70px;

        padding-top: 5px;
    }

    .site-header .site-logo img {
        height: 41px;

        max-width: 165px;
    }

    .site-navigation,
    .header-book-button {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }


    /* -----------------------------------------------------
       HERO
    ----------------------------------------------------- */

    .story-hero {
        height: 100svh;

        min-height: 620px;

        max-height: 900px;
    }

    .story-hero__media {
        inset: -3%;

        transform: scale(1.04);
    }

    .story-hero.is-ready .story-hero__media {
        transform: scale(1);
    }

    .story-hero__media img {
        object-position: 58% center;
    }

    .story-hero__veil {
        background:
            linear-gradient(180deg,
                rgba(0, 0, 0, 0.12) 0%,
                rgba(0, 0, 0, 0.24) 35%,
                rgba(0, 0, 0, 0.78) 100%);
    }

    .story-hero__content {
        width: 100%;

        padding:
            85px 24px 30px;
    }

    .story-label {
        margin-bottom: 24px;

        font-size: 9px;

        letter-spacing: 0.17em;
    }

    .story-hero__title {
        width: 100%;

        max-width: 390px;

        font-size:
            clamp(52px,
                14vw,
                76px);

        line-height: 0.91;

        letter-spacing: -0.048em;
    }

    .story-hero__bottom {
        right: 24px;
        bottom: 26px;
        left: 24px;

        display: flex;

        align-items: flex-end;

        justify-content: space-between;
    }

    .story-hero__bottom p {
        font-size: 13px;

        line-height: 1.45;
    }

    .story-scroll {
        gap: 10px;

        font-size: 8px;

        letter-spacing: 0.16em;
    }

    .story-scroll i {
        width: 35px;
    }


    /* -----------------------------------------------------
       INTRO
    ----------------------------------------------------- */

    .story-intro {
        height: auto;
    }

    .story-intro__sticky {
        position: relative;

        height: auto;
        min-height: 0;

        padding:
            72px var(--padding) 85px;
    }

    .story-intro__image {
        position: relative;

        top: auto;
        left: auto;

        width: 100%;

        height: 70vw;

        min-height: 270px;
        max-height: 410px;

        opacity: 1;

        transform: none;
    }

    .story-intro__image::after {
        position: absolute;

        inset: 0;

        background:
            linear-gradient(180deg,
                transparent 50%,
                rgba(0, 0, 0, 0.25));

        content: "";
    }

    .story-intro__content {
        position: relative;

        top: auto;
        right: auto;

        width: 100%;

        margin-top: 52px;

        transform: none;
    }

    .story-intro__content .eyebrow {
        margin-bottom: 20px;

        font-size: 10px;
    }

    .story-intro__heading {
        font-size:
            clamp(58px,
                15vw,
                80px);

        line-height: 0.85;
    }

    .story-intro__text,
    .story-intro__content .dolci-button {
        opacity: 1;

        transform: none;
    }

    .story-intro__text {
        margin-top: 30px;

        font-size: 16px;

        line-height: 1.7;
    }

    .story-intro__content .dolci-button {
        margin-top: 28px;
    }

    .story-intro__year {
        position: relative;

        right: auto;
        bottom: auto;

        margin-top: 48px;

        font-size: 58px;

        opacity: 0.28;
    }


    /* -----------------------------------------------------
       THREE WORLDS
    ----------------------------------------------------- */

    .story-worlds {
        height: auto;
    }

    .story-worlds__sticky {
        position: relative;

        height: auto;
        min-height: 0;

        padding:
            80px 0 75px;
    }

    .story-worlds__intro {
        position: relative;

        top: auto;
        left: auto;

        padding:
            0 var(--padding);

        margin-bottom: 38px;
    }

    .story-worlds__intro .eyebrow {
        font-size: 10px;
    }

    .story-worlds__intro h2 {
        margin-top: 18px;

        font-size:
            clamp(58px,
                15vw,
                78px);
    }

    .story-worlds__counter {
        display: none;
    }

    .world-card {
        position: relative;

        top: auto;
        right: auto;
        bottom: auto;
        left: auto;

        width: calc(100% - (var(--padding) * 2));

        height: 440px;

        margin:
            0 auto 12px;

        opacity: 1;

        transform: none !important;
    }

    .world-card img {
        transition:
            transform 1.1s var(--ease);
    }

    .world-card:active img {
        transform: scale(1.035);
    }

    .world-card__content {
        right: 24px;
        bottom: 24px;
        left: 24px;
    }

    .world-card__number {
        font-size: 9px;
    }

    .world-card h3 {
        margin-top: 13px;

        font-size:
            clamp(48px,
                13vw,
                65px);
    }

    .world-card p {
        max-width: 330px;

        margin-top: 18px;

        font-size: 14px;

        line-height: 1.55;
    }

    .world-card a {
        margin-top: 20px;

        font-size: 9px;
    }


    /* -----------------------------------------------------
       CREAZIONI
    ----------------------------------------------------- */

    .creations-story {
        padding-top: 88px;
        padding-bottom: 90px;
    }

    .creations-story__header {
        display: block;

        padding-bottom: 42px;
    }

    .creations-story__title-wrap h2 {
        margin-top: 20px;

        font-size:
            clamp(62px,
                16vw,
                84px);

        line-height: 0.82;
    }

    .creations-story__intro {
        margin-top: 30px;

        padding-bottom: 0;
    }

    .creations-story__intro p {
        max-width: 340px;

        font-size: 15px;

        line-height: 1.7;
    }

    .creations-story__intro>a {
        margin-top: 23px;

        font-size: 9px;
    }

    .creations-gallery {
        display: grid;

        grid-template-columns: 1fr 1fr;

        grid-template-rows:
            400px 205px 205px;

        gap: 8px;

        margin-top: 42px;
    }

    .creation-feature {
        grid-column: 1 / span 2;

        grid-row: 1;

        min-height: 0;
    }

    .creation-feature__bottom {
        right: 19px;
        bottom: 20px;
        left: 19px;
    }

    .creation-number {
        margin-bottom: 8px;

        font-size: 9px;
    }

    .creation-feature__bottom h3 {
        font-size:
            clamp(45px,
                12vw,
                60px);
    }

    .creation-arrow {
        width: 39px;
        height: 39px;

        font-size: 15px;
    }

    .creation-card--mignon,
    .creation-card--lievitati,
    .creation-card--biscotteria,
    .creation-card--specialita {
        display: block;

        height: 205px;
    }

    .creation-card--mignon {
        grid-column: 1;
        grid-row: 2;
    }

    .creation-card--lievitati {
        grid-column: 2;
        grid-row: 2;
    }

    .creation-card--biscotteria {
        grid-column: 1;
        grid-row: 3;
    }

    .creation-card--specialita {
        grid-column: 2;
        grid-row: 3;
    }

    .creation-card__bottom {
        right: 13px;
        bottom: 13px;
        left: 13px;
    }

    .creation-card__bottom h3 {
        font-size:
            clamp(22px,
                6.5vw,
                29px);
    }

    .creation-card__bottom span {
        font-size: 8px;
    }

    .creations-story__footer {
        display: block;

        margin-top: 24px;

        padding-top: 20px;
    }

    .creations-story__footer p {
        font-size: 19px;
    }

    .creations-story__footer a {
        margin-top: 17px;

        font-size: 9px;
    }


    /* -----------------------------------------------------
       MENU
    ----------------------------------------------------- */

    .story-menu-new {
        height: auto;
    }

    .story-menu-new__sticky {
        position: relative;

        height: auto;
        min-height: 0;

        padding:
            88px 0 80px;
    }

    .story-menu-new__background {
        background:
            radial-gradient(circle at 50% 30%,
                #302d28 0%,
                #171614 68%);
    }

    .story-menu-new__inner {
        display: block;

        height: auto;
    }

    .story-menu-new__intro {
        padding:
            0 var(--padding);
    }

    .story-menu-new__intro h2 {
        margin-top: 20px;

        font-size:
            clamp(58px,
                15vw,
                78px);

        line-height: 0.84;
    }

    .story-menu-new__description {
        max-width: 340px;

        margin-top: 28px;

        font-size: 15px;
    }

    .story-menu-new__intro .dolci-button {
        margin-top: 28px;
    }

    .story-menu-new__visual {
        height: auto;

        min-height: 0;
        max-height: none;

        margin-top: 55px;

        padding:
            0 var(--padding) 65px;
    }

    .story-menu-new__image {
        position: relative;

        top: auto;
        right: auto;

        width: 100%;

        height: 430px;

        transform: none;

        opacity: 1;
    }

    .story-menu-new__image img {
        transform: scale(1);
    }

    .story-menu-new__content {
        position: relative;

        right: auto;
        bottom: auto;
        left: auto;

        min-height: 0;

        margin-top: -75px;

        padding:
            0 20px;

        z-index: 6;
    }

    .menu-category {
        position: relative;

        right: auto;
        bottom: auto;
        left: auto;

        display: none;

        padding:
            22px 20px 25px;

        background:
            rgba(23, 22, 20, 0.93);

        backdrop-filter: blur(8px);

        transform: none;
    }

    .story-menu-new.menu-step-1 .menu-category--1,
    .story-menu-new.menu-step-2 .menu-category--2,
    .story-menu-new.menu-step-3 .menu-category--3 {
        display: block;

        opacity: 1;

        transform: none;
    }

    .menu-category__top {
        padding-bottom: 13px;

        font-size: 8px;
    }

    .menu-category h3 {
        margin-top: 18px;

        font-size:
            clamp(55px,
                14vw,
                70px);
    }

    .menu-category p {
        margin-top: 18px;

        font-size: 14px;

        line-height: 1.6;
    }

    .story-menu-new__progress {
        position: absolute;

        top: auto;
        right: var(--padding);
        bottom: 0;
        left: var(--padding);

        justify-content: flex-end;

        transform: none;

        font-size: 9px;
    }

    .story-menu-new__progress i {
        width: 35px;
    }


    /* -----------------------------------------------------
       PHILOSOPHY
    ----------------------------------------------------- */

    .story-philosophy {
        height: auto;

        min-height: 100svh;
    }

    .story-philosophy__image {
        position: absolute;

        inset: 0;

        height: 100%;
    }

    .story-philosophy__image img {
        opacity: 0.32;

        transform: scale(1.03);
    }

    .story-philosophy__content {
        position: relative;

        top: auto;
        left: auto;

        width: 100%;

        min-height: 100svh;

        padding:
            95px var(--padding);

        display: flex;

        flex-direction: column;

        justify-content: center;

        transform: none;
    }

    .story-philosophy__content .eyebrow {
        margin-bottom: 25px;

        font-size: 9px;
    }

    .philosophy-statement {
        font-size:
            clamp(50px,
                13.5vw,
                76px);

        line-height: 0.84;
    }

    .philosophy-statement span {
        opacity: 1;

        transform: none;
    }

    .philosophy-line {
        width: 42px;

        margin-top: 30px;
    }

    .story-philosophy__content .dolci-button {
        align-self: flex-start;

        margin-top: 28px;
    }


    /* -----------------------------------------------------
       SERVICES
    ----------------------------------------------------- */

    .services-story {
        padding:
            90px 0 95px;
    }

    .services-story__inner {
        display: block;
    }

    .services-story__intro {
        padding:
            0 var(--padding);
    }

    .services-story__intro .eyebrow {
        font-size: 9px;
    }

    .services-story__intro h2 {
        margin-top: 19px;

        font-size:
            clamp(50px,
                13.5vw,
                70px);

        line-height: 0.86;
    }

    .services-story__intro>p:not(.eyebrow) {
        margin-top: 27px;

        font-size: 15px;
    }

    .services-story__intro .dolci-button {
        margin-top: 27px;
    }

    .services-story__list {
        margin-top: 58px;

        border-top:
            1px solid rgba(247, 244, 238, 0.2);
    }

    .service-story-item {
        grid-template-columns:
            28px 45px 1fr 20px;

        min-height: 112px;

        gap: 10px;

        padding:
            0 var(--padding);

        opacity: 0.55;
    }

    .service-story-item.is-active {
        padding-left: calc(var(--padding) + 10px);

        padding-right: calc(var(--padding) + 10px);
    }

    .service-story-item__number {
        padding-top: 27px;

        font-size: 8px;
    }

    .service-story-item__icon {
        width: 35px;
        height: 35px;
    }

    .service-story-item__icon svg {
        width: 19px;
        height: 19px;
    }

    .service-story-item__content h3 {
        font-size: 29px;
    }

    .service-story-item__content p {
        font-size: 11px;
    }

    .service-story-item__arrow {
        font-size: 16px;
    }


    /* -----------------------------------------------------
       CONTACT
    ----------------------------------------------------- */

    .contact-story {
        padding:
            92px 0 95px;
    }

    .contact-story__inner {
        display: flex;

        flex-direction: column;

        gap: 52px;

        align-items: stretch;
    }

    .contact-story__info {
        padding:
            0 var(--padding);
    }

    .contact-story__info>.eyebrow {
        font-size: 9px;
    }

    .contact-story__title {
        margin-top: 20px;

        font-size:
            clamp(57px,
                15vw,
                82px);

        line-height: 0.84;

        letter-spacing: -0.06em;
    }

    .contact-story__intro {
        max-width: 350px;

        margin-top: 28px;

        font-size: 17px;

        line-height: 1.5;
    }

    .contact-story__details {
        display: block;

        margin-top: 45px;
    }

    .contact-story__detail {
        display: flex;

        flex-direction: row;

        align-items: flex-start;

        min-height: 0;

        padding:
            20px 0;
    }

    .contact-story__detail+.contact-story__detail {
        padding-left: 0;

        border-top:
            1px solid rgba(23, 22, 20, 0.18);

        border-left: 0;
    }

    .contact-story__icon {
        width: 42px;
        height: 42px;

        margin-right: 17px;
        margin-bottom: 0;
    }

    .contact-story__icon svg {
        width: 20px;
        height: 20px;
    }

    .contact-story__detail .eyebrow {
        margin-bottom: 8px;

        font-size: 9px;
    }

    .contact-story__detail>div:last-child>p:last-child {
        font-size: 14px;

        line-height: 1.55;
    }

    .contact-story__map-button {
        width: 100%;

        min-width: 0;

        margin-top: 27px;

        padding:
            16px 17px 16px 20px;

        font-size: 9px;
    }

    .contact-story__social {
        margin-top: 25px;
    }

    .contact-story__social-label {
        margin-right: 7px;

        font-size: 8px;
    }

    .contact-story__social a {
        width: 35px;
        height: 35px;

        font-size: 8px;
    }

    .contact-story__visual {
        gap: 8px;
    }

    .contact-story__map {
        width: calc(100% - var(--padding));

        height: 410px;

        margin-left: auto;
        margin-right: auto;
    }

    .contact-story__map-label {
        top: 12px;
        right: 12px;
        left: 12px;

        min-width: 0;

        padding:
            11px 13px;
    }

    .contact-story__map-pin {
        width: 36px;
        height: 36px;
    }

    .contact-story__map-pin svg {
        width: 17px;
        height: 17px;
    }

    .contact-story__map-label strong {
        font-size: 16px;
    }

    .contact-story__map-label div>span {
        font-size: 9px;
    }

    .contact-story__photo {
        width: calc(100% - var(--padding));

        height: 220px;

        margin-left: auto;
        margin-right: auto;
    }

    .contact-story__photo-overlay {
        right: 18px;
        bottom: 16px;

        font-size: 24px;
    }


    /* -----------------------------------------------------
       FOOTER
    ----------------------------------------------------- */

    .site-footer {
        padding-top: 70px;
        padding-bottom: 25px;
    }

    .site-footer__inner {
        grid-template-columns:
            1fr 1fr;

        gap: 42px 25px;

        padding-bottom: 55px;
    }

    .site-footer .site-logo img {
        height: 48px;
    }

    .site-footer p {
        font-size: 13px;
    }

    .site-footer__bottom {
        display: block;
    }

    .site-footer__bottom p+p {
        margin-top: 8px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 500px) {

    :root {
        --padding: 6vw;
    }

    .story-hero {
        min-height: 600px;
    }

    .story-hero__content {
        padding-right: 22px;
        padding-left: 22px;
    }

    .story-hero__title {
        max-width: 350px;

        font-size: 49px;

        line-height: 0.96;
    }

    .story-hero__bottom {
        right: 22px;
        left: 22px;
    }

    .story-hero__bottom p {
        font-size: 12px;
    }

    .story-scroll {
        display: none;
    }

    .story-intro__sticky {
        padding-top: 65px;
        padding-bottom: 75px;
    }

    .story-intro__image {
        height: 72vw;

        min-height: 250px;
    }

    .story-intro__heading {
        font-size: 57px;
    }

    .story-intro__text {
        font-size: 15px;
    }

    .story-intro__year {
        font-size: 52px;
    }

    .story-worlds__sticky {
        padding-top: 72px;
    }

    .story-worlds__intro h2 {
        font-size: 56px;
    }

    .world-card {
        height: 390px;
    }

    .world-card h3 {
        font-size: 48px;
    }

    .world-card p {
        font-size: 13px;
    }

    .creations-story {
        padding-top: 78px;
    }

    .creations-story__title-wrap h2 {
        font-size: 59px;
    }

    .creations-gallery {
        grid-template-rows:
            350px 180px 180px;
    }

    .creation-card--mignon,
    .creation-card--lievitati,
    .creation-card--biscotteria,
    .creation-card--specialita {
        height: 180px;
    }

    .creation-feature__bottom h3 {
        font-size: 43px;
    }

    .creation-card__bottom h3 {
        font-size: 22px;
    }

    .story-menu-new__intro h2 {
        font-size: 54px;
    }

    .story-menu-new__image {
        height: 390px;
    }

    .menu-category h3 {
        font-size: 56px;
    }

    .story-philosophy__content {
        padding-top: 85px;
        padding-bottom: 85px;
    }

    .philosophy-statement {
        font-size: 48px;
    }

    .services-story__intro h2 {
        font-size: 47px;
    }

    .contact-story {
        padding-top: 78px;
    }

    .contact-story__title {
        font-size: 53px;
    }

    .contact-story__intro {
        font-size: 16px;
    }

    .contact-story__map {
        height: 365px;
    }

    .contact-story__photo {
        height: 200px;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .story-hero__title {
        max-width: 310px;

        font-size: 42px;
    }

    .story-intro__heading {
        font-size: 51px;
    }

    .story-worlds__intro h2 {
        font-size: 51px;
    }

    .world-card {
        height: 350px;
    }

    .world-card h3 {
        font-size: 43px;
    }

    .creations-story__title-wrap h2 {
        font-size: 53px;
    }

    .creations-gallery {
        grid-template-rows:
            320px 165px 165px;
    }

    .creation-card--mignon,
    .creation-card--lievitati,
    .creation-card--biscotteria,
    .creation-card--specialita {
        height: 165px;
    }

    .creation-feature__bottom h3 {
        font-size: 39px;
    }

    .creation-card__bottom h3 {
        font-size: 19px;
    }

    .story-menu-new__intro h2 {
        font-size: 49px;
    }

    .story-menu-new__image {
        height: 350px;
    }

    .menu-category h3 {
        font-size: 50px;
    }

    .philosophy-statement {
        font-size: 43px;
    }

    .services-story__intro h2 {
        font-size: 43px;
    }

    .contact-story__title {
        font-size: 48px;
    }

    .contact-story__map {
        height: 325px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   TUTTO NASCE QUI — VERTICAL CARD FLIP STORY
   New card-stack interaction
========================================================= */

.story-worlds {
    height: 340vh;
    isolation: isolate;
}

.story-worlds__sticky {
    position: sticky;
    top: 0;
    height: 100svh;
    min-height: 680px;
    overflow: hidden;
}

.story-worlds__intro {
    z-index: 20;
    pointer-events: none;
}

.story-worlds__counter {
    position: relative;
    z-index: 21;
}

.world-card__stack {
    position: absolute;
    top: 13%;
    right: 5vw;
    bottom: 7%;
    left: 30%;
    z-index: 5;
    perspective: 1400px;
}

.world-card__stack .world-card {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    opacity: var(--card-opacity, 1);
    transform:
        translate3d(0, var(--card-y, 0px), 0) scale(var(--card-scale, 1)) rotateX(var(--card-rotate, 0deg));
    transform-origin: center bottom;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    transition: none;
    pointer-events: none;
    border-radius: 0;
}

.world-card__stack .world-card.is-interactive {
    pointer-events: auto;
}

.world-card__stack .world-card__image {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.world-card__stack .world-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform:
        scale(var(--image-scale, 1.02)) translate3d(0, var(--image-y, 0px), 0);
    will-change: transform;
    transition: none;
}

.world-card__stack .world-card__overlay {
    z-index: 1;
    background:
        linear-gradient(180deg,
            rgba(0, 0, 0, 0.02) 15%,
            rgba(0, 0, 0, 0.08) 38%,
            rgba(0, 0, 0, 0.82) 100%);
}

.world-card__stack .world-card__content {
    z-index: 2;
    right: 7%;
    bottom: 7%;
    left: 7%;
}

.world-card__stack .world-card__number {
    display: block;
    opacity: 0.72;
}

.world-card__text {
    max-width: 620px;
}

.world-card__eyebrow {
    margin: 14px 0 0;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    line-height: 1.2;
    text-transform: uppercase;
    opacity: 0.72;
}

.world-card__stack .world-card h3 {
    margin-top: 12px;
}

.world-card__description {
    max-width: 470px;
}

.world-card__stack .world-card a {
    pointer-events: auto;
}

.story-worlds__scroll-hint {
    position: absolute;
    right: var(--padding);
    bottom: 30px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.48;
    pointer-events: none;
}

.story-worlds__scroll-hint i {
    display: block;
    width: 42px;
    height: 1px;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.25);
}

.story-worlds__scroll-hint i::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 42%;
    background: var(--dolci-cream);
    animation: dolciCardScrollHint 1.8s ease-in-out infinite;
}

@keyframes dolciCardScrollHint {
    0% {
        transform: translateX(-120%);
    }

    55%,
    100% {
        transform: translateX(260%);
    }
}

/* =========================================================
   TABLET — CARD STACK
========================================================= */

@media (max-width: 1100px) and (min-width: 801px) {

    .world-card__stack {
        top: 15%;
        right: 4vw;
        bottom: 7%;
        left: 27%;
    }

    .world-card__stack .world-card__content {
        right: 6%;
        bottom: 6%;
        left: 6%;
    }

    .world-card__stack .world-card h3 {
        font-size: clamp(58px, 8vw, 86px);
    }
}

/* =========================================================
   MOBILE — CARD STACK
========================================================= */

@media (max-width: 800px) {

    .story-worlds {
        height: 330vh;
    }

    .story-worlds__sticky {
        position: sticky;
        height: 100svh;
        min-height: 620px;
        padding: 0;
        overflow: hidden;
    }

    .story-worlds__intro {
        top: 7%;
        left: 22px;
        right: 22px;
        padding: 0;
        margin: 0;
    }

    .story-worlds__intro h2 {
        margin-top: 15px;
        font-size: clamp(52px, 15vw, 72px);
    }

    .story-worlds__counter {
        display: flex;
        margin-top: 22px;
    }

    .world-card__stack {
        top: 28%;
        right: 18px;
        bottom: 6%;
        left: 18px;
        perspective: 1000px;
    }

    .world-card__stack .world-card {
        inset: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .world-card__stack .world-card__content {
        right: 22px;
        bottom: 24px;
        left: 22px;
    }

    .world-card__stack .world-card__number {
        font-size: 9px;
    }

    .world-card__eyebrow {
        margin-top: 11px;
        font-size: 8px;
    }

    .world-card__stack .world-card h3 {
        margin-top: 10px;
        font-size: clamp(48px, 14vw, 68px);
        line-height: 0.86;
    }

    .world-card__description {
        max-width: 330px;
        margin-top: 16px;
        font-size: 13px;
        line-height: 1.5;
    }

    .world-card__stack .world-card a {
        margin-top: 18px;
        font-size: 8px;
    }

    .story-worlds__scroll-hint {
        right: 22px;
        bottom: 22px;
        font-size: 8px;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 500px) {

    .story-worlds {
        height: 325vh;
    }

    .story-worlds__sticky {
        min-height: 590px;
    }

    .story-worlds__intro {
        top: 6.5%;
    }

    .story-worlds__intro h2 {
        font-size: 53px;
    }

    .world-card__stack {
        top: 29%;
        right: 14px;
        bottom: 7%;
        left: 14px;
    }

    .world-card__stack .world-card__content {
        right: 19px;
        bottom: 20px;
        left: 19px;
    }

    .world-card__stack .world-card h3 {
        font-size: 45px;
    }

    .world-card__description {
        font-size: 12px;
    }

    .story-worlds__scroll-hint {
        display: none;
    }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .world-card__stack .world-card,
    .world-card__stack .world-card img {
        transition: none !important;
        animation: none !important;
    }

    .story-worlds__scroll-hint i::after {
        animation: none;
    }
}

/* =========================================================
   MENU DEL GIORNO — HORIZONTAL DESKTOP STORY
========================================================= */

.story-menu-new__track {
    display: contents;
}

@media (min-width: 801px) {

    .story-menu-new.menu-is-horizontal {
        height: 320svh;
    }

    .menu-is-horizontal .story-menu-new__sticky {
        min-height: 0;
    }

    .menu-is-horizontal .story-menu-new__inner {
        grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    }

    .menu-is-horizontal .story-menu-new__visual {
        height: calc(100svh - 96px);
        min-height: 0;
    }

    .menu-is-horizontal .story-menu-new__content {
        overflow: hidden;
    }

    .menu-is-horizontal .story-menu-new__track {
        display: flex;
        align-items: flex-end;
        width: 100%;
        min-height: inherit;
        transform: translate3d(var(--menu-x, 0%), 0, 0);
        will-change: transform;
    }

    .story-menu-new.menu-is-horizontal .menu-category {
        position: relative;
        right: auto;
        bottom: auto;
        left: auto;
        flex: 0 0 100%;
        min-width: 0;
        padding-right: 24px;
        opacity: 1;
        transform: none;
        transition: none;
        pointer-events: auto;
    }

    .menu-is-horizontal .menu-category--3 h3 {
        font-size: clamp(42px, 4.6vw, 74px);
    }
}

/* Dolci Tentazioni: wordmark, illustrative map and fictional detail pages. */
.demo-note {
    font-size: 11px;
    line-height: 1.65;
    letter-spacing: 0.04em;
    opacity: 0.7;
}

/* Mobile: the introduction scrolls normally, then the photo and a single
   proposal stay pinned. The extra distance gives each proposal time to read.
   Small viewport units keep Safari's retracting toolbar out of the timing. */
@media (max-width: 800px) {
    .story-menu-new__sticky {
        overflow: visible;
    }

    .menu-is-pinned .story-menu-new__runway {
        display: block;
        height: 460svh;
        margin-top: 55px;
    }

    .menu-is-pinned .story-menu-new__visual {
        position: sticky;
        top: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100svh;
        margin-top: 0;
        padding: 24px var(--padding) 48px;
    }

    .menu-is-pinned .story-menu-new__image {
        flex-shrink: 0;
        height: clamp(130px, calc(100svh - 265px), 430px);
    }

    .menu-is-pinned .story-menu-new__content {
        flex-shrink: 0;
        margin-top: -75px;
        padding: 0 14px;
    }

    .menu-is-pinned .story-menu-new__track {
        display: grid;
    }

    .menu-is-pinned .story-menu-new__track .menu-category {
        grid-area: 1 / 1;
        display: block;
        visibility: hidden;
        opacity: 0;
        transform: translateY(16px);
        pointer-events: none;
        transition: opacity 0.55s ease, transform 0.65s var(--ease),
            visibility 0.55s;
    }

    .menu-is-pinned.menu-step-1 .menu-category--1,
    .menu-is-pinned.menu-step-2 .menu-category--2,
    .menu-is-pinned.menu-step-3 .menu-category--3 {
        visibility: visible;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .menu-is-pinned .story-menu-new__progress {
        bottom: 18px;
    }

    /* Readable document flow when motion is reduced, or JS is unavailable. */
    .story-menu-new:not(.menu-is-pinned) .story-menu-new__track .menu-category {
        display: block;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        transition: none;
    }

    .story-menu-new:not(.menu-is-pinned) .menu-category + .menu-category {
        margin-top: 14px;
    }

    .story-menu-new .menu-category--3 h3 {
        font-size: clamp(28px, 9vw, 54px);
        line-height: 1;
    }
}

@media (max-width: 800px) and (max-height: 480px) {
    .menu-is-pinned .story-menu-new__visual {
        padding-top: 10px;
        padding-bottom: 30px;
    }

    .menu-is-pinned .story-menu-new__image {
        height: max(100px, calc(100svh - 210px));
    }

    .menu-is-pinned .menu-category {
        padding: 14px 16px 18px;
    }

    .menu-is-pinned .menu-category h3 {
        font-size: 38px;
        margin-top: 12px;
    }

    .menu-is-pinned .menu-category--3 h3 {
        font-size: clamp(25px, 8vw, 38px);
    }

    .menu-is-pinned .menu-category p {
        margin-top: 12px;
        font-size: 13px;
        line-height: 1.45;
    }

    .menu-is-pinned .story-menu-new__progress {
        bottom: 8px;
    }
}

#dati-demo,
#mappa-demo,
#menu-esempio {
    scroll-margin-top: 35px;
}

.contact-story__map .demo-map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-story__photo-overlay span {
    font-size: clamp(28px, 3.4vw, 60px);
    letter-spacing: 0.04em;
}

.contact-story__detail a,
.site-footer a {
    overflow-wrap: anywhere;
}

.demo-page-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 620px;
    height: 78svh;
    background: var(--dolci-black);
    color: var(--dolci-cream);
}

.demo-page-hero__image,
.demo-page-hero__veil {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.demo-page-hero__image {
    object-fit: cover;
}

.demo-page-hero__veil {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.15));
}

.demo-page-hero__content {
    position: relative;
    padding-top: 160px;
    padding-bottom: 75px;
}

.demo-page-hero h1 {
    margin: 26px 0 0;
    font-family: var(--font-serif);
    font-size: clamp(54px, 6.6vw, 100px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.demo-page-content {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 60px 8vw;
    padding-top: 100px;
    padding-bottom: 100px;
}

.demo-page-intro h2 {
    margin: 24px 0;
    font-family: var(--font-serif);
    font-size: clamp(44px, 4.2vw, 64px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.035em;
}

.demo-page-intro > p:last-child {
    max-width: 480px;
    font-size: 18px;
}

.demo-page-section {
    display: grid;
    grid-template-columns: 35px minmax(0, 1fr);
    gap: 22px;
    padding: 30px 0;
    border-top: 1px solid var(--dolci-line);
}

.demo-page-section .eyebrow {
    padding-top: 8px;
}

.demo-page-section h3 {
    margin: 0 0 16px;
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 400;
    line-height: 1.15;
}

.demo-page-section p {
    margin: 0;
    opacity: 0.75;
    overflow-wrap: anywhere;
}

.demo-page-bottom {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding-top: 30px;
    border-top: 1px solid var(--dolci-line);
}

.demo-page-bottom .dolci-button {
    flex-shrink: 0;
}

@media (max-width: 1100px) {
    .site-navigation,
    .header-book-button {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

@media (max-width: 800px) {
    .demo-page-hero {
        min-height: 520px;
        height: 72svh;
    }

    .demo-page-hero__content {
        padding-bottom: 55px;
    }

    .demo-page-hero h1 {
        font-size: clamp(42px, 9.5vw, 65px);
    }

    .demo-page-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
        padding-top: 65px;
        padding-bottom: 65px;
    }

    .demo-page-section h3 {
        font-size: 28px;
    }

    .demo-page-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .contact-story__title {
        font-size: clamp(44px, 10.5vw, 68px);
    }

    .contact-story__map-label {
        right: 12px;
        min-width: 0;
    }
}

/* Bozza cliente 26 ottobre 2026. La tipografia e le animazioni esistenti
   rimangono la base; queste regole riguardano testi e contenuti nuovi. */
.draft-review-note {
    font-size: 12px;
    line-height: 1.65;
    opacity: 0.68;
}

.draft-text-link {
    display: inline-block;
    margin-top: 18px;
    padding-bottom: 5px;
    border-bottom: 1px solid currentColor;
    font-size: 14px;
}

.draft-detail-list {
    margin: 20px 0 0;
    padding-left: 20px;
    font-size: 17px;
    line-height: 1.75;
}

.draft-detail-list li + li { margin-top: 15px; }
.contact-story__details.draft-contact-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin: 40px 0 0;
    border: 0;
}

.draft-contact-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px 24px;
    padding: 20px 0;
    border-top: 1px solid var(--dolci-line);
}

.draft-contact-row > dt {
    flex: 0 0 86px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.draft-contact-row > dd {
    flex: 1 1 240px;
    min-width: 0;
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
}

.draft-contact-address { font-style: normal; }
.draft-contact-address span { display: block; }
.draft-contact-phone {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: 27px;
    line-height: 1.2;
    letter-spacing: -0.025em;
    font-variant-numeric: tabular-nums;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.draft-contact-phone:hover { text-decoration: underline; }
.draft-contact-phone:focus-visible,
.draft-contact-cta:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.draft-contact-hours { margin: 0; }
.draft-contact-hours__row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 5px 16px;
    font-size: 14px;
    line-height: 1.6;
}

.draft-contact-hours__row + .draft-contact-hours__row { margin-top: 16px; }
.draft-contact-hours__row > dt { flex: 1 1 110px; }
.draft-contact-hours__row > dd {
    display: flex;
    flex: 0 0 auto;
    gap: 16px;
    margin: 0;
    font-variant-numeric: tabular-nums;
}

.draft-contact-hours__row span { white-space: nowrap; }
.draft-contact-cta {
    max-width: 100%;
    margin-top: 28px;
    padding-inline: 24px;
    text-align: center;
}

.draft-location-visual { margin: 0; gap: 0; }
.draft-location-map { overflow: hidden; aspect-ratio: 4 / 3; min-height: 320px; background: #ded8cd; scroll-margin-top: 32px; }
.draft-location-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.draft-location-caption {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    padding: 20px 0;
    border-bottom: 1px solid var(--dolci-line);
}
.draft-location-caption__identity { display: grid; gap: 5px; }
.draft-location-caption__name { font: 400 26px / 1.15 var(--font-serif); letter-spacing: -0.02em; }
.draft-location-caption__place { font-size: 13px; line-height: 1.5; color: #625c53; }
.draft-location-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 44px;
    padding: 8px 0;
    border-bottom: 1px solid currentColor;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.draft-location-link svg { flex-shrink: 0; transition: transform 200ms ease; }
.draft-location-link:hover svg { transform: translate(2px, -2px); }
.draft-location-link:focus-visible { outline: 2px solid var(--dolci-black); outline-offset: 5px; }
@media (prefers-reduced-motion: reduce) { .draft-location-link svg { transition: none; } }
.draft-opening-hours { padding-top: 34px; }
.draft-opening-hours h3 { font: 400 32px / 1.15 var(--font-serif); }
.draft-opening-hours dl { margin: 30px 0; }
.draft-opening-hours dl div { padding: 15px 0; border-top: 1px solid var(--dolci-line); }
.draft-opening-hours dt { font-weight: 600; }
.draft-opening-hours dd { margin: 5px 0 0; }

.draft-gallery {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.draft-gallery figure { margin: 0; overflow: hidden; background: var(--dolci-beige); }
.draft-gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.draft-gallery figure:first-child { grid-column: 1 / -1; }
.draft-gallery figure:first-child img { aspect-ratio: 16 / 9; }

.draft-request {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 940px;
    margin: 0 auto;
    padding: 52px 0;
    border-top: 1px solid var(--dolci-line);
    scroll-margin-top: 35px;
}

.draft-request__heading { max-width: 660px; margin-bottom: 32px; }
.draft-request h2 {
    margin: 16px 0;
    font: 400 clamp(32px, 3.8vw, 52px) / 1.08 var(--font-serif);
    letter-spacing: -0.02em;
}

.draft-request__heading > p { margin: 14px 0 0; }
.draft-request__heading a { text-decoration: underline; text-underline-offset: 3px; }
.draft-request-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.draft-form-group {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.draft-form-group legend { margin-bottom: 16px; padding: 0; font-size: 15px; font-weight: 600; }
.draft-request-form label { display: block; min-width: 0; font-size: 13px; line-height: 1.5; }
.draft-request-form input,
.draft-request-form select,
.draft-request-form textarea {
    display: block;
    width: 100%;
    min-width: 0;
    margin-top: 10px;
    min-height: 50px;
    padding: 13px 14px;
    border: 1px solid rgba(23, 22, 20, 0.22);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.55);
    color: var(--dolci-black);
    font-size: 16px;
}

.draft-request-form textarea { resize: vertical; }
.draft-request-form input::placeholder,
.draft-request-form textarea::placeholder { color: #756f66; opacity: 1; }
.draft-request-form input:focus-visible,
.draft-request-form select:focus-visible,
.draft-request-form textarea:focus-visible { outline: 2px solid var(--dolci-black); outline-offset: 4px; }
.draft-field-wide { grid-column: 1 / -1; }
.draft-request-form .draft-checkbox { display: flex; align-items: flex-start; gap: 12px; }
.draft-request-form input[type="checkbox"] { width: 18px; height: 18px; min-height: 18px; padding: 0; margin: 2px 0 0; flex-shrink: 0; }
.draft-request-form button:disabled { color: #756f66; border-color: var(--dolci-line); opacity: 1; cursor: not-allowed; }
.draft-request-form button:disabled::before { display: none; }
.draft-request-form input[type="file"] { white-space: normal; }
.draft-form-details { padding: 18px 0; border-top: 1px solid var(--dolci-line); border-bottom: 1px solid var(--dolci-line); }
.draft-form-details summary { cursor: pointer; font-size: 14px; }
.draft-form-details summary span { margin-left: 8px; color: #756f66; font-size: 12px; }
.draft-form-details summary:focus-visible { outline: 2px solid var(--dolci-black); outline-offset: 5px; }
.draft-form-details__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-top: 24px; }
.demo-page-hero { height: auto; min-height: 620px; }
#torte { scroll-margin-top: 40px; }

/* Spazi naturali nei titoli, mantenendo il contrasto serif del progetto. */
.story-hero__title,
.story-intro__heading,
.story-worlds__intro h2,
.creations-story__title-wrap h2,
.philosophy-statement,
.services-story__intro h2,
.contact-story__title,
.demo-page-hero h1,
.demo-page-intro h2,
.demo-page-section h3,
.draft-request h2 {
    letter-spacing: -0.02em;
    word-spacing: 0.06em;
    line-height: 1.04;
}

.story-intro__content,
.contact-story__info { container-type: inline-size; }
.story-intro__heading { font-size: clamp(38px, 5.8vw, 80px); }
.contact-story__title { font-size: clamp(30px, 4.2vw, 64px); }
.contact-story__title span { display: block; }
@supports (width: 1cqw) {
    .story-intro__heading { font-size: clamp(38px, 15.4cqw, 80px); }
    .contact-story__title { font-size: clamp(26px, 11.5cqw, 64px); }
}

@media (max-width: 800px) {
    .draft-detail-list { font-size: 16px; }
    .draft-gallery { gap: 14px; }
    .draft-gallery figure:first-child img { aspect-ratio: 4 / 3; }
    .draft-request { padding: 40px 0; }
    .draft-form-group { grid-template-columns: minmax(0, 1fr); }
    .draft-request-form { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .draft-field-wide { grid-column: auto; }
    .draft-form-details__fields { grid-template-columns: minmax(0, 1fr); }
    .demo-page-hero { height: auto; min-height: 520px; }
    .demo-page-hero__content { padding-top: 145px; }
}

/* Proposte: titolo separato e testo su superficie chiara. */
.story-worlds__sticky { min-height: 640px; }
.story-worlds__intro {
    position: absolute;
    top: clamp(30px, 5svh, 60px);
    right: var(--padding);
    left: var(--padding);
    width: auto;
    margin: 0;
    padding: 0;
}
.story-worlds__intro .eyebrow { font-size: 11px; line-height: 1.5; }
.story-worlds__intro h2 {
    max-width: calc(100% - 96px);
    margin: 12px 0 0;
    font-size: clamp(40px, 4.6vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.02em;
}
.story-worlds__counter { position: absolute; right: 0; bottom: 4px; display: flex; margin: 0; font-variant-numeric: tabular-nums; }
.world-card__stack {
    top: clamp(160px, 22svh, 210px);
    right: var(--padding);
    bottom: 7svh;
    left: var(--padding);
}
.world-card__stack .world-card {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    background: var(--dolci-cream);
    color: var(--dolci-black);
}
.world-card__stack .world-card:not(.is-current) { visibility: hidden; }
.world-card__stack .world-card.is-current { visibility: visible; pointer-events: auto; }
.world-card__stack .world-card__image { position: relative; inset: auto; grid-column: 1; width: 100%; height: 100%; min-width: 0; }
.world-card__stack .world-card__overlay { display: none; }
.world-card__stack .world-card__content {
    position: relative;
    inset: auto;
    grid-column: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    height: 100%;
    padding: clamp(28px, 3.5vw, 64px);
}
.world-card__stack .world-card__number { margin-bottom: 30px; font-size: 11px; line-height: 1.4; opacity: 0.55; }
.world-card__stack .world-card__text { max-width: none; }
.world-card__stack .world-card .world-card__eyebrow { margin: 0; font-size: 10px; line-height: 1.5; letter-spacing: 0.16em; opacity: 0.65; }
.world-card__stack .world-card h3 { margin: 14px 0 0; font-size: clamp(38px, 4vw, 68px); line-height: 1.06; letter-spacing: -0.025em; }
.world-card__stack .world-card .world-card__description { margin: 24px 0 0; font-size: 16px; line-height: 1.6; }
.world-card__stack .world-card a { align-self: flex-start; align-items: center; min-height: 44px; margin-top: 28px; padding: 8px 0; border-color: var(--dolci-black); font-size: 11px; }
.world-card__stack .world-card a span:first-child { font-size: inherit; transform: none; }
.world-card__stack .world-card a span:last-child { font-size: 20px; }
.world-card__stack .world-card a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.story-worlds__scroll-hint { bottom: 22px; }
@media (max-width: 800px) {
    .story-worlds__sticky { min-height: 560px; }
    .story-worlds__intro { top: 28px; left: 18px; right: 18px; }
    .story-worlds__intro .eyebrow { font-size: 9px; }
    .story-worlds__intro h2 { max-width: none; margin-top: 10px; font-size: clamp(30px, 7vw, 48px); }
    .story-worlds__counter { top: 0; bottom: auto; margin: 0; font-size: 9px; gap: 6px; }
    .world-card__stack { top: 132px; left: 18px; right: 18px; bottom: 28px; }
    .world-card__stack .world-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 52%) minmax(0, 1fr); }
    .world-card__stack .world-card__image { grid-column: 1; grid-row: 1; }
    .world-card__stack .world-card__content { grid-column: 1; grid-row: 2; padding: 20px 22px; }
    .world-card__stack .world-card__number { display: none; }
    .world-card__stack .world-card .world-card__eyebrow { font-size: 9px; letter-spacing: 0.12em; }
    .world-card__stack .world-card h3 { margin-top: 10px; font-size: clamp(30px, 8.4vw, 42px); line-height: 1.08; }
    .world-card__stack .world-card .world-card__description { margin-top: 12px; font-size: 13px; line-height: 1.5; }
    .world-card__stack .world-card a { margin-top: 14px; font-size: 10px; }
    .story-worlds__scroll-hint { display: none; }
}
@media (max-width: 800px) and (max-height: 680px) {
    .story-worlds__intro { top: 22px; }
    .world-card__stack { top: 120px; bottom: 24px; }
    .world-card__stack .world-card { grid-template-rows: minmax(0, 44%) minmax(0, 1fr); }
    .world-card__stack .world-card__content { padding: 18px; }
}

.draft-request__heading:has(.draft-request__email) { margin-bottom: 0; }
.draft-request__heading .draft-request__email { margin-top: 24px; text-decoration: none; }
.draft-request__heading .draft-request__address { overflow-wrap: anywhere; }

/* Titoli più compatti e spazio tra gli elementi della testata e del footer. */
@media (min-width: 1101px) {
    .site-header__inner > .dolci-block-navigation + .header-book-button {
        margin-inline-start: clamp(24px, 2.5vw, 40px);
    }
}

.story-hero__title { max-width: none; }
.story-philosophy__content,
.services-story__intro { container-type: inline-size; }

@media (min-width: 801px) {
    .story-philosophy__content { width: min(920px, 82%); }
}

.philosophy-statement { font-size: clamp(28px, 7.2vw, 98px); }
.services-story__intro h2 { font-size: clamp(28px, 4.4vw, 82px); }

@supports (width: 1cqw) {
    .philosophy-statement { font-size: clamp(26px, 11.4cqw, 106px); }
    .services-story__intro h2 { font-size: clamp(26px, 15.2cqw, 88px); }
}

.site-footer .site-logo.dolci-native-image { margin-block-end: 20px; }

/* Quattro passaggi del preventivo, in ordine di lettura. */
.demo-page-section--steps { display: block; }

.demo-page-section--steps .quote-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px clamp(30px, 5vw, 70px);
    margin: 22px 0 0;
    padding-inline-start: 24px;
    list-style: decimal-leading-zero outside;
}

.quote-steps > li {
    min-width: 0;
    padding: 16px 0 0 8px;
    border-top: 1px solid var(--dolci-line);
}

.quote-steps > li::marker {
    font: 600 11px/1.4 var(--font-sans);
    letter-spacing: .08em;
}

.quote-steps h4 {
    margin: 0 0 8px;
    font: 400 clamp(21px, 2.2vw, 27px)/1.2 var(--font-serif);
}

.quote-steps p { margin: 0; font-size: 16px; line-height: 1.6; }

@media (max-width: 620px) {
    .demo-page-section--steps .quote-steps { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}


/* Recensioni in homepage */
.home-reviews {
    background: var(--dolci-cream);
    color: var(--dolci-black);
    padding-block: clamp(56px, 7vw, 112px);
}

.home-reviews__inner { max-width: 1120px; }

.home-reviews__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 36px;
    margin-block-end: clamp(24px, 4vw, 46px);
}

.home-reviews__heading h2 {
    margin: 0 0 10px;
    font: 400 clamp(36px, 4.8vw, 70px)/1.06 var(--font-serif);
    letter-spacing: -.035em;
    text-wrap: balance;
}

.home-reviews__link { flex-shrink: 0; }

.home-reviews__header:last-child { margin-block-end: 0; }
.home-reviews__status { margin: 12px 0; }
.home-reviews__status:empty { display: none; }
.home-reviews__widget [hidden] { display: none; }
.home-reviews__widget button { cursor: pointer; }
.home-reviews__widget button:disabled { cursor: wait; }
.home-reviews__panel {
    max-width: 400px;
    margin-block-start: 16px;
}

.home-reviews__panel gmp-place-details {
    display: block;
    width: 100%;
    height: min(600px, 72vh);
}


.home-reviews__heading p {
    margin: 0;
    color: #534b43;
    font-size: .95rem;
}

.home-reviews__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(28px, 5vw, 74px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-reviews__item {
    padding-block: clamp(17px, 2.6vw, 30px);
    border-block-start: 1px solid var(--dolci-line);
}

.home-reviews__byline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.home-reviews__byline h3 {
    margin: 0;
    font: 400 clamp(23px, 2.5vw, 33px)/1.2 var(--font-serif);
}

.home-reviews__score {
    margin: 0;
    color: #674830;
    font-size: .8125rem;
    font-weight: 700;
    white-space: nowrap;
}

.home-reviews__excerpt {
    max-width: 48ch;
    margin: 9px 0 0;
    font: 400 clamp(18px, 2vw, 24px)/1.45 var(--font-serif);
}

@media (max-width: 650px) {
    .home-reviews__list { grid-template-columns: minmax(0, 1fr); }
}
