@font-face {
    font-family: 'Gomes Noah';
    src: url('GomesNoah.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/*=============================================
=            CSS GLOBALS & VARS              =
=============================================*/
:root {
    --c-dark: #100e0d;
    --c-orange: #eb452b;
    /* Vibrant Red-Orange */
    --c-beige: #e5e0d4;
    /* Paper Beige */
    --c-green: #588371;
    /* Sage Green */
    --c-white: #fefefe;

    /* User specifically requested Gomes Noah for titles and Almarai for text */
    --f-title: 'Gomes Noah', 'Archivo Black', sans-serif;
    --f-body: 'Almarai', sans-serif;
}

/* =========================================
   ANIMATIONS & REVEALS
   ========================================= */
.reveal-mask {
    display: inline-block;
    opacity: 0;
    /* Reveal from bottom to top */
    transform: translateY(30px);
    transition: opacity 1.4s cubic-bezier(0.19, 1, 0.22, 1),
        transform 1.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal-mask.reveal-active {
    opacity: 1 !important;
    transform: translateY(0);
}

/* Delayed entrance: Fade Up */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.215, 0.61, 0.355, 1),
        transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* Slide from Left */
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 1.2s cubic-bezier(0.215, 0.61, 0.355, 1),
        transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* Slide from Right */
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 1.2s cubic-bezier(0.215, 0.61, 0.355, 1),
        transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* Blur & Focus */
.reveal-blur {
    opacity: 0;
    filter: blur(15px);
    transform: scale(0.95);
    transition: opacity 1.5s ease,
        filter 1.5s ease,
        transform 1.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* Subtle Zoom */
.reveal-zoom {
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1.4s ease,
        transform 1.4s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* Active State for all REVEALS (both on the element or its children) */
.reveal-active,
.reveal-active .reveal-left,
.reveal-active .reveal-right,
.reveal-active .reveal-blur,
.reveal-active .reveal-zoom,
.reveal-active .reveal-mask,
.reveal-active .fade-in-up {
    opacity: 1 !important;
    transform: translate(0, 0) scale(1) !important;
    filter: blur(0) !important;
}

/* Delay modifiers */
.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

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

body {
    background-color: var(--c-dark);
    color: var(--c-white);
    font-family: var(--f-body);
    overflow-x: hidden;
    scroll-behavior: auto;
    -webkit-font-smoothing: antialiased;
}

/* Base Typo */
.headline {
    font-family: var(--f-title);
    text-transform: uppercase;
    line-height: 0.85;
    letter-spacing: -0.02em;
}

.body-text {
    font-size: 1.15rem;
    line-height: 1.5;
    font-weight: 400;
}

.body-text b {
    font-weight: 700;
}

.small-width {
    max-width: 600px;
}

.white-text {
    color: var(--c-white);
}

.black-text {
    color: var(--c-dark);
}

.red-orange {
    color: var(--c-orange);
}

.green-text {
    color: var(--c-green);
}

.red-orange-bg {
    background-color: var(--c-orange);
}

.beige-bg {
    background-color: var(--c-beige);
    color: var(--c-dark);
}

.dark-bg {
    background-color: var(--c-dark);
}

.relative {
    position: relative;
}

.section {
    position: relative;
}

/* Removed default overflow: hidden; so overlapping elements like overlapping-cocktail and girl_meat can cross boundaries freely, or at least be set per section */

/* Image Reset */
img {
    display: block;
    max-width: 100%;
}

.bg-img,
.full-img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

.full-img {
    height: auto;
    min-height: 80vh;
}

/* =========================================
   1. HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--c-dark);
}

/* Gradiente scuro nella parte bassa dell'hero per coprire
   zone chiare dell'immagine e raccordarsi con la sezione sotto */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45%;
    background: linear-gradient(to top, rgba(16, 14, 13, 1) 0%, rgba(16, 14, 13, 0.5) 60%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.hero .bg-img {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 2.5rem 4rem;
    align-items: flex-start;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav {
    display: flex;
    gap: 3rem;
}

.nav a {
    color: var(--c-white);
    text-decoration: none;
    font-family: var(--f-body);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.hero-content {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: flex-end;
    /* Align container to right */
    justify-content: center;
    padding-right: 15%;
    /* Push left from right edge */
}

.hero-text-block {
    width: max-content;
    max-width: 90vw;
    /* Avoid overflowing screen but allow full word */
    margin-top: -5%;
    display: flex;
    flex-direction: column;
}

.hero-text-block .headline {
    font-size: 8.5rem;
    /* Extremely large */
    display: flex;
    flex-direction: column;
    text-align: left;
    /* Text itself is left aligned, but block is on the right */
}

.text-right {
    text-align: right;
    align-self: flex-end;
    /* Push to the right edge of container */
}

.hero-text-block .subtitle {
    font-family: var(--f-body);
    font-size: 1.05rem;
    line-height: 1.5;
    margin-top: 2rem;
    letter-spacing: 0.01em;
}

.flags {
    position: absolute;
    bottom: 3rem;
    right: 4rem;
    z-index: 10;
}

.flags img {
    width: 60px;
}

/* =========================================
   2. FILOSOFIA RAW BAR
   ========================================= */
.filosofia {
    overflow: visible;
    margin-top: -20%;
    z-index: 20;
    position: relative;
    background-color: transparent;
}

.filosofia::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%; /* Covers the bottom part to make text legible */
    background: linear-gradient(to top, rgba(16, 14, 13, 0.95) 0%, rgba(16, 14, 13, 0.4) 50%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.filosofia .full-img {
    display: block;
    width: 100%;
    height: auto;
    margin-top: -15%;
}

.filosofia-content {
    position: absolute;
    bottom: 35%; /* Moved higher as requested */
    left: 10%;
    max-width: 850px;
    z-index: 5; /* Above the gradient overlay */
}

.filosofia .body-text {
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.filosofia .headline {
    font-size: clamp(3rem, 7vw, 6.5rem);
    margin-bottom: 2rem;
    text-align: left;
}

.indent-text {
    margin-left: 4px;
}

.reservations-btn-wrap {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.btn-img {
    height: 90px;
    width: auto;
    transition: transform 0.3s ease;
}

.btn-img:hover {
    transform: scale(1.05);
}

/* Spacer section for button wrapping */
/* =========================================
   3. LA CUCINA FUSION
   ========================================= */
.cucina-fusion {
    padding: 8rem 0;
}

.split-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 10%;
    gap: 5rem;
}

.cucina-fusion .headline {
    font-size: 7rem;
    flex: 1;
}

.right-text-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 1rem;
}

/* =========================================
   4. DOUBLE GALLERY
   ========================================= */
.double-gallery {
    display: flex;
    width: 100%;
}

.double-gallery img {
    width: 50%;
    object-fit: cover;
    display: block;
}

/* =========================================
   5. FUSION E CRUNCH
   ========================================= */
.fusion-crunch {
    display: flex;
    padding: 0;
}

.fusion-crunch.flush {
    overflow: visible;
}

.text-side {
    width: 50%;
    position: relative;
    padding: 4rem 2rem 4rem 5%;
}

.img-side {
    width: 50%;
}

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

.stacked {
    display: flex;
    flex-direction: column;
    font-size: 16vw;
    /* Immense size */
    line-height: 0.8;
}

.floating-fries {
    position: absolute;
    top: 35%;
    left: 45%;
    width: 60%;
    /* Reduced from 80% */
    max-width: 550px;
    z-index: 10;
    transform: rotate(5deg);
    pointer-events: none;
    will-change: transform;
    /* Optimized for parallax */
}

/* =========================================
   6. ESSENZA MEDITERRANEA
   ========================================= */
.essenza {
    padding-top: 6rem;
    padding-bottom: 12rem;
    /* Buffer to prevent text overlapping the absolute stripe */
    min-height: 80vh;
    /* Ensure the section isn't too short, otherwise absolute hand sticks up too far out */
    overflow: visible;
}

.green-stripe-css {
    position: absolute;
    bottom: -1px;
    /* To prevent hairline gaps and meet Mixology */
    left: 0;
    width: 100%;
    height: 18vw;
    /* Scales properly with responsive width */
    background-color: var(--c-green);
    -webkit-clip-path: polygon(0 75%, 100% 0, 100% 100%, 0 100%);
    clip-path: polygon(0 75%, 100% 0, 100% 100%, 0 100%);
    z-index: 5;
    pointer-events: none;
}

.left-image-container {
    flex: 1;
    position: static;
    z-index: 20;
    /* High z-index explicitly pushes the entire flex container and its children IN FRONT OF the green stripe */
}

.steak-hand {
    /* Steak image attached to bottom */
    position: absolute;
    bottom: 0;
    left: -5%;
    width: 50%;
    max-width: 650px;
    z-index: 15;
    /* Overlaps green stripe */
    display: block;
    pointer-events: none;
}

.right-text-container {
    flex: 1;
    padding-top: 5rem;
    position: relative;
    z-index: 10;
}

.essenza .headline {
    font-size: 8.5rem;
    /* Huge size matching Mixology */
    margin-bottom: 3rem;
    text-align: left;
}

.shift-right {
    margin-left: 20%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.shift-right-less {
    margin-left: 8%;
}

.overlapping-cocktail {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 38%;
    max-width: 500px;
    z-index: 10;
    pointer-events: none;
}

/* =========================================
   7. MIXOLOGY E VIBES
   ========================================= */
.mixology {
    padding: 6rem 0 4rem 0;
    overflow: visible;
}

.padded-mixology {
    position: relative;
    z-index: 5;
}

.mixology-text {
    flex: 1;
    padding-bottom: 4rem;
    position: relative;
    z-index: 15;
    /* Text always in front of cocktail image */
}

.giant-headline {
    font-size: 9.5rem;
    /* Absolutely massive */
    line-height: 0.8;
    margin-bottom: 3rem;
    letter-spacing: -0.05em;
    text-align: left;
}

.mixology-text .body-text {
    max-width: 550px;
    font-size: 1.15rem;
}

.mixology-heart {
    margin-top: 4rem;
    width: 250px;
    display: block;
    z-index: 30;
    position: relative;
    margin-left: 0;
}

.mixology-heart img {
    width: 100%;
    height: auto;
    display: block;
}

.mixology-right-container {
    flex: 0.6;
    position: relative;
}

.heart-logo-overlap {
    position: absolute;
    bottom: -10rem;
    /* Increased to account for larger size and keep it centered */
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    width: 380px;
}

.heart-logo-overlap img {
    width: 100%;
    height: auto;
    animation: heartbeat 4s ease-in-out infinite;
    transform-origin: center;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.1);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.06);
    }
}

/* =========================================
   8. SECOND GALLERY (Done by .double-gallery)
   ========================================= */

/* =========================================
   9. CALA LLONGA
   ========================================= */
.cala-llonga {
    height: 100vh;
    display: flex;
    align-items: flex-end;
}

.cala-llonga .bg-img {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.cala-content {
    padding: 5rem 10%;
    position: relative;
    z-index: 5;
}

.cala-llonga .headline {
    font-size: 7rem;
    margin-bottom: 2rem;
}

/* Responsive tweaks */
@media (max-width: 1200px) {
    .stacked {
        font-size: 12vw;
    }

    .hero-text-block .headline {
        font-size: 6rem;
    }

    .floating-fries {
        width: 100%;
        left: 20%;
        top: 40%;
    }

    .overlapping-cocktail {
        width: 70%;
        right: -10%;
    }
}

@media (max-width: 768px) {
    /* Global Typography for Mobile */
    .headline {
        font-size: 3.8rem !important;
        line-height: 1 !important;
    }

    .body-text, .body-text p {
        font-size: 1.1rem !important;
        line-height: 1.6 !important;
        max-width: 100% !important;
    }

    .giant-headline, .essenza .headline, .mixology .headline {
        font-size: 4.2rem !important;
        line-height: 0.9 !important;
    }

    .split-container {
        flex-direction: column;
        gap: 3rem;
        padding: 4rem 2rem !important;
    }

    .double-gallery {
        flex-direction: column;
    }

    .double-gallery img {
        width: 100%;
        height: 60vh;
    }

    .fusion-crunch {
        flex-direction: row;
        overflow: hidden;
    }

    .text-side {
        width: 50%;
        padding: 2rem 0 2rem 4%;
        overflow: visible;
    }

    .img-side {
        width: 50%;
    }

    .img-side img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    .stacked {
        font-size: 13vw !important;
        text-align: left;
        padding: 0;
    }

    .floating-fries {
        position: absolute;
        width: 50%;
        left: 60%;
        top: 42%;
        transform: translate(-50%, -50%) rotate(5deg);
        margin: 0;
        z-index: 20;
    }

    .hero-text-block {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0;
    }

    .hero-text-block .headline {
        font-size: 4rem !important;
    }

    .hero-text-block .subtitle {
        text-align: left !important;
        align-self: flex-start !important;
        font-size: 1.1rem !important;
        margin-top: 2rem;
    }

    .hero-content {
        align-items: flex-start;
        padding: 0 10%;
        justify-content: flex-end;
        padding-bottom: 20%;
    }

    .filosofia-content {
        position: relative;
        bottom: 0;
        left: 0;
        padding: 4rem 2rem 4rem 5%;
        background: var(--c-dark);
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden;
    }

    .filosofia::after {
        display: none; /* Gradient not needed on mobile black background block */
    }

    /* ESSENZA Section Mobile */
    .essenza {
        padding-top: 3rem;
        padding-bottom: 0;
        overflow: visible;
    }

    /* Titolo essenza: scala con il viewport per non troncarsi */
    .essenza .headline {
        font-size: min(3.2rem, 12vw) !important;
        line-height: 0.92 !important;
    }

    /* Testo sopra, mano sotto */
    .essenza .right-text-container {
        order: 1;
        width: 100% !important;
        padding: 0 2rem 2rem;
    }
    .essenza .left-image-container {
        order: 2;
        width: 100%;
    }

    /* Mano: scende a toccare il bordo arancione */
    .steak-hand {
        position: relative;
        width: 100%;
        left: 0;
        display: block;
        margin-bottom: -28vw; /* si sovrappone alla striscia verde e tocca la sezione arancione */
    }
    .shift-right, .shift-right-less {
        transform: none !important;
    }

    /* MIXOLOGY Section Mobile */
    .mixology {
        display: flex;
        flex-direction: column;
        overflow: visible;
    }

    /* Ordine: testo → logo → mano cocktail in basso */
    .mixology .split-container {
        order: 1;
    }
    .heart-logo-overlap {
        order: 2;
        position: relative;
        bottom: 0;
        left: auto;
        transform: none;
        width: 140px;
        margin: 1.5rem auto 0;
    }
    .cocktail-hand {
        order: 3;
        position: relative;
        width: 100%;
        right: 0;
        margin-top: 1rem;
        margin-bottom: -25vw;
    }

    .contact {
        padding: 5rem 0;
    }

    /* Hero: mostra più immagine su mobile */
    .hero {
        height: 100svh;
    }

    .hero .bg-img {
        height: 100svh;
        object-position: center 30%;
    }

    /* Header */
    .header {
        padding: 1.5rem 1.5rem;
    }

    .nav {
        gap: 1.2rem;
    }

    .nav a {
        font-size: 0.85rem;
    }

    /* Filosofia: rimuovi l'overlap negativo su mobile */
    .filosofia {
        margin-top: 0;
    }

    /* Flags: troppo a destra su schermi piccoli */
    .flags {
        right: 1.5rem;
        bottom: 1.5rem;
    }

    .flags img {
        width: 45px;
    }

    /* Indent text: rimuovi su mobile per evitare overflow */
    .indent-text {
        margin-left: 0;
    }

    /* Shift right: reset margin (il transform: none esistente non bastava) */
    .shift-right {
        margin-left: 0;
    }

    .shift-right-less {
        margin-left: 0;
    }

    /* Heart logo: da assoluto a relativo per non invadere la gallery */
    .heart-logo-overlap {
        position: relative;
        bottom: 0;
        left: auto;
        transform: none;
        width: 150px;
        margin: 2rem auto 0;
    }

    /* Nascondi i <br> inline nei testi su mobile (spezzano male le righe) */
    .hero-subtitle br,
    .filosofia .body-text br,
    .mixology-text .body-text br,
    .cala-text br {
        display: none;
    }

    /* Cucina fusion */
    .cucina-fusion {
        padding: 5rem 0;
    }

    /* Contact padding */
    .padded-contact {
        padding: 0 1.5rem;
    }

    /* Essenza: nascondi overflow per evitare scroll orizzontale */
    .essenza {
        overflow: hidden;
    }

    /* Mixology: nascondi overflow per evitare scroll orizzontale */
    .mixology {
        overflow: hidden;
        padding-bottom: 2rem;
    }

    /* Green stripe: altezza proporzionale su mobile */
    .green-stripe-css {
        height: 30vw;
    }

    /* Form container padding */
    .contact-form-container {
        padding: 2.5rem 1.5rem;
    }

    /* Reservations button: esce dal flusso assoluto, va sotto il testo */
    .reservations-btn-wrap {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        display: flex;
        justify-content: center;
        padding: 2.5rem 0 3rem;
        width: 100%;
        background: var(--c-dark);
    }
}

.contact {
    padding: 10rem 0;
    overflow: hidden;
}

.padded-contact {
    padding: 0 10%;
    align-items: flex-start;
    gap: 8rem;
}

.contact-info {
    flex: 1;
    min-width: 0;
}

.contact-info .giant-headline {
    font-size: clamp(2.5rem, 3.8vw, 9.5rem);
    white-space: nowrap;
}

.contact-details {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.font-bold {
    font-weight: 700;
}

.uppercase {
    text-transform: uppercase;
}

.track-wider {
    letter-spacing: 0.1em;
}

.text-xs {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    display: block;
}

.contact-form-container {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.02);
    padding: 5rem 4rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 3rem;
}

.form-group label {
    display: block;
    font-family: var(--f-body);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--c-orange);
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(229, 224, 212, 0.2);
    padding: 1rem 0;
    color: var(--c-white);
    font-family: var(--f-body);
    font-size: 1.1rem;
    transition: all 0.4s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-group select option {
    background: #1a1a1a;
    color: var(--c-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-bottom-color: var(--c-orange);
    padding-left: 10px;
}

.submit-btn {
    background: var(--c-orange);
    color: var(--c-white);
    border: none;
    padding: 1.4rem 3.5rem;
    font-family: var(--f-title);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s ease;
    margin-top: 1rem;
    width: 100%;
    letter-spacing: 0.05em;
}

.submit-btn:hover {
    background: #ff5a40;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(235, 69, 43, 0.2);
}

/* Response for small screens */
@media (max-width: 1200px) {
    .padded-contact {
        padding: 0 5%;
        gap: 4rem;
    }
}

@media (max-width: 1024px) {
    .padded-contact {
        flex-direction: column;
        gap: 5rem;
        padding: 0 6%;
    }

    .contact-form-container {
        padding: 3rem 2rem;
    }
}

/* Schermi molto piccoli (< 480px) */
@media (max-width: 480px) {
    .headline {
        font-size: 3rem !important;
    }

    .giant-headline,
    .essenza .headline,
    .mixology .headline {
        font-size: 3.2rem !important;
    }

    .hero-text-block .headline {
        font-size: 3rem !important;
    }

    .header {
        padding: 1.2rem 1rem;
    }

    .logo img {
        height: 45px;
    }

    .nav a {
        font-size: 0.78rem;
    }

    .hero-content {
        padding: 0 6%;
        padding-bottom: 18%;
    }

    .stacked {
        font-size: 16vw !important;
    }

    .cala-llonga .headline {
        font-size: 3rem !important;
    }

    .cala-content {
        padding: 3rem 6%;
    }

    .heart-logo-overlap {
        width: 120px;
    }

    .btn-img {
        height: 70px;
    }
}
/* =========================================
   MODAL RESERVATIONS
   ========================================= */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(16, 14, 13, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-overlay.is-open {
    display: flex;
    animation: modalFadeIn 0.35s ease forwards;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-box {
    background: #1a1614;
    border: 1px solid rgba(235, 69, 43, 0.25);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: modalSlideIn 0.35s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes modalSlideIn {
    from { transform: scale(0.92) translateY(20px); }
    to   { transform: scale(1) translateY(0); }
}

.modal-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 3rem 3rem 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--c-orange) transparent;
}

.modal-footer {
    flex-shrink: 0;
    padding: 1rem 3rem 2rem;
    background: #1a1614;
}

.modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: rgba(254, 254, 254, 0.4);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--c-orange);
}

.modal-header {
    margin-bottom: 2.5rem;
}

.modal-title {
    font-family: var(--f-title);
    font-size: 3.5rem;
    color: var(--c-orange);
    line-height: 0.9;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.modal-subtitle {
    font-family: var(--f-body);
    font-size: 0.9rem;
    color: rgba(254, 254, 254, 0.5);
    letter-spacing: 0.05em;
}

.modal-row {
    display: flex;
    gap: 1.5rem;
}

.modal-row .form-group {
    flex: 1;
}

/* Override input styles inside modal for date/time inputs */
.modal-box .form-group input[type="date"],
.modal-box .form-group input[type="time"] {
    color-scheme: dark;
}

.modal-submit-btn {
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    letter-spacing: 0.08em;
}

.modal-submit-btn:hover {
    background: #1ebe5a;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

@media (max-width: 768px) {
    /* Modal: sheet dal basso, pulsante sempre visibile */
    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .modal-box {
        max-width: 100%;
        width: 100%;
        max-height: 92dvh;
        border-radius: 18px 18px 0 0;
        border-bottom: none;
        transform: translateY(40px);
    }

    .modal-overlay.is-open .modal-box {
        transform: translateY(0);
    }

    .modal-scrollable {
        padding: 1.8rem 1.5rem 0.5rem;
    }

    .modal-footer {
        padding: 0.8rem 1.5rem calc(env(safe-area-inset-bottom, 0px) + 1rem);
    }

    .modal-title {
        font-size: 2.8rem;
    }

    .modal-header {
        margin-bottom: 1.2rem;
    }

    .modal-row {
        flex-direction: row;
        gap: 1rem;
    }

    .modal-box .form-group {
        margin-bottom: 1.4rem;
    }

    .modal-submit-btn {
        margin-top: 0;
        padding: 1.1rem 1.5rem;
    }
}
