/* =========================================
   HERO SECTION STRUTTURA
========================================= */
.struttura-hero {
    position: relative;
    height: 90vh; 
    width: 100%;
    display: flex;
    align-items: flex-end;
    padding: 5%;
    overflow: hidden; 
}

.hero-bg {
    position: absolute;
    top: -20%; 
    left: 0;
    width: 100%;
    height: 140%;
    background-position: center;
    background-size: cover;
    z-index: 1;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-color) 10%, transparent 70%);
    z-index: 2;
    margin-bottom: -1px;
}

.hero-title-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-title-wrapper h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 0.9;
    letter-spacing: -2px;
    color: var(--main-color);
    margin-bottom: 1rem;
}

.hero-contatti {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    font-size: clamp(16px, 1.3vw, 20px);
    font-weight: 500;
    color: var(--text-color);
}

.hero-contatto-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-color);
    text-decoration: none;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.hero-contatto-item:hover {
    color: var(--main-color);
    opacity: 0.85;
}

.hero-contatto-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--main-color);
}

.hero-contatto-separator {
    color: var(--accent-color);
    opacity: 0.6;
    font-weight: 300;
}

/* =========================================
   LAYOUT PRINCIPALE: CONTENUTO & SIDEBAR
========================================= */
.struttura-layout {
    display: flex;
    gap: 5%;
    padding: 8rem 5%;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
}

/* Colonna Sinistra (Contenuto) */
.struttura-content {
    flex: 1;
    min-width: 0; 
}

.struttura-description {
    font-size: clamp(18px, 1.8vw, 24px);
    font-weight: 500;
    line-height: 1.7;
}

.struttura-description p {
    margin-bottom: 2rem;
}

.struttura-description p.intro {
    font-size: 1.2em;
    color: var(--main-color);
    font-family: 'Zalando Sans Expanded', sans-serif;
    text-transform: uppercase;
}

/* Servizi Struttura */
.struttura-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-top: 3rem;
    margin-bottom: 6rem;
    padding-top: 3rem;
    border-top: 2px solid var(--accent-color); 
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.amenity-icon {
    width: 28px;
    height: 28px;
    color: var(--main-color);
}
.amenity-icon svg {
    width: 100%;
    height: 100%;
}

/* Galleria Immagini */
.struttura-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.gallery-item {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 20px;
    overflow: hidden;
    background-color: var(--main-color);
    cursor: pointer;
}

.gallery-item:nth-child(even) {
    margin-top: 4rem;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Colonna Destra (Attività / Esperienze) */
.struttura-sidebar {
    width: 380px;
    flex-shrink: 0;
}

.struttura-sidebar img {
	width: 100%;
	height: auto;
	object-fit: cover;
	margin-bottom: 2rem;
}

.sidebar-title {
    font-size: clamp(1.5rem, 2vw, 2rem);
    margin-bottom: 1rem;
    color: var(--main-color);
    font-family: 'Zalando Sans Expanded', sans-serif;
    text-transform: uppercase;
}

.experiences-list {
    display: flex;
    flex-direction: column;
    gap: 3.5rem; 
}

.experience-item {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.experience-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
}

.experience-desc {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.8;
}

.experience-link {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--main-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.2rem;
    display: inline-block;
    transition: color 0.3s ease;
}

.experience-link:hover {
    color: var(--accent-color);
}

.experience-separator {
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    margin-top: 1rem;
    border-radius: 2px;
    opacity: 0.6;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(41, 31, 30, 0.95);
    align-items: center;
    justify-content: center;
}
.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--bg-color);
    font-size: 50px;
    font-weight: 300;
    line-height: 1;
    transition: 0.3s;
    cursor: pointer;
}
.lightbox-close:hover { color: var(--accent-color); }

@media (max-width: 1024px) {
    .struttura-layout {
        flex-direction: column;
        padding: 5rem 5%;
        gap: 3rem;
    }
    .struttura-sidebar {
        width: 100%;
        position: static;
        margin-top: 2rem;
    }
    .gallery-item:nth-child(even) {
        margin-top: 0;
    }
    .gallery-item {
        aspect-ratio: 1/1;
    }
    .struttura-hero { height: 60vh; }
}

@media (max-width: 768px) {
    .no-mobile {display: none;}
    .struttura-gallery { grid-template-columns: 1fr; gap: 1rem; }
    .hero-title-wrapper h1 { font-size: clamp(2.5rem, 8vw, 4rem); }
    .hero-contatti { font-size: 1rem; gap: 0.8rem; }
    .hero-contatto-item svg { width: 16px; height: 16px; }
    .struttura-amenities { flex-direction: column; gap: 1.5rem; margin-bottom: 3rem; }
}

@media (max-width: 480px) {
    .struttura-hero { height: 50vh; }
    .hero-contatti { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .hero-contatto-separator { display: none; }
    .lightbox-content { max-width: 95%; max-height: 70vh; }
    .lightbox-close { top: 15px; right: 20px; font-size: 40px; }
}
