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

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;700&family=Outfit:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Outfit', 'Caveat', cursive, sans-serif;
    background: radial-gradient(circle at 20% 20%, rgba(42, 155, 142, 0.2) 0%, transparent 45%),
                radial-gradient(circle at 80% 80%, rgba(31, 122, 110, 0.15) 0%, transparent 45%),
                #07110c;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header Navigation */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background: rgba(14, 55, 50, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(42, 155, 142, 0.25);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.35s ease;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.6));
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Caveat', cursive;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-home-btn {
    background: linear-gradient(135deg, #2a9b8e 0%, #1f7a6e 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 10px;
    transition: all 0.25s ease;
    font-family: 'Outfit', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(42, 155, 142, 0.35);
}

.nav-home-btn:hover {
    background: linear-gradient(135deg, #238075 0%, #175e55 100%);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 155, 142, 0.5);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(10, 42, 38, 0.5) 0%, rgba(26, 99, 90, 0.35) 50%, rgba(14, 62, 56, 0.55) 100%), url('images/lago1.webp') center/cover no-repeat;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #ffffff;
    text-align: center;
    padding-top: 60px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.55) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 30px;
}

.hero-subtitle {
    font-size: 26px;
    font-style: italic;
    margin-bottom: 16px;
    color: #ffffff;
    font-family: 'Caveat', cursive;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-title {
    font-size: 68px;
    font-style: italic;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    font-family: 'Caveat', cursive;
    color: #ffffff;
    text-shadow: 0 0 35px rgba(42, 155, 142, 0.85), 0 4px 15px rgba(0, 0, 0, 0.6);
}

/* Common Section Container */
.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    font-size: 44px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 10px;
    font-family: 'Caveat', cursive;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.section-subtitle {
    font-size: 19px;
    color: #ffffff;
    opacity: 0.88;
    text-align: center;
    margin-bottom: 45px;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
}

/* Story Section & Days Cards */
.story-section {
    padding-top: 20px;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.day-card {
    background: rgba(15, 35, 25, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(42, 155, 142, 0.35);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.day-card:hover {
    transform: translateY(-6px);
    border-color: #2a9b8e;
    box-shadow: 0 15px 40px rgba(42, 155, 142, 0.3);
}

.day-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #2a9b8e 0%, #1f7a6e 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 5;
    font-family: 'Outfit', sans-serif;
}

.day-image-wrapper {
    width: 100%;
    height: 220px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(42, 155, 142, 0.25);
}

.day-image-wrapper.multi-img {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.day-image-wrapper.multi-img-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
}

.day-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.day-info h3 {
    font-size: 26px;
    color: #ffffff;
    font-family: 'Caveat', cursive;
    margin-bottom: 10px;
    line-height: 1.2;
}

.day-info p {
    font-size: 15px;
    color: #ffffff;
    opacity: 0.9;
    line-height: 1.6;
    font-family: 'Outfit', sans-serif;
}

/* House Card */
.house-card {
    background: rgba(15, 35, 25, 0.78);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(42, 155, 142, 0.35);
    border-radius: 20px;
    padding: 30px;
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.house-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 320px;
    flex-shrink: 0;
}

.house-images img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(42, 155, 142, 0.3);
}

.house-info h3 {
    font-size: 30px;
    color: #ffffff;
    font-family: 'Caveat', cursive;
    margin-bottom: 10px;
}

.house-info p {
    font-size: 16px;
    color: #ffffff;
    opacity: 0.9;
    line-height: 1.6;
    font-family: 'Outfit', sans-serif;
}

/* Map Section */
.map-section {
    padding: 40px 0;
}

.map-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 25px;
    align-items: stretch;
}

.viewpoints-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 6px;
}

.viewpoints-list::-webkit-scrollbar {
    width: 6px;
}

.viewpoints-list::-webkit-scrollbar-thumb {
    background: rgba(42, 155, 142, 0.5);
    border-radius: 10px;
}

.viewpoint-item {
    background: rgba(15, 35, 25, 0.75);
    border: 1px solid rgba(42, 155, 142, 0.3);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.viewpoint-item:hover, .viewpoint-item.active {
    background: rgba(25, 75, 60, 0.85);
    border-color: #2a9b8e;
    box-shadow: 0 4px 15px rgba(42, 155, 142, 0.3);
    transform: translateX(4px);
}

.vp-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.vp-info h4 {
    font-size: 17px;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    margin-bottom: 3px;
}

.vp-info p {
    font-size: 13px;
    color: #ffffff;
    opacity: 0.8;
    font-family: 'Outfit', sans-serif;
}

.map-wrapper {
    background: rgba(15, 35, 25, 0.78);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(42, 155, 142, 0.35);
    border-radius: 20px;
    padding: 12px;
    height: 520px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

#braies-map {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    z-index: 1;
}

/* Photo Gallery Section */
.gallery-section {
    padding: 40px 0 80px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.photo-item {
    position: relative;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(42, 155, 142, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: transform 0.35s ease, border-color 0.35s ease;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.photo-item:hover img {
    transform: scale(1.08);
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay span {
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
}

/* Image Modal Lightbox */
.image-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 2000;
    padding: 20px;
}

.image-modal.is-open {
    display: flex;
}

.modal-image-content {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 16px;
    border: 2px solid rgba(42, 155, 142, 0.5);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
    object-fit: contain;
}

.modal-caption-text {
    margin-top: 15px;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 500;
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 38px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.modal-close-btn:hover {
    opacity: 0.7;
}

/* Footer */
.footer {
    padding: 35px 20px;
    text-align: center;
    border-top: 1px solid rgba(42, 155, 142, 0.25);
    background: rgba(14, 55, 50, 0.92);
}

.footer p {
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

/* Responsive */
@media (max-width: 900px) {
    .map-layout {
        grid-template-columns: 1fr;
    }
    .map-wrapper {
        height: 380px;
    }
    .house-card {
        flex-direction: column;
        text-align: center;
    }
    .house-images {
        width: 100%;
    }
    .hero-title {
        font-size: 48px;
    }
}
