/*---HERO-----------*/
.hero {
    position: relative;
    width: 100%;
    height: 92vh;
    min-height: 560px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    animation: heroKenBurns 14s var(--ease) forwards;
}

@keyframes heroKenBurns {
    from { transform: scale(1.08); }
    to { transform: scale(1); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(31, 18, 10, 0.25) 0%,
        rgba(31, 18, 10, 0.48) 55%,
        rgba(20, 12, 7, 0.82) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: heroTextZoomOut 14s var(--ease) forwards;
}

@keyframes heroTextZoomOut {
    from { 
        transform: translateY(70px) scale(1.08); 
    }
    to { 
        transform: translateY(70px) scale(1); 
    }
}


.hero-tag {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 22px;
}

.hero-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: clamp(38px, 8vw, 84px);
    font-weight: 500;
    line-height: 1.15;
    color: var(--color-white);
    margin: 0;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero-title span {
    color: var(--color-primary);
    font-style: italic;
}

.hero-scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--color-white);
    font-size: 32px !important;
    opacity: 0.85;
    animation: heroScrollBounce 1.8s ease-in-out infinite;
}

@keyframes heroScrollBounce {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.7; }
    50% { transform: translate(-50%, 10px); opacity: 1; }
}

/* sotto i 700px */
@media (max-width: 700px) {
    .hero {
        height: 80vh;
        min-height: 460px;
    }
}


/*---SLOGAN-----------*/
.intro-container {
    display: flex;
    justify-content: center;

    margin-top: 6vh;
    margin-bottom: 5vh;
    margin-left: auto;
    margin-right: auto;

    max-width: 720px;
    width: 90%;
    flex-direction: column;
    align-items: center;
}

.intro-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: 14px;
    text-align: center;
}

.intro-divider {
    --fade: 20%;

    width: 70px;
    height: 2px;
    margin-bottom: 22px;
    border-radius: var(--radius-pill);

    background: linear-gradient(
        to right,
        transparent,
        var(--color-primary) var(--fade),
        var(--color-primary) calc(100% - var(--fade)),
        transparent
    );
}

.intro-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 500;
    line-height: 1.25;
    color: var(--color-black);
    margin-bottom: 20px;
    text-align: center;
}

.intro-title span {
    color: var(--color-secondary);
    font-style: none;
}

.intro-text {
    text-align: center;
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a4238;
    margin: 0;
}


/*---BOTTONI DI PRENOTAZIONE-----------*/
.book-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 30px auto 38px;
}

.book-container a {
    text-decoration: none;
}

.book-btn {
    padding: 15px 38px;
    border-radius: var(--radius-pill);
    border: none;
    background-color: var(--color-secondary);
    color: var(--color-white);
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);

    transition: var(--responsive-transition);
}

.book-btn--secondary {
    background-color: var(--color-secondary);
}

.book-btn--secondary:hover {
    background-color: var(--color-secondary-dark);
    box-shadow: var(--shadow-md);
}

.book-btn--primary {
    font-weight: 600;
    border: 2px solid var(--color-primary);
    background-color: var(--color-transparent);
    color: var(--color-black);
    box-shadow: none;
}

.book-btn--primary:hover {
    background-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.book-btn:hover {
    transform: translateY(-2px);
}

.book-btn:active {
    transform: translateY(0px) scale(0.98);
}

.book-btn:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 3px;
}

.main-wrapper {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 600px;
    padding: 20px;
}

/* sotto i 500px */
@media (max-width: 500px) {
    .book-container {
        padding: 10px;
        margin: 30px auto 40px;
        flex-direction: column;
    }

    .book-btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

/* sotto i 550px */
@media (max-width: 550px) {
    .main-wrapper {
        background-size: 80%;
        padding: 0;
    }
}


/*---GALLERIA PIATTI-----------*/
.gallery-section {
    width: 100%;
    padding: 1vh 20px 6vh;
    background-color: var(--color-white);
}

.gallery-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 4px 14px;
    scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    position: relative;
    flex: 0 0 auto;
    width: 300px;
    height: 380px;
    border-radius: var(--radius-md);
    overflow: hidden;
    scroll-snap-align: start;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
    transform: scale(1.06);
}

.gallery-item:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 20px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(20, 12, 7, 0.72) 65%,
        rgba(20, 12, 7, 0.9) 100%);
}

.gallery-caption span {
    color: var(--color-white);
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background-color: var(--color-secondary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: var(--shadow-md);
    transition: var(--responsive-transition);
}

.gallery-nav-btn .material-symbols-outlined {
    font-size: 24px;
}

.gallery-nav-btn:hover {
    background-color: var(--color-secondary-dark);
    transform: translateY(-50%) scale(1.06);
}

.gallery-nav--prev {
    left: -0px;
}

.gallery-nav--next {
    right: -0px;
}

/* sotto i 700px */
@media (max-width: 700px) {
    .gallery-item {
        width: 220px;
        height: 300px;
    }

    .gallery-caption span {
        font-size: 15px;
    }
}

/* sotto i 560px */
@media (max-width: 560px) {
    .gallery-nav-btn {
        display: none;
    }
}

/*---LIGHTBOX-----------*/
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background-color: rgba(15, 9, 5, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox-figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
}

.lightbox-figure img {
    max-width: 92vw;
    max-height: 82vh;
    border-radius: var(--radius-sm);
    display: block;
    box-shadow: var(--shadow-lg);
}

.lightbox-caption {
    margin-top: 18px;
    color: var(--color-white);
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 18px;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 28px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    cursor: pointer;
    transition: var(--responsive-transition);
}

.lightbox-close .material-symbols-outlined {
    font-size: 26px;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(1.06);
}