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

/* ===== INTRO VIDEO OVERLAY ===== */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6B5D52 0%, #9D9080 50%, #B8AFA3 100%);
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.intro-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.intro-splash {
    text-align: center;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.intro-splash.fade-out {
    opacity: 0;
    transform: scale(0.9);
}

.intro-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 400;
    font-family: 'Rouge Script', cursive;
    background: linear-gradient(135deg, #ffffff, #D4C8BA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.intro-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: #E8E3DC;
    margin-bottom: 3rem;
    font-weight: 400;
}

.year {
    font-family: 'Rouge Script', cursive;
    font-weight: 400;
    font-size: 1.3em;
}

.skip-intro-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.skip-intro-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1) rotate(90deg);
}

.enter-button {
    padding: 1.5rem 4rem;
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #D4C8BA, #E8E3DC);
    color: #6B5D52;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 50px rgba(196, 165, 123, 0.4);
    position: relative;
    overflow: hidden;
}

.enter-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.enter-button:hover::before {
    width: 300px;
    height: 300px;
}

.enter-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 60px rgba(196, 165, 123, 0.6);
}

.intro-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.intro-video.playing {
    opacity: 1;
    z-index: 3;
}

/* Le variabili colore sono definite in colors.css
 * Questo permette una gestione centralizzata dei colori
 * Per modificare i colori del sito, edita colors.css
 */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(107, 93, 82, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(157, 144, 128, 0.2);
    transition: all 0.3s ease;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
}

.logo {
    /*background: rgba(255, 255, 255, 0.65);*/
    /*padding: 0.5rem 1rem;*/
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

/*.logo:hover {
    background: rgba(255, 255, 255, 0.8);
}*/

.logo img {
    height: 60px;
    width: auto;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7));
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

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

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ===== HERO SECTIONS ===== */
.hero {
    min-height: 100vh;
    background:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('images/duomo-milano.jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 8rem 2rem 4rem;
}

/* Mobile: fixed attachment può causare problemi */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 24, 16, 0.3);
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 1.5rem;
    font-weight: 400;
    font-family: 'Rouge Script', cursive;
    background: linear-gradient(135deg, var(--white), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
    letter-spacing: 0px;
}

.hero .subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 2rem;
    color: #ffffff;
    font-weight: 400;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 3rem;
    color: #ffffff;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8);
}

.page-hero {
    padding: 10rem 2rem 4rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    text-align: center;
    color: var(--white);
}

.page-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
    font-weight: 400;
    font-family: 'Rouge Script', cursive;
}

.page-hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--light);
}

.servizi-intro {
    padding: 3rem 2rem;
    background: var(--white);
}

.servizi-intro .intro-text {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 1.8;
    color: var(--grey);
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* ===== BUTTONS ===== */
.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, #D4C8BA, #E8E3DC);
    color: #6B5D52;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s;
    box-shadow: 0 10px 40px rgba(196, 165, 123, 0.6);
    position: relative;
    overflow: hidden;
    border: 2px solid #ffffff;
    cursor: pointer;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.3);
    transition: left 0.4s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(5,191,219,0.5);
}

.cta-button-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--accent);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.cta-button-secondary:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
}

/* ===== SEARCH SECTION ===== */
.quick-search,
.quick-search-page {
    background: var(--white);
    padding: 3rem 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.quick-search h2,
.quick-search-page h2 {
    text-align: center;
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 800;
}

.search-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.75rem 2rem;
    background: var(--light-grey);
    border: 2px solid transparent;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--grey);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: var(--white);
    border-color: var(--accent);
}

.search-form {
    display: flex;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.search-input,
.search-select {
    flex: 1;
    min-width: 200px;
    padding: 1rem;
    border: 2px solid rgba(5,191,219,0.2);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--light-grey);
    transition: all 0.3s;
}

.search-input:focus,
.search-select:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
}

.search-btn {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(5,191,219,0.4);
}

/* ===== SECTIONS ===== */
section {
    padding: clamp(3rem, 10vw, 6rem) 2rem;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 800;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--light));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--grey);
    margin-bottom: 4rem;
    font-size: clamp(1rem, 2vw, 1.1rem);
}

.text-center {
    text-align: center;
}

/* ===== PROPERTY CARDS ===== */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.property-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(5,191,219,0.1);
}

.property-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
}

.property-image {
    height: 250px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    position: relative;
    overflow: hidden;
}

.property-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}

.property-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 1;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.property-tag.vendita {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: var(--dark);
}

.property-tag.affitto {
    background: linear-gradient(135deg, var(--accent), var(--light));
    color: var(--dark);
}

.property-id {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 1;
}

.property-content {
    padding: 1.8rem;
}

.property-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 700;
}

.property-location {
    color: var(--grey);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.property-type {
    display: inline-block;
    background: var(--light-grey);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.property-price {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    margin-bottom: 1rem;
}

.property-link {
    color: var(--accent);
    font-weight: 600;
    transition: all 0.3s;
}

.property-link:hover {
    color: var(--secondary);
}

/* Full Property Cards for Immobili Page */
.properties-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.property-card-full {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid rgba(5,191,219,0.1);
}

.property-card-full:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.property-image-full {
    height: 200px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    position: relative;
}

.property-content-full {
    padding: 1.5rem;
}

.property-details-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.property-type-badge {
    background: var(--light-grey);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
}

.property-address {
    color: var(--grey);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.property-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

.property-contact-btn {
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: var(--white);
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.property-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(5,191,219,0.4);
}

.trattabile {
    font-size: 0.85rem;
    color: var(--grey);
    font-weight: 500;
}

/* ===== SERVICE CARDS ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(5,191,219,0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--light));
    transform: scaleX(0);
    transition: transform 0.4s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    box-shadow: 0 10px 30px rgba(8,131,149,0.3);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 700;
}

.service-card p {
    color: var(--grey);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Service Cards Large (for Servizi page) */
.services-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.service-card-large {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(5,191,219,0.1);
    transition: all 0.3s;
}

.service-card-large:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon-large {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(8,131,149,0.3);
}

.service-card-large h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 700;
}

.service-card-large p {
    color: var(--grey);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--grey);
    font-size: 0.95rem;
}

/* ===== STATS SECTION ===== */
.stats {
    background: linear-gradient(135deg, var(--dark), var(--primary));
    color: var(--white);
    text-align: center;
    border-radius: 25px;
    margin: 4rem 2rem;
    padding: 4rem 2rem;
    box-shadow: 0 30px 80px rgba(0,0,0,0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.stat-item h3 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #D4C8BA; /* Fallback color */
    background: linear-gradient(135deg, #D4C8BA, #E8E3DC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-weight: 900;
}

.stat-item p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
}

/* ===== CHI SIAMO PAGE ===== */
.chi-siamo-content {
    background: var(--white);
}

.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.about-intro h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.lead {
    font-size: 1.2rem;
    color: var(--grey);
    line-height: 1.8;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-text-section h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-text-section p {
    color: var(--grey);
    line-height: 1.9;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-image-placeholder {
    height: 400px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    border-radius: 25px;
    box-shadow: 0 30px 80px rgba(8,131,149,0.3);
    position: relative;
    overflow: hidden;
}

.about-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: scale(1.02);
}

.about-image-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.about-values {
    margin: 4rem 0;
}

.about-values h3 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 3rem;
    font-weight: 800;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    background: var(--light-grey);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
}

.value-card:hover {
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-card h4 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.value-card p {
    color: var(--grey);
    line-height: 1.7;
}

.team-section {
    margin: 4rem 0;
}

.team-section h3 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 3rem;
    font-weight: 800;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.team-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid rgba(5,191,219,0.1);
    transition: all 0.3s;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.team-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.team-card h4 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.team-role {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.team-card p {
    color: var(--grey);
    line-height: 1.8;
}

.team-signature {
    text-align: center;
    color: var(--grey);
    font-size: 1.1rem;
}

/* ===== CTA SECTIONS ===== */
.cta-section,
.servizi-cta,
.immobili-cta,
.visit-cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 25px;
    margin: 2rem;
}

.cta-section h2,
.servizi-cta h2,
.immobili-cta h2,
.visit-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.cta-section p,
.servizi-cta p,
.immobili-cta p,
.visit-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
}

/* ===== LOCATION PAGE ===== */
.location-content {
    background: var(--white);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.location-info h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    font-weight: 800;
}

.address-card {
    background: var(--light-grey);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
}

.address-card h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.address-main {
    font-size: 1.1rem;
    color: var(--grey);
    line-height: 1.8;
}

.transport-section h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.transport-card {
    display: flex;
    align-items: start;
    gap: 1.5rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(5,191,219,0.1);
    transition: all 0.3s;
}

.transport-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(5,191,219,0.15);
}

.transport-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.transport-info h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.transport-info p {
    color: var(--grey);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-quick h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 2rem 0 1rem;
    font-weight: 700;
}

.contact-item-small {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    color: var(--grey);
}

.contact-item-small .icon {
    font-size: 1.3rem;
}

.map-container {
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-caption {
    text-align: center;
    margin-top: 1rem;
    color: var(--grey);
    font-size: 0.95rem;
}

.zona-info {
    background: var(--light-grey);
    padding: 4rem 2rem;
}

.zona-info h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.zona-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--grey);
    font-size: 1.1rem;
    line-height: 1.8;
}

.zona-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.zona-feature {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.zona-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.zona-feature h4 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.zona-feature p {
    color: var(--grey);
}

/* ===== CONTACT PAGE ===== */
.contact-page-content {
    background: var(--white);
}

.contact-grid-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info-page h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.contact-intro {
    color: var(--grey);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-card-item {
    display: flex;
    align-items: start;
    gap: 1.5rem;
    background: var(--light-grey);
    padding: 1.5rem;
    border-radius: 20px;
    transition: all 0.3s;
}

.contact-card-item:hover {
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateX(10px);
}

.contact-card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(8,131,149,0.3);
}

.contact-card-content h4 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.contact-card-content p {
    color: var(--grey);
    line-height: 1.6;
}

.contact-card-content a {
    color: var(--accent);
    font-weight: 600;
    transition: color 0.3s;
}

.contact-card-content a:hover {
    color: var(--secondary);
}

.contact-note {
    font-size: 0.9rem;
    color: var(--grey);
}

.alternative-contact {
    background: var(--light-grey);
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.alternative-contact h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.alternative-contact p {
    color: var(--grey);
    line-height: 1.7;
}

.alternative-contact a {
    color: var(--accent);
    font-weight: 600;
}

.form-container {
    background: var(--white);
    padding: 3rem;
    border-radius: 25px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(5,191,219,0.1);
}

.form-container h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.form-subtitle {
    color: var(--grey);
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(5,191,219,0.2);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
    background: var(--light-grey);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 5px 20px rgba(5,191,219,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group-checkbox {
    display: flex;
    align-items: start;
    gap: 0.75rem;
}

.form-group-checkbox input[type="checkbox"] {
    margin-top: 0.3rem;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.form-group-checkbox label {
    color: var(--grey);
    font-size: 0.9rem;
    line-height: 1.5;
    cursor: pointer;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s;
    box-shadow: 0 10px 30px rgba(8,131,149,0.3);
    position: relative;
    overflow: hidden;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.submit-button:hover::before {
    left: 100%;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(8,131,149,0.5);
}

.form-note {
    text-align: center;
    color: var(--grey);
    font-size: 0.85rem;
    margin-top: -0.5rem;
}

.map-section {
    background: var(--light-grey);
    padding: 4rem 2rem;
}

.map-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    font-weight: 800;
}

.map-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-info {
    text-align: center;
    margin-top: 1.5rem;
}

.map-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.map-link:hover {
    color: var(--secondary);
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #E8E3DC; /* Fallback color */
    background: linear-gradient(135deg, #E8E3DC, #D4C8BA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.footer-section p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    font-size: 0.95rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== PROPERTY DETAIL PAGE ===== */
.property-detail-hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 8rem 2rem 3rem;
    color: var(--white);
}

.breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: var(--light);
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--white);
}

.property-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.property-detail-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 1rem 0 0.5rem;
    font-weight: 800;
}

.property-location-large {
    font-size: 1.1rem;
    color: var(--light);
}

.property-price-large {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.property-detail-content {
    background: var(--light-grey);
    padding: 4rem 2rem;
}

.property-detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
}

.property-detail-main {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.property-gallery {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery-main {
    width: 100%;
    aspect-ratio: 16/9;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.detail-section {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.detail-section h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.detail-section p {
    color: var(--grey);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.2rem;
    background: var(--light-grey);
    border-radius: 12px;
    transition: all 0.3s;
}

.feature-item:hover {
    background: var(--white);
    box-shadow: 0 5px 20px rgba(91,51,51,0.1);
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.feature-content p {
    font-size: 1rem;
    color: var(--grey);
    margin: 0;
}

.property-map {
    margin-bottom: 1rem;
}

.map-address {
    color: var(--grey);
    font-size: 1rem;
}

.property-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(91,51,51,0.1);
}

.sidebar-card h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-grey);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--grey);
    font-size: 0.95rem;
}

.summary-value {
    color: var(--dark);
    font-weight: 600;
    text-align: right;
}

.quick-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quick-contact-form .form-group {
    margin: 0;
}

.quick-contact-form input,
.quick-contact-form textarea {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid rgba(91,51,51,0.15);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: var(--light-grey);
}

.quick-contact-form input:focus,
.quick-contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 5px 20px rgba(196,165,123,0.15);
}

.quick-contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.agency-contact p {
    margin-bottom: 1rem;
    color: var(--grey);
    line-height: 1.7;
}

.agency-contact a {
    color: var(--accent);
    font-weight: 600;
    transition: color 0.3s;
}

.agency-contact a:hover {
    color: var(--secondary);
}

.similar-properties {
    background: var(--white);
    padding: 4rem 2rem;
}

/* Loading Spinner */
.loading-spinner {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-grey);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: var(--grey);
    font-size: 1.1rem;
}

.error-message {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.error-message h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.error-message p {
    font-size: 1.2rem;
    color: var(--grey);
    margin-bottom: 2rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
    nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 2rem;
        transition: right 0.4s;
        box-shadow: -10px 0 50px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .about-grid,
    .location-grid,
    .contact-grid-page,
    .property-detail-grid {
        grid-template-columns: 1fr;
    }

    .about-image-placeholder,
    .map-container {
        height: 350px;
    }

    section {
        padding: 3rem 1.5rem;
    }

    .services-grid,
    .properties-grid,
    .properties-grid-full,
    .services-grid-large {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stats {
        margin: 2rem 1rem;
        padding: 3rem 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .search-form {
        flex-direction: column;
    }

    .search-input,
    .search-select {
        width: 100%;
    }

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

@media (max-width: 480px) {
    .hero {
        padding: 6rem 1rem 3rem;
    }

    .container {
        padding: 0 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 2rem 1.5rem;
    }

    .team-grid,
    .values-grid,
    .zona-features {
        grid-template-columns: 1fr;
    }
}

/* ===== GALLERY WITH 1:1 ASPECT RATIO ===== */
.gallery-main {
    padding: 1rem;
    aspect-ratio: auto;
}

.gallery-main-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    background: var(--light-grey);
}

.gallery-main-container::after {
    content: '🔍 Clicca per ingrandire';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: var(--white);
    font-size: 0.9rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-main-container:hover::after {
    opacity: 1;
}

.gallery-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-main-container:hover .gallery-main-image {
    transform: scale(1.02);
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.gallery-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    opacity: 0.7;
}

.gallery-thumb:hover {
    opacity: 1;
    transform: scale(1.05);
}

.gallery-thumb.active {
    border-color: var(--accent);
    opacity: 1;
}

/* ===== LIGHTBOX FULLSCREEN ===== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
}

/* Lightbox Responsive */
@media (max-width: 768px) {
    .lightbox-prev,
    .lightbox-next {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }

    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        top: 1rem;
        right: 1rem;
    }

    .gallery-thumbs {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
}