/* ============================================
   XENIA CASA VACANZE — Mediterranean Luxury
   ============================================ */

:root {
    --sea: #1a4a6e;
    --sea-deep: #0d2b42;
    --sea-light: #2d6a9f;
    --terracotta: #c4704b;
    --terracotta-light: #d4956f;
    --sand: #f5efe6;
    --sand-dark: #e8ddd0;
    --olive: #5a6e3c;
    --olive-light: #7a9452;
    --cream: #faf8f4;
    --white: #ffffff;
    --text: #2c2a27;
    --text-light: #6b6560;
    --text-muted: #9a948d;
    --gold: #c9a96e;
    --gold-light: #dfc99a;
    --shadow: rgba(26, 74, 110, 0.08);
    --shadow-lg: rgba(26, 74, 110, 0.15);

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, sans-serif;
    
    --header-height: 80px;
    --container: 1280px;
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ====== RESET & BASE ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--cream);
    line-height: 1.7;
    font-weight: 400;
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ====== TYPOGRAPHY ====== */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 0.75rem;
}
.section-label.light { color: var(--gold-light); }
.section-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: var(--sea-deep);
    line-height: 1.15;
    font-weight: 500;
}
.section-title.light { color: var(--white); }
.section-divider {
    width: 60px;
    height: 2px;
    background: var(--terracotta);
    margin: 1.25rem auto 0;
}
.section-divider.light { background: var(--gold); }

/* ====== HEADER ====== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(255,255,255,0);
    backdrop-filter: blur(0px);
    transition: all 0.5s ease;
    border-bottom: 1px solid transparent;
}
header.scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 30px var(--shadow);
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1001;
}
.logo img { height: 42px; }
.logo span {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    transition: color var(--transition);
}
header.scrolled .logo span { color: var(--sea-deep); }

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.25rem;
}
.nav-links li a {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    transition: all var(--transition);
    border-radius: 6px;
}
.nav-links li a:hover { color: var(--white); background: rgba(255,255,255,0.12); }
header.scrolled .nav-links li a { color: var(--text); }
header.scrolled .nav-links li a:hover { color: var(--terracotta); background: rgba(196,112,75,0.06); }

.lang-switch {
    display: flex;
    gap: 0.35rem;
    margin-left: 0.75rem;
    padding-left: 0.75rem;
    border-left: 1px solid rgba(255,255,255,0.2);
}
header.scrolled .lang-switch { border-left-color: rgba(0,0,0,0.1); }
.lang-btn {
    padding: 4px;
    border-radius: 4px;
    opacity: 0.5;
    transition: all 0.3s ease;
}
.lang-btn.active { opacity: 1; }
.lang-btn:hover { opacity: 1; }
.lang-btn img { width: 22px; height: auto; }

.hamburger { display: none; width: 28px; height: 20px; position: relative; z-index: 1001; }
.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}
header.scrolled .hamburger span { background: var(--sea-deep); }
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }
.hamburger.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); background: var(--sea-deep); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); background: var(--sea-deep); }

/* ====== HERO ====== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-slider { position: absolute; inset: 0; }
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.5s ease, transform 8s ease;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(13, 43, 66, 0.4) 0%,
        rgba(13, 43, 66, 0.25) 40%,
        rgba(13, 43, 66, 0.5) 100%
    );
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 2rem;
    animation: heroFadeIn 1.5s ease forwards;
}
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold-light);
    border: 1px solid rgba(201, 169, 110, 0.4);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    margin-bottom: 1.75rem;
    backdrop-filter: blur(4px);
}
.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 400;
    line-height: 1.05;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}
.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}
.hero-quote {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: 0.8;
}
.hero-author {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-style: normal;
    font-family: var(--font-body);
    opacity: 0.6;
}
.hero-cta-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-button {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all var(--transition);
}
.cta-button.primary {
    background: var(--terracotta);
    color: var(--white);
}
.cta-button.primary:hover { background: #b5613e; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(196,112,75,0.4); }
.cta-button.secondary {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.5);
}
.cta-button.secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

.hero-indicators {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 0.75rem;
}
.hero-indicator {
    width: 32px;
    height: 3px;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.4s ease;
    border-radius: 2px;
}
.hero-indicator.active { background: var(--white); width: 48px; }

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}
.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(255,255,255,0.5);
    border-bottom: 2px solid rgba(255,255,255,0.5);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translate(0); opacity: 0.5; }
    50% { transform: rotate(45deg) translate(5px, 5px); opacity: 1; }
}

/* ====== ABOUT ====== */
.about {
    padding: 7rem 0;
    background: var(--cream);
}
.about-text-center {
    max-width: 800px;
    margin: 0 auto 3.5rem;
    text-align: center;
}
.about-text-center p {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}
.about-lead {
    font-family: var(--font-display);
    font-size: 1.25rem !important;
    font-style: italic;
    color: var(--sea) !important;
    line-height: 1.7 !important;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--sand-dark);
}
.about-features-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all var(--transition);
    text-align: center;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--shadow-lg);
}
.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--sand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--terracotta);
}
.feature-card h4 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sea-deep);
    margin-bottom: 0.4rem;
}
.feature-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ====== APARTMENTS ====== */
.rooms {
    padding: 7rem 0;
    background: var(--white);
}
.apartment-showcase {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
    margin-bottom: 6rem;
}
.apartment-showcase.reverse { grid-template-columns: 0.9fr 1.1fr; }
.apartment-showcase.reverse .apt-gallery { order: 2; }
.apartment-showcase.reverse .apt-info { order: 1; }

.apt-gallery { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.apt-slider { position: relative; width: 100%; height: 100%; }
.apt-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
}
.apt-slide.active { opacity: 1; }
.apt-slide img { width: 100%; height: 100%; object-fit: cover; }

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--sea-deep);
    z-index: 5;
    transition: all 0.3s ease;
    opacity: 0;
}
.apt-gallery:hover .slider-btn { opacity: 1; }
.slider-btn:hover { background: var(--white); transform: translateY(-50%) scale(1.05); box-shadow: 0 4px 15px rgba(0,0,0,0.15); }
.slider-btn.prev { left: 1rem; }
.slider-btn.next { right: 1rem; }

.slider-counter {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.5);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 5;
    backdrop-filter: blur(4px);
}

.apt-info {}
.apt-badge {
    display: inline-block;
    background: var(--sea);
    color: var(--white);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}
.apt-badge.green { background: var(--olive); }
.apt-info h3 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--sea-deep);
    margin-bottom: 1rem;
    line-height: 1.15;
}
.apt-info-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    border-radius: var(--radius);
    padding: 0.75rem;
    margin: -0.75rem;
    margin-bottom: 0.5rem;
    transition: background 0.3s ease;
}
.apt-info-link:hover { background: rgba(13,43,66,0.03); }
.apt-info-link:hover h3 { color: var(--terracotta); }
.apt-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}
.apt-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.apt-amenities span {
    background: var(--sand);
    color: var(--text-light);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}
.apt-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.btn-details {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--terracotta);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}
.btn-details:hover { color: #a85a37; letter-spacing: 1.5px; }
.btn-book {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--sea);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all var(--transition);
}
.btn-book:hover { background: var(--sea-deep); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,74,110,0.3); }

/* ====== TERRITORY ====== */
.territorio {
    padding: 7rem 0;
    background: var(--sand);
}
.territory-intro {
    max-width: 800px;
    margin: 0 auto 3.5rem;
    text-align: center;
}
.territory-intro p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
}
.territory-intro strong { color: var(--sea); font-weight: 600; }

.territory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}
.territory-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
    display: block;
    color: inherit;
    text-decoration: none;
}
.territory-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px var(--shadow-lg);
}
.territory-card:hover .territory-card-link { letter-spacing: 1px; color: var(--terracotta); }
.territory-card-img {
    position: relative;
    aspect-ratio: 16/11;
    overflow: hidden;
}
.territory-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.territory-card:hover .territory-card-img img { transform: scale(1.08); }
.territory-card-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--sea-deep);
    letter-spacing: 0.5px;
}
.territory-card-body {
    padding: 1.5rem;
}
.territory-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--sea-deep);
    margin-bottom: 0.6rem;
}
.territory-card-body p {
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--text-light);
}
.territory-card-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--sea);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}
.territory-extra {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.territory-extra p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-light);
    font-style: italic;
}
.territory-extra strong { color: var(--sea); }

/* ====== RATES ====== */
.tariffe {
    padding: 7rem 0;
    background: var(--cream);
}
.rates-card {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 10px 40px var(--shadow);
}
.rates-header {
    background: linear-gradient(135deg, var(--sea-deep), var(--sea));
    color: var(--white);
    padding: 1.75rem 2rem;
    text-align: center;
}
.rates-header p {
    font-size: 0.85rem;
    opacity: 0.85;
}
.rates-table-wrap { overflow-x: auto; }
.rates-table {
    width: 100%;
    border-collapse: collapse;
}
.rates-table thead tr:first-child th {
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--sea);
    border-bottom: 2px solid var(--sand-dark);
    text-align: center;
}
.rates-table thead tr:first-child th:first-child { text-align: left; }
.rates-table .sub-header th {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 1px solid var(--sand-dark);
    text-align: center;
    background: var(--sand);
}
.rates-table tbody td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--sand);
    font-size: 0.9rem;
    color: var(--text);
}
.rates-table tbody td:first-child { text-align: left; font-weight: 500; color: var(--sea-deep); }
.rates-table tbody tr:hover { background: rgba(245,239,230,0.5); }
.rates-table tbody tr.highlight {
    background: linear-gradient(90deg, rgba(196,112,75,0.06), rgba(196,112,75,0.02));
}
.rates-table tbody tr.highlight td:first-child { color: var(--terracotta); }

.rates-notes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 2rem;
    background: var(--sand);
    border-top: 1px solid var(--sand-dark);
}
.rate-note h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--sea);
    margin-bottom: 0.4rem;
}
.rate-note p {
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-light);
}

/* ====== CONTACT ====== */
.contact {
    padding: 7rem 0;
    background: linear-gradient(135deg, var(--sea-deep) 0%, #0f3a5a 100%);
    color: var(--white);
}
.contact-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contact-form {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 720px;
    margin-bottom: 3.5rem;
}
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 1100px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--terracotta);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 0 0 3px rgba(196,112,75,0.2);
}
.form-group select option { background: var(--sea-deep); color: var(--white); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-privacy { margin-top: 0.5rem; }
.checkbox-label {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--terracotta);
}
.checkbox-label a { color: var(--gold-light); text-decoration: underline; }
.submit-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--terracotta);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition);
}
.submit-btn:hover { background: #b5613e; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(196,112,75,0.4); }

.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }

/* Captcha */
.captcha-group { margin-top: 0.5rem; }
.captcha-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    transition: border-color 0.3s;
}
.captcha-box:focus-within { border-color: var(--terracotta); }
.captcha-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(196,112,75,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terracotta-light);
}
.captcha-question {
    flex: 1;
}
.captcha-question label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.2rem;
}
.captcha-problem {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--white);
    margin: 0;
    letter-spacing: 2px;
}
.captcha-answer {
    flex-shrink: 0;
    width: 70px;
}
.captcha-answer input {
    width: 100%;
    padding: 0.6rem 0.5rem;
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    -moz-appearance: textfield;
}
.captcha-answer input::-webkit-outer-spin-button,
.captcha-answer input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.captcha-answer input:focus {
    outline: none;
    border-color: var(--terracotta);
    background: rgba(255,255,255,0.18);
    box-shadow: 0 0 0 3px rgba(196,112,75,0.2);
}
.captcha-answer input.correct { border-color: #10b981; background: rgba(16,185,129,0.15); }
.captcha-answer input.wrong { border-color: #ef4444; background: rgba(239,68,68,0.15); animation: captchaShake 0.4s ease; }
@keyframes captchaShake {
    0%,100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}
.captcha-refresh {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}
.captcha-refresh:hover { background: rgba(255,255,255,0.12); color: var(--white); transform: rotate(180deg); }

/* Toast notification */
.form-toast {
    position: fixed;
    top: calc(var(--header-height) + 1rem);
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    max-width: 500px;
    width: 90%;
    opacity: 0;
    transition: all 0.4s ease;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.form-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.form-toast.success { background: linear-gradient(135deg, #059669, #10b981); color: white; }
.form-toast.error { background: linear-gradient(135deg, #dc2626, #ef4444); color: white; }
.toast-icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; font-weight: 700;
}
.toast-body strong { display: block; font-size: 1rem; margin-bottom: 0.15rem; }
.toast-body p { font-size: 0.85rem; opacity: 0.9; margin: 0; }
.toast-close {
    position: absolute; top: 0.5rem; right: 0.75rem;
    background: none; border: none; color: rgba(255,255,255,0.7);
    font-size: 1.1rem; cursor: pointer; transition: color 0.3s;
}
.toast-close:hover { color: white; }

.info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}
.info-card:hover { background: rgba(255,255,255,0.08); }
.info-card.highlight-card { background: rgba(196,112,75,0.15); border-color: rgba(196,112,75,0.3); }
.info-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}
.info-card h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.info-card p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.45;
}
.info-card a { color: rgba(255,255,255,0.85); transition: color 0.3s; }
.info-card a:hover { color: var(--gold-light); }

/* ====== SEO CONTENT ACCORDION ====== */
.seo-content {
    padding: 3rem 0;
    background: var(--sand);
    border-top: 1px solid rgba(0,0,0,0.05);
}
.seo-accordion { max-width: 900px; margin: 0 auto; }
.seo-accordion-item {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.seo-accordion-item:last-child { border-bottom: none; }
.seo-accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s;
}
.seo-accordion-trigger:hover { opacity: 0.75; }
.seo-accordion-trigger h2 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--sea-deep);
    margin: 0;
    line-height: 1.4;
}
.seo-accordion-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(13,43,66,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--sea);
    transition: all 0.35s ease;
}
.seo-accordion-item.open .seo-accordion-icon {
    transform: rotate(45deg);
    background: var(--sea);
    color: white;
}
.seo-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 0 0 0;
}
.seo-accordion-item.open .seo-accordion-body {
    max-height: 600px;
    padding: 0 0 1.5rem 0;
}
.seo-accordion-body p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}
.seo-accordion-body a {
    color: var(--sea);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
.seo-accordion-body a:hover { color: var(--terracotta); }

/* ====== FOOTER ====== */
footer { background: var(--sea-deep); color: rgba(255,255,255,0.7); }
.footer-main { padding: 4rem 0 3rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-logo { height: 40px; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.9rem; margin-bottom: 0.25rem; color: var(--white); font-weight: 500; }
.footer-address { font-size: 0.8rem !important; color: rgba(255,255,255,0.5) !important; font-weight: 400 !important; }
.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}
.social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
}
.social-link:hover { transform: translateY(-3px); }
.social-link.whatsapp:hover { background: #25D366; color: white; border-color: #25D366; box-shadow: 0 6px 20px rgba(37,211,102,0.35); }
.social-link.instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: white; border-color: transparent; box-shadow: 0 6px 20px rgba(225,48,108,0.35); }
.social-link.facebook:hover { background: #1877F2; color: white; border-color: #1877F2; box-shadow: 0 6px 20px rgba(24,119,242,0.35); }
.footer-links-col h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white);
    margin-bottom: 1rem;
}
.footer-links-col a {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.6rem;
    transition: color 0.3s;
}
.footer-links-col a:hover { color: var(--gold-light); }

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
}
/* ====== COOKIE BANNER ====== */
.cookie-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    backdrop-filter: blur(4px);
}
.cookie-overlay.active { display: block; }
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: calc(100% - 2rem);
    max-width: 640px;
    animation: slideUp 0.5s ease;
}
.cookie-banner.active { display: block; }
@keyframes slideUp {
    from { transform: translateX(-50%) translateY(100%); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}
.cookie-banner-inner {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    border: 1px solid rgba(0,0,0,0.06);
}
.cookie-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.cookie-text h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--sea-deep);
    margin-bottom: 0.5rem;
}
.cookie-text p { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; margin-bottom: 1rem; }
.cookie-options { margin-bottom: 1rem; }
.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    cursor: pointer;
    border-bottom: 1px solid var(--sand);
}
.cookie-toggle:last-child { border-bottom: none; }
.toggle-slider {
    width: 40px;
    height: 22px;
    background: var(--sand-dark);
    border-radius: 11px;
    position: relative;
    transition: background 0.3s;
    flex-shrink: 0;
}
.toggle-slider::after {
    content: '';
    width: 18px;
    height: 18px;
    background: var(--white);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.cookie-toggle input:checked + .toggle-slider { background: var(--olive); }
.cookie-toggle input:checked + .toggle-slider::after { transform: translateX(18px); }
.cookie-toggle input:disabled + .toggle-slider { background: var(--olive-light); opacity: 0.7; }
.cookie-toggle input:disabled + .toggle-slider::after { transform: translateX(18px); }
.cookie-toggle input { display: none; }
.toggle-label { font-size: 0.85rem; color: var(--text); font-weight: 500; }
.cookie-buttons { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cookie-btn {
    padding: 0.65rem 1.25rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s;
    flex: 1;
    text-align: center;
    min-width: 120px;
}
.cookie-btn-accept { background: var(--sea); color: var(--white); }
.cookie-btn-accept:hover { background: var(--sea-deep); }
.cookie-btn-customize { background: var(--sand); color: var(--text); }
.cookie-btn-customize:hover { background: var(--sand-dark); }
.cookie-btn-reject { background: transparent; color: var(--text-light); border: 1px solid var(--sand-dark); }
.cookie-btn-reject:hover { border-color: var(--text-muted); }
.cookie-policy-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: underline;
}

/* ====== PRIVACY MODAL ====== */
.privacy-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    overflow-y: auto;
    padding: 2rem;
}
.privacy-modal.active { display: flex; align-items: flex-start; justify-content: center; }
.privacy-modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 700px;
    width: 100%;
    padding: 3rem;
    margin: 2rem auto;
    position: relative;
}
.privacy-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}
.privacy-modal-content h2 {
    font-size: 1.8rem;
    color: var(--sea-deep);
    margin-bottom: 2rem;
    padding-right: 2rem;
}
.privacy-body h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--sea);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.privacy-body p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

/* ====== SCROLL REVEAL ====== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: var(--delay, 0s);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
    .about-features-row { grid-template-columns: repeat(2, 1fr); }
    .apartment-showcase,
    .apartment-showcase.reverse { grid-template-columns: 1fr; gap: 2rem; }
    .apartment-showcase.reverse .apt-gallery { order: 0; }
    .apartment-showcase.reverse .apt-info { order: 0; }
    .territory-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-info-grid { grid-template-columns: repeat(3, 1fr); }
    .rates-notes { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 2rem; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    :root { --header-height: 70px; }

    .hamburger { display: block; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        gap: 0;
        transition: right 0.4s ease;
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    }
    .nav-links.active { right: 0; }
    .nav-links li { width: 100%; }
    .nav-links li a {
        display: block;
        padding: 0.9rem 0;
        color: var(--text) !important;
        font-size: 0.9rem;
        border-bottom: 1px solid var(--sand);
    }
    .nav-links li a:hover { color: var(--terracotta) !important; background: none; }
    .lang-switch { border-left: none; margin-left: 0; padding-left: 0; padding-top: 1rem; }

    .hero { min-height: 100vh; }
    .hero-content h1 { font-size: 2.8rem; }
    .hero-quote { font-size: 0.9rem; }
    .hero-cta-group { flex-direction: column; align-items: center; }
    .cta-button { width: 100%; max-width: 280px; text-align: center; }

    .about-features-row { grid-template-columns: 1fr; }
    .territory-grid { grid-template-columns: 1fr; }

    .apt-gallery { aspect-ratio: 3/2; }

    .form-row { grid-template-columns: 1fr; }
    .form-row-3 { grid-template-columns: 1fr; }
    .contact-info-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-form { padding: 1.75rem; }
    .captcha-box { flex-wrap: wrap; gap: 0.75rem; }

    .section-header { margin-bottom: 3rem; }
    .about, .rooms, .territorio, .tariffe, .contact { padding: 5rem 0; }

    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }


    .cookie-banner { bottom: 0; left: 0; transform: none; width: 100%; max-width: 100%; border-radius: 0; }
    .cookie-banner-inner { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
    @keyframes slideUp {
        from { transform: translateY(100%); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
    .cookie-buttons { flex-direction: column; }
    .cookie-btn { min-width: auto; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.25rem; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-badge { font-size: 0.6rem; padding: 0.4rem 1rem; letter-spacing: 2px; }
    .apt-info h3 { font-size: 1.8rem; }
    .feature-card { padding: 1.5rem; }
    .contact-form { padding: 1.5rem; }
    .contact-info-grid { grid-template-columns: 1fr; }
    .rates-table { font-size: 0.8rem; }
    .rates-table td, .rates-table th { padding: 0.75rem 0.5rem; }
}

/* ====== UTILITIES ====== */
::selection { background: var(--terracotta); color: var(--white); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--sand); }
::-webkit-scrollbar-thumb { background: var(--sea-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--sea); }
