:root {
    --color-aurora: #F59E0B;
    --color-azzurra: #3B82F6;
    --color-text: #1F2937;
    --color-text-light: #6B7280;
    --color-bg: #FAF9F5;
    --color-white: #FFFFFF;

    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Outfit', sans-serif;

    --spacing-container: 1200px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    color: #111827;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background: var(--color-white);
    height: var(--header-height);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    /* Subtle shadow */
    z-index: 1000;
    display: flex;
    align-items: center;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

.logo-icon {
    display: flex;
    gap: 4px;
    height: 44px;
}

.bar {
    width: 8px;
    height: 100%;
    border-radius: 4px;
}

.bar.aurora {
    background-color: var(--color-aurora);
}

.bar.azzurra {
    background-color: var(--color-azzurra);
}

.brand-text {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.brand-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.015em;
}

.brand-subtitle {
    margin-top: 4px;
    font-size: 0.6875rem;
    color: var(--color-text-light);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.brand-title-prefix {
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-light);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text);
    position: relative;
}

.nav-link:hover {
    color: var(--color-azzurra);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-aurora);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 2px;
}

/* Footer */
.footer {
    background-color: #F9F7F2;
    color: var(--color-text);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    margin-bottom: 24px;
    text-decoration: none;
}

.footer-desc {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-light);
    max-width: 320px;
    margin-top: 16px;
}

.footer-structure-logos {
    display: flex;
    gap: 16px;
    max-width: 280px;
    margin-top: 24px;
}

.footer-structure-link {
    display: block;
    flex: 1;
    min-width: 0;
    background: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
}

.footer-structure-link img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: inherit;
}

.footer-structure-link:hover {
    border-color: var(--color-text-light);
}

.footer-structure-link:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 4px;
}

.footer-title {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--color-text);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--color-text-light);
    transition: color 0.3s ease;
    font-size: 1rem;
}

.footer-links a:hover {
    color: var(--color-aurora);
}

.footer-contact-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-light);
    font-size: 1rem;
}

.contact-item.align-top {
    align-items: flex-start;
}

.contact-item a:hover,
.contact-item a:focus-visible {
    color: var(--color-aurora);
    text-decoration: underline;
}

.footer-icon {
    color: var(--color-text-light);
    opacity: 0.7;
    flex-shrink: 0;
}

.address-text {
    line-height: 1.5;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #9CA3AF;
    font-size: 0.9rem;
}

.privacy-link {
    color: #9CA3AF;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: var(--color-aurora);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Add JS toggle later */
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
        z-index: 1001;
        /* Ensure it's above other elements */
    }

    .mobile-menu-btn {
        display: flex;
    }
}

/* Hero Section */
.hero {
    height: 80vh;
    min-height: 600px;
    max-height: 900px;
    background-color: #F3EEE5;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(min-content, 30%) minmax(0, 1fr);
    grid-template-areas: 'content image';
    text-align: center;
    color: var(--color-text);
}

.hero-image {
    grid-area: image;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    grid-area: content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: none;
    padding-block: 64px;
    padding-inline: clamp(20px, 2vw, 56px);
}

.hero-title {
    font-size: clamp(2.25rem, 3.2vw, 3.5rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: var(--color-text);
}

.hero-title-prefix {
    display: block;
    font-size: 0.55em;
    line-height: 1.45;
    margin-bottom: 0.25em;
    text-wrap: balance;
}

@media (min-width: 1280px) {
    .hero-title {
        width: 100%;
        text-align: center;
    }

    .hero-title-prefix {
        white-space: nowrap;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 480px;
    color: #53606B;
}

.hero-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 390px;
    gap: 14px;
}

.hero-buttons .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding-inline: 20px;
}

.hero-buttons .btn:hover {
    color: var(--color-white);
    transform: none;
}

.hero .btn-primary {
    color: var(--color-text);
}

.hero .btn-primary:hover {
    background-color: #D97706;
}

.hero .btn-secondary {
    background-color: var(--color-azzurra);
    border-color: var(--color-azzurra);
    color: #111827;
}

.hero .btn-secondary:hover {
    background-color: #2563EB;
    border-color: #2563EB;
}

#home,
#contatti {
    scroll-margin-top: var(--header-height);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-aurora);
    color: white;
}

.btn-primary:hover {
    background-color: #d97706;
    /* Darker amber */
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--color-text);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--color-text);
}

.section-title+.section-subtitle {
    margin-top: -45px;
    margin-bottom: 60px;
}

.bg-light {
    background-color: #F3F4F6;
}

/* Structures Section - Floating Editorial Design */
.structures-list {
    display: flex;
    flex-direction: column;
    gap: 120px;
    /* Increased for breathing room */
}

.structure-card {
    display: flex;
    align-items: center;
    position: relative;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    height: auto;
    transition: none;
}

/* Alternate Layouts */
.structure-card.aurora {
    flex-direction: row;
}

.structure-card.azzurra {
    flex-direction: row-reverse;
}

.card-image-wrap {
    flex: 1.4;
    height: 520px;
    border-radius: 42px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.structure-card:hover .card-image-wrap img {
    transform: scale(1.05);
}

.card-content {
    flex: 1;
    background: white;
    padding: 3rem 4rem;
    border-radius: 32px;
    box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    /* The Floating Effect */
}

.structure-card.aurora .card-content {
    margin-left: -100px;
}

.structure-card.azzurra .card-content {
    margin-right: -100px;
}

/* Desktop Accent Ribbon */
.card-content::before {
    content: '';
    position: absolute;
    top: 50px;
    bottom: 50px;
    width: 3px;
    border-radius: 3px;
    background-color: var(--accent-color);
}

.structure-card.aurora .card-content::before {
    right: 0;
}

.structure-card.azzurra .card-content::before {
    left: 0;
}

.structure-card.aurora {
    --accent-color: var(--color-aurora);
}

.structure-card.azzurra {
    --accent-color: var(--color-azzurra);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 25px;
}

.structure-logo {
    display: block;
    width: 132px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    flex-shrink: 0;
}

.card-header h3 {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.card-description {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .card-content {
        padding: 3rem;
    }

    .structure-logo {
        width: 112px;
    }

    .card-header h3 {
        font-size: 2.2rem;
    }
}

@media (max-width: 820px) {
    .structures-list {
        gap: 80px;
    }

    .card-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .structure-logo {
        width: 148px;
    }

    .card-header h3 {
        font-size: 2rem;
    }

    .structure-card,
    .structure-card.aurora,
    .structure-card.azzurra {
        flex-direction: column;
        align-items: stretch;
    }

    .card-image-wrap {
        flex: none;
        height: 350px;
        border-radius: 32px;
        margin: 0 1rem;
    }

    .card-content,
    .structure-card.aurora .card-content,
    .structure-card.azzurra .card-content {
        flex: none;
        margin: -80px 2rem 0;
        /* Float over image */
        padding: 2.5rem;
        border-radius: 24px;
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    }

    .structure-card.aurora .card-content::before,
    .structure-card.azzurra .card-content::before {
        top: auto;
        bottom: 0;
        left: 30px;
        right: 30px;
        height: 3px;
        width: auto;
    }
}

.card-description {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 30px;
    line-height: 1.7;
}

/* Feature List Styles Removed */

.btn-outline-aurora {
    display: inline-block;
    padding: 12px 28px;
    border: 2px solid var(--color-aurora);
    color: var(--color-aurora);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    width: fit-content;
}

.btn-outline-aurora:hover {
    background-color: var(--color-aurora);
    color: white;
}

.btn-outline-azzurra {
    display: inline-block;
    padding: 12px 28px;
    border: 2px solid var(--color-azzurra);
    color: var(--color-azzurra);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    width: fit-content;
}

.btn-outline-azzurra:hover {
    background-color: var(--color-azzurra);
    color: white;
}

@media (max-width: 992px) {
    .structure-card {
        flex-direction: column;
        height: auto;
    }

    .aurora {
        flex-direction: column;
        /* Normal stack */
    }

    .azzurra {
        flex-direction: column-reverse;
        /* Keep image on top on mobile */
    }

    .card-content {
        padding: 40px;
    }

    .card-image {
        height: 300px;
    }
}

/* Contact Split Section */
.contact-section {
    padding: 0;
    overflow: hidden;
    background: #FDFBF7;
    /* Warm off-white */
}

.contact-split {
    display: flex;
    min-height: 600px;
}

.contact-info-panel {
    flex: 0 0 60%;
    padding: 100px 5% 100px 10%;
    display: flex;
    align-items: center;
}

.info-content {
    max-width: 600px;
}

.info-pretitle {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-azzurra);
    margin-bottom: 16px;
    font-weight: 600;
}

.section-title-elegant {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    color: var(--color-text);
    margin-bottom: 60px;
    font-weight: 500;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}

.info-block {
    margin-bottom: 24px;
}

.info-label {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--color-text);
    margin-bottom: 12px;
    font-weight: 600;
}

.info-value {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #64748B;
}

.contact-highlight {
    color: var(--color-azzurra);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.contact-highlight:hover {
    opacity: 0.7;
}

.contact-map-panel {
    flex: 0 0 40%;
    position: relative;
    min-height: 500px;
}

.map-bleed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: grayscale(0.2) contrast(1.1);
}

@media (max-width: 1024px) {
    .contact-split {
        flex-direction: column;
    }

    .contact-info-panel {
        width: 100%;
        padding: 80px 5%;
    }

    .contact-map-panel {
        width: 100%;
        height: 450px;
        min-height: 450px;
        position: relative;
    }

    .section-title-elegant {
        font-size: 3rem;
        margin-bottom: 40px;
    }
}



@media (max-width: 1279px) {
    .hero {
        height: auto;
        min-height: 0;
        max-height: none;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: 'image' 'content';
        text-align: center;
    }

    .hero-image {
        height: auto;
        object-fit: contain;
    }

    .hero-content {
        align-items: center;
        padding: 32px 20px 40px;
    }

    .hero-title {
        font-size: clamp(2rem, 6vw, 2.75rem);
        line-height: 1.25;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
        font-size: 1.1rem;
        margin-bottom: 28px;
    }

    .hero-buttons {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .info-value {
        font-size: 0.95rem;
        word-break: break-word;
    }
}

/* Gallery Section */
.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .gallery-header {
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .section-title+.section-subtitle {
        margin-top: -30px;
        margin-bottom: 40px;
    }
}

.house-selector {
    position: relative;
    display: flex;
    gap: 12px;
    margin-bottom: 60px;
    justify-content: center;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 8px;
    border-radius: 20px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}



.selector-pill {
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    border-radius: 14px;
    transition: all 0.5s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 1;
}

.house-selector:has(.selector-btn.aurora.active) .selector-pill {
    background-color: var(--color-aurora);
    box-shadow: 0 4px 15px rgba(255, 145, 0, 0.3);
}

.house-selector:has(.selector-btn.azzurra.active) .selector-pill {
    background-color: var(--color-azzurra);
    box-shadow: 0 4px 15px rgba(0, 154, 255, 0.3);
}

.selector-btn {
    position: relative;
    padding: 16px 48px;
    /* Increased padding */
    border: none;
    background: transparent !important;
    font-size: 1.15rem;
    /* Increased font size */
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
    border-radius: 14px;
    color: var(--color-text-light);
    display: flex;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 16px;
    /* Space between icon and text */
    z-index: 2;
    box-shadow: none !important;
    width: 320px;
    /* Even bigger button */
    height: 64px;
    /* Explicit height for a more substantial feel */
    text-align: center;
}

.selector-btn.active {
    color: white;
}

.selector-btn .icon-bar {
    width: 8px;
    height: 28px;
    /* Slightly taller to match bigger button */
    border-radius: 4px;
    background-color: currentColor;
    opacity: 0.3;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.selector-btn .btn-text {
    text-align: left;
    min-width: 120px;
    /* Ensure consistent width for alignment */
}

/* Lighter tint for active bars */
.selector-btn.aurora.active .icon-bar {
    background-color: #FFDAB9;
    /* Lighter orange (PeachPuff) */
    opacity: 1;
}

.selector-btn.azzurra.active .icon-bar {
    background-color: #ADD8E6;
    /* Light blue */
    opacity: 1;
}

.selector-btn.active .icon-bar {
    opacity: 1;
}

.selector-btn:not(.active):hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.gallery-container {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    margin-bottom: 40px;
}

.gallery-content {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.6s;
    /* Remove display: none to allow overlapping transitions */
}

.gallery-content.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    z-index: 2;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.collection-card {
    height: 320px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.collection-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.collection-cover {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.6s ease;
}

.collection-card:hover .collection-cover {
    transform: scale(1.05);
}

/* Tints for cards */
.collection-card.aurora .collection-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 145, 0, 0.2);
    mix-blend-mode: multiply;
}

.collection-card.azzurra .collection-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 122, 255, 0.15);
    mix-blend-mode: multiply;
}

.collection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent 60%);
    color: white;
    z-index: 2;
}

.text-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.collection-overlay h3 {
    color: white;
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
}

.photo-count {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 30px;
    width: fit-content;
    text-transform: lowercase;
}

.aurora .photo-count {
    background-color: var(--color-aurora);
    color: white;
}

.azzurra .photo-count {
    background-color: var(--color-azzurra);
    color: white;
}

.gallery-cta {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background-color: #F3F4F6;
    /* Light gray */
    border-radius: 12px;
}

.gallery-cta h3 {
    margin-bottom: 20px;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.visible {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 10px;
    font-size: 1rem;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    z-index: 2001;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 820px) {
    .house-selector {
        flex-direction: column;
        width: calc(100% - 40px);
        max-width: 360px;
        /* Increased to fit 320px buttons */
        padding: 12px;
    }

    .selector-btn {
        width: 100%;
        height: 60px;
        /* Slightly shorter on mobile */
        padding: 0 24px;
    }
}

/* Gallery CTA - Glass Card */
.gallery-cta-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 80px;
    margin-bottom: 40px;
    background-image: url('../img/hero-v4.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .gallery-cta-wrapper {
        padding: 40px 15px;
        margin-top: 40px;
        border-radius: 20px;
    }
}

.gallery-cta-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    /* Subtle overlay to help text contrast */
    z-index: 0;
}

.gallery-glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 60px 80px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    width: 100%;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .gallery-glass-card {
        padding: 35px 20px;
        border-radius: 20px;
    }
}

.cta-title {
    font-weight: 500;
    font-style: italic;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .cta-title {
        font-size: 1.65rem;
        line-height: 1.2;
        margin-bottom: 12px;
    }
}

.cta-subtitle {
    margin-bottom: 30px;
    font-weight: 400;
}

@media (max-width: 768px) {
    .cta-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }
}

.cta-button {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* --- Services Section (Modern Glass Tabs) --- */
.services-modern-section {
    padding-top: 4rem;
    margin-top: 2rem;
}

.section-subtitle.centered {
    text-align: center;
    margin-bottom: 3.5rem;
}

.services-tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    position: relative;
    padding: 0 1rem;
}

.services-glass-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 6px;
    border-radius: 100px;
    position: relative;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.service-tab {
    padding: 14px 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    color: var(--color-text-light);
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.service-tab.active .tab-label {
    background: linear-gradient(135deg, var(--color-aurora) 0%, var(--color-azzurra) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.tab-pill {
    position: absolute;
    top: 6px;
    left: 6px;
    height: calc(100% - 12px);
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
}

/* Panel Animations */
.service-panel {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s ease;
}

.service-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Entrance Animation */
.service-panel.active .signature-card {
    animation: slideUpIn 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    opacity: 0;
}

.service-panel.active .signature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.service-panel.active .signature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-panel.active .signature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.service-panel.active .signature-card:nth-child(4) {
    animation-delay: 0.4s;
}

.service-panel.active .signature-card:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes slideUpIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.services-content-wrapper {
    background: white;
    border-radius: 32px;
    padding: 4.5rem;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
    min-height: 420px;
}

.service-panel {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Card Accents System */
.signature-card {
    position: relative;
    padding-left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.3s ease;
}

/* Vertical Ribbon Accent */
.signature-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background-color: var(--accent-color, var(--color-aurora));
    transition: background-color 0.5s ease;
    opacity: 0.6;
}

/* Theme classes for the content wrapper */
.services-content-wrapper.theme-aurora {
    --accent-color: var(--color-aurora);
}

.services-content-wrapper.theme-azzurra {
    --accent-color: var(--color-azzurra);
}

/* Unified Grid System */
.service-unified-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3.5rem 2.5rem;
}

/* Signature Service Card (Base) */
.signature-card:hover {
    transform: translateY(-5px);
}

.card-num {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--accent-color, var(--color-aurora));
    font-weight: 600;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.card-num::after {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--color-azzurra);
    /* Secondary brand accent */
    border-radius: 50%;
    opacity: 0.5;
}

.theme-azzurra .card-num::after {
    background: var(--color-aurora);
    /* Flip accent for cool theme */
}


.signature-card h5 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--color-text);
    margin: 0;
}

.signature-card p {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-light);
    margin: 0;
}

/* Modern Inset Assurance Banner */
.assurance-banner {
    margin-top: 4rem;
    padding: 1.75rem 2.5rem;
    background: #F8FAFC;
    /* Clean technical gray/blue */
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid #EDF2F7;
    animation: fadeIn 0.8s ease-out forwards;
}

.assurance-icon {
    width: 44px;
    height: 44px;
    background: rgba(var(--color-azzurra-rgb), 0.1);
    color: var(--color-azzurra);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.assurance-text {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 1.05rem;
    color: var(--color-text);
    margin: 0;
    line-height: 1.6;
}

.assurance-text strong {
    font-weight: 600;
    color: var(--color-text);
}

/* Responsive Adjustments */
@media (max-width: 820px) {
    .services-content-wrapper {
        padding: 3rem 2rem;
    }

    .services-glass-tabs {
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        border-radius: 20px;
        padding: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .services-glass-tabs::-webkit-scrollbar {
        display: none;
    }

    .service-tab {
        flex: 1 0 auto;
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .tab-pill {
        display: none;
    }

    .service-tab.active {
        background: white;
        border-radius: 16px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    }

    .service-unified-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .assurance-banner {
        margin-top: 3rem;
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Footer Responsive */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .brand-col {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .brand-col {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
