/* Design System & Variables */
:root {
    /* Colors - Lecce Baroque Inspired */
    --color-stone: #F7F5F2;
    /* Creamy background like Pietra Leccese */
    --color-stone-dark: #E8E4DD;
    --color-gold: #C5A059;
    /* Elegant Gold/Bronze */
    --color-gold-light: #DEC085;
    --color-charcoal: #2D2D2D;
    /* Strong contrast text */
    --color-text-light: #666;
    --color-white: #FFFFFF;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Layout */
    --container-width: 1200px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-stone);
    color: var(--color-charcoal);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: var(--font-heading);
    color: var(--color-charcoal);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.mb-5 {
    margin-bottom: 3rem;
}

/* Flexbox Utilities */
.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}


/* Video Modal */
.video-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.video-modal-content {
    background-color: transparent;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.close-modal {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: -35px;
    right: 0;
    z-index: 1001;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--color-gold);
    text-decoration: none;
    cursor: pointer;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    padding-top: 25px;
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Typography Utilities */
.text-gold {
    color: var(--color-gold);
}

.text-white {
    color: var(--color-white);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: var(--color-gold);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-charcoal);
}

/* Header */
header {
    padding: 1.5rem 0;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 100;
    background: transparent;
    transition: background 0.3s, padding 0.3s;
    color: white;
    /* Default text white on transparent */
}

/* Dark sticky header to support Screen blend mode on logo */
header.scrolled {
    background: rgba(20, 20, 20, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: fixed;
    color: var(--color-white);
    padding: 1rem 0;
}

header.scrolled .btn-cta-nav {
    border-color: var(--color-white);
}

/* Ensure links inherit color */
header a,
.logo {
    color: inherit !important;
}

/* Nav Icons Styling */
.nav-links a i {
    font-size: 1.3rem;
    /* Larger icons */
    transition: transform 0.2s ease, color 0.2s ease;
}

.nav-links a:hover i {
    transform: scale(1.2);
    /* Slight zoom on hover */
    color: var(--color-gold);
}

.nav-links li {
    padding: 0 10px;
    /* Adjust spacing between icons */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    /* Context for overflow/positioning */
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.logo-img {
    height: 80px;
    width: auto;
    margin-top: 5px;
    object-fit: contain;
    mix-blend-mode: screen;
    /* Removes black background */
}

/* Animations */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    /* Animation delegated to children for staggered effect */
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
}

.fade-in-up {
    opacity: 0;
    animation: fadeSlideUp 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

/* Hover Lift Effect */
.amenity-card,
.attraction-card,
.service-card,
.btn {
    transition: all 0.3s ease;
}

.amenity-card:hover,
.attraction-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(197, 160, 89, 0.3);
}

/* Scroll Reveal Base - (Disabled per user preference for stability) */
.section {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.logo .accent {
    font-style: italic;
    font-weight: 400;
    color: var(--color-gold);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.lang-switch {
    font-weight: 500;
    opacity: 0.8;
    transition: 0.3s;
}

.lang-switch:hover,
.lang-switch.active {
    opacity: 1;
    color: var(--color-gold);
}

.nav-links li a {
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links li a:hover {
    color: var(--color-gold) !important;
}

.btn-cta-nav {
    border: 1px solid white;
    /* Border white by default */
    padding: 0.5rem 1.2rem;
    border-radius: 0;
    transition: 0.3s;
}

header.scrolled .btn-cta-nav {
    border-color: var(--color-charcoal);
    /* Dark border when scrolled */
}

.btn-cta-nav:hover {
    background: var(--color-gold);
    border-color: var(--color-gold) !important;
    color: white !important;
}

.nav-text {
    display: none;
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* Hero Section */
#hero {
    height: 100vh;
    background: url('foto5.jpeg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Fallback/Overlay to ensure text readability if image fails or is dark */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* Sections */
.section {
    padding: var(--spacing-md) 0;
}

.bg-light {
    background-color: var(--color-stone-dark);
}

.bg-dark {
    background-color: var(--color-charcoal);
    color: white;
}

.bg-dark p {
    color: rgba(255, 255, 255, 0.7);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

/* Placeholders */
.img-placeholder {
    width: 100%;
    height: 400px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 1.2rem;
    border-radius: 4px;
    /* Slight softening */
    box-shadow: 10px 10px 0px var(--color-gold);
    /* Decorative element */
    transition: transform 0.3s;
}

.img-placeholder:hover {
    transform: translateY(-5px);
}

.about-img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 20px 20px 0px var(--color-stone-dark);
    /* Decorative element matched to design */
}

/* Carousel */
.carousel-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 20px 20px 0px var(--color-stone-dark);
}

.carousel-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
    z-index: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    /* Ensure image radius matches container */
    box-shadow: none;
    /* Shadow handled by container */
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(45, 45, 45, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.carousel-control:hover {
    background: var(--color-gold);
}

.carousel-control.prev {
    left: 10px;
}

.carousel-control.next {
    right: 10px;
}

/* Features List */
.features-list {
    margin-top: 2rem;
}

.features-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.features-list i {
    color: var(--color-gold);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item .img-placeholder {
    height: 300px;
    box-shadow: none;
    /* remove for grid */
}

.gallery-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s;
}

.gallery-img:hover {
    transform: scale(1.02);
}

/* Amenities Grid */
.service-category {
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    border: 4px double var(--color-gold-light);
    /* Baroque-inspired frame */
}

.service-category:nth-of-type(odd) {
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.service-category:nth-of-type(even) {
    background-color: var(--color-stone-dark);
}

.category-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    position: relative;
    display: inline-block;
}

.category-title::after {
    content: '';
    display: block;
    width: 50%;
    height: 2px;
    background: var(--color-gold);
    margin: 10px auto 0;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.amenity-card {
    padding: 2rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* subtle border */
    transition: 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.amenity-card:hover {
    border-color: var(--color-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.amenity-card i {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
}


.amenity-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

#food-tipico .amenity-card {
    text-align: center;
}

/* Compact Cards for Comfort & Relax */
.compact-cards .amenities-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
}

.compact-cards .amenity-card {
    padding: 1.2rem;
}

.compact-cards .amenity-card i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.compact-cards .amenity-card h3 {
    font-size: 1rem;
    margin-bottom: 0;
}

.small-text {
    font-size: 0.9rem;
    color: #888;
    margin-top: 5px;
}


/* Attractions */
.attractions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.attraction-card {
    background: white;
    padding: 0;
    /* Remove padding to let image fill top */
    border-left: none;
    /* Remove side border */
    border-bottom: 3px solid var(--color-gold);
    /* Bottom border instead */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    /* For image */
    border-radius: 8px;
    /* Rounded corners */
}

.attraction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.attraction-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.attraction-content {
    padding: 1.5rem;
}

.attraction-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    font-family: var(--font-heading);
}

/* Forms */
.contact-form {
    background: white;
    padding: 2.5rem;
    color: var(--color-charcoal);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-gold);
    outline: none;
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.full-width {
    width: 100%;
}

/* Footer */
footer {
    padding: 2rem 0;
    background: #1a1a1a;
    color: #666;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/* Responsive Design System */
@media (max-width: 1024px) {
    .container {
        width: 95%;
    }

    .grid-2 {
        gap: 2rem;
    }

    h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {

    /* Layout */
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section {
        padding: var(--spacing-sm) 0;
    }

    .mb-5 {
        margin-bottom: 2rem;
    }

    /* Typography */
    .hero-content h1 {
        font-size: 2.5rem;
        padding: 0 1rem;
    }

    .hero-content p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    h2 {
        font-size: 2rem;
    }

    .category-title {
        font-size: 1.5rem;
    }

    /* Navigation */
    .nav-links {
        position: fixed;
        right: 0px;
        height: 100vh;
        top: 0;
        background-color: white;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding-top: 5rem;
        overflow-y: auto;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        z-index: 99;
        /* Default hidden off-screen */
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .nav-links li {
        opacity: 1;
        margin: 1rem 0;
        width: 100%;
        text-align: left;
        padding-left: 2rem;
    }

    .nav-links a {
        font-size: 1.2rem;
        color: var(--color-charcoal) !important;
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .nav-text {
        display: inline;
        font-weight: 500;
    }

    .btn-cta-nav {
        border: 1px solid var(--color-charcoal);
        display: inline-block;
        width: auto;
    }

    /* Hamburger */
    .hamburger {
        display: block;
        z-index: 100;
        color: white;
        /* Default color on Hero */
        transition: color 0.3s ease;
    }

    /* Hamburger color adjustment based on scroll/state */
    #header.scrolled .hamburger,
    .hamburger.toggle {
        color: var(--color-charcoal);
    }

    /* Carousel */
    .carousel-container {
        height: 300px;
    }

    /* Amenities & Attractions */
    .amenities-grid,
    .attractions-grid {
        grid-template-columns: 1fr;
        /* Single column on mobile */
        gap: 1.5rem;
    }

    .amenity-card {
        padding: 1.5rem;
    }

    /* Footer & Contact */
    .contact-form {
        padding: 1.5rem;
    }

    .map-container {
        height: 250px;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-img {
        height: 250px;
    }

    .attraction-img {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
    }

    .attractions-grid {
        grid-template-columns: 1fr;
    }
}

/* Music Player */
.music-control {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

.music-btn {
    background: var(--color-gold);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.music-btn:hover {
    transform: scale(1.1);
    background: #bfa15f;
}

.music-btn.playing {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

/* Social Media Official Colors */
.icon-facebook {
    color: #1877F2;
    /* Official Facebook Blue */
    transition: transform 0.3s ease;
}

.icon-instagram {
    color: #E1306C;
    /* Official Instagram Pink/Purple */
    transition: transform 0.3s ease;
}

.icon-facebook:hover,
.icon-instagram:hover {
    transform: scale(1.2);
}