@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@400;600&display=swap');

:root {
    --primary-blue: #004AAD;
    --secondary-blue: #eef5ffff;
    --accent-purple: #9b59b6;
    --accent-teal: #1abc9c;
    --white: #ffffff;
    --black: #000000;
    --text-color: #333;
    --border-radius: 20px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-top: 0;
}

/* Header & Nav */
header {
    background-color: transparent;
    padding: 1rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

header.scrolled {
    background: linear-gradient(135deg, var(--white) 0%, rgba(238, 245, 255, 0.7) 100%);
    box-shadow: var(--shadow-lg);
    border-bottom: 3px solid var(--primary-blue);
    backdrop-filter: blur(10px);
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -1px;
    transition: all 0.3s;
    background: linear-gradient(135deg, #ffffff 0%, #e8f4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header.scrolled .logo {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links .lang-selector-wrap {
    margin-right: auto;
    order: -1;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s;
    position: relative;
    font-size: 0.95rem;
    padding-bottom: 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-teal));
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

header.scrolled .nav-links a {
    color: var(--text-color);
}

header.scrolled .nav-links a:hover {
    color: var(--primary-blue);
}

/* Hero Section */
.hero {
    height: 50vh;
    background: linear-gradient(135deg, rgba(0, 74, 173, 0.3) 0%, rgba(26, 188, 156, 0.2) 100%), url('../images/site/hero-bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(0, 40, 100, 0.4) 0%, rgba(0, 25, 80, 0.6) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid white;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 74, 173, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 74, 173, 0);
    }
}

.hero-btn:hover {
    transform: scale(1.05);
    background-color: white;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    animation: none;
}

/* Search Bar Section */
.search-bar-section {
    display: flex;
    justify-content: center;
    margin-top: -35px; /* Pull it up to overlap the hero image */
    position: relative;
    z-index: 10;
    padding: 0 1rem;
}

.search-bar-container {
    background: linear-gradient(135deg, var(--white) 0%, rgba(238, 245, 255, 0.5) 100%);
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.5rem;
    width: 100%;
    max-width: 900px;
    border: 2px solid rgba(0, 74, 173, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-bar-container:hover {
    box-shadow: 0 12px 40px rgba(0, 74, 173, 0.25);
    border-color: rgba(0, 74, 173, 0.2);
}

.search-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.search-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    cursor: pointer;
}

.search-field label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.search-select {
    border: none;
    background: transparent;
    font-size: 0.95rem;
    color: var(--text-color);
    font-family: 'Open Sans', sans-serif;
    outline: none;
    cursor: pointer;
    width: 100%;
    font-weight: 500;
}

.search-divider {
    width: 2px;
    height: 35px;
    background: linear-gradient(180deg, rgba(0, 74, 173, 0) 0%, var(--primary-blue) 50%, rgba(0, 74, 173, 0) 100%);
    margin: 0 0.5rem;
    border-radius: 1px;
}

.search-submit {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
    color: var(--white);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    height: auto;
    margin-left: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

.search-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 74, 173, 0.35);
}

/* Responsive adjustment for search bar on small screens */
@media (max-width: 650px) {
    .search-form {
        flex-direction: column;
        gap: 0.5rem;
    }
    .search-divider {
        display: none;
    }
    .search-field {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    .search-field:last-of-type {
        border-bottom: none;
    }
    .search-submit {
        width: 100%;
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* Scelti per te */
.scelti-per-te {
    background: linear-gradient(180deg, var(--white) 0%, var(--secondary-blue) 100%);
    padding-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin: 3rem 0 1.5rem;
    font-size: 2.2rem;
    color: var(--black);
    position: relative;
    padding-bottom: 1rem;
    animation: slideInDown 0.6s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-teal));
    border-radius: 2px;
}

.cards-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 0 4rem 1.5rem 4rem; /* padding bottom extra per nascondere eventuale scrollbar se customizzata */
    max-width: 1400px; 
    margin: 0 auto;
    box-sizing: border-box; 
    scrollbar-width: none; /* Firefox */
}
.cards-grid::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

/* Responsive for cards */
@media (max-width: 1100px) {
    .cards-grid {
        padding: 0 2rem 1.5rem 2rem;
    }
}
@media (max-width: 600px) {
    .cards-grid {
        padding: 0 1rem 1rem 1rem;
    }
}

.card {
    position: relative;
    border-radius: var(--border-radius);
    flex: 0 0 210px; /* Make cards even smaller */
    scroll-snap-align: start;

    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: slideInUp 0.6s ease-out both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 74, 173, 0.25);
}

.card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 1px solid rgba(0,0,0,0.1); /* Sottile e delicata */
    border-radius: var(--border-radius);
    display: block; 
    box-sizing: border-box; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* Soft shadow like Weroad */
}

.card-heart {
    position: absolute;
    top: 12px;
    right: 12px;
    color: white; 
    cursor: pointer;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.heart-svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.6)); /* Makes white shape readable on any image */
    transition: all 0.2s ease;
}

.card-heart:hover .heart-svg {
    fill: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.card-heart.heart-active {
    color: #ff4757;
}

.card-heart.heart-active .heart-svg {
    fill: #ff4757;
    filter: drop-shadow(0px 2px 6px rgba(255,71,87,0.5));
}

.card-img-link {
    display: block;
}

.card-title {
    margin-top: 10px;
    font-weight: 800; /* Bold black */
    color: var(--black);
    font-size: 1.2rem;
    text-align: left;
    padding-left: 5px;
}

/* Photo Gallery Section */
.gallery-section {
    padding: 2rem 0 6rem 0; /* Added padding to ensure spacing */
    position: relative; /* Ensure stacking context */
    z-index: 1;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto; /* Moved margin to section padding */
    padding: 0 2rem;
    display: grid;
    /* 3 Columns: Left (2 squares + landscape), Middle (1 tall), Right (2 squares + landscape) */
    grid-template-columns: 2fr 1fr 2fr;
    gap: 1.5rem;
    align-items: stretch;
}

/* Left & Right Columns: Landscape top, 2 squares bottom */
.gallery-left-col, .gallery-right-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr; /* Equal height rows */
    gap: 1.5rem;
    height: 600px;
}

/* Landscape spans 2 cols */
.gallery-left-col img:nth-child(1), .gallery-right-col img:nth-child(1) {
    grid-column: span 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Bottom squares */
.gallery-left-col img:nth-child(2),
.gallery-left-col img:nth-child(3),
.gallery-right-col img:nth-child(2),
.gallery-right-col img:nth-child(3) {
    width: 100%;
    height: 100%; /* Force height to fill grid cell */
    min-height: 0; /* Fix for grid flex items */
    object-fit: cover;
    border-radius: 10px;
}

/* Middle Column: 1 Tall Vertical Photo */
.gallery-mid-col {
    display: flex;
    flex-direction: column;
    height: 600px;
}

.gallery-mid-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Info 3 Vertical Rectangles */
.info-section {
    width: 100%;
    margin-top: 6rem;
    padding: 6rem 0; /* More vertical padding */
    background-color: #1a1a2e; /* Same as footer */
    /* Removed border-radius */
}

.info-cards-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.info-rect {
    flex: 1;
    height: 550px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s;
}

.info-rect::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Added a subtle blue tint to the gradient */
    background: linear-gradient(to bottom, rgba(0, 12, 30, 0.7) 0%, rgba(0, 30, 80, 0.2) 50%, rgba(0, 15, 40, 0.6) 100%);
    pointer-events: none;
    z-index: 1;
}

.info-rect:hover {
    transform: translateY(-5px);
}

.info-badge {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-blue); /* Changed from black to primary blue */
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 74, 173,0.4); /* Added a blue glow */
}

.info-content {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: transparent;
    padding: 1rem 1.5rem;
    text-align: center;
    z-index: 2;
}

.info-content h3 {
    color: white;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    margin-bottom: 0.5rem;
}

.info-content p {
    color: white;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    font-size: 1.05rem;
}

/* Pre-footer Reels */
.reels-section {
    text-align: center;
    margin: 4rem 0;
    padding: 4rem 0;
    background-color: var(--secondary-blue); /* Added light blue background */
}

.reels-container {
    display: flex;
    justify-content: center;
    gap: 3rem; /* Spazio leggermente aumentato */
    margin-top: 2rem;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 2rem auto 0;
}

.reel-card {
    width: 380px; /* Più largo */
    height: 550px;
    background-color: #f0f0f0; 
    border-radius: 16px; /* Bordo meno arrotondato visivamente */
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.reel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.reel-video-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.reel-card img.static-img,
.reel-card img.animated-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
    transition: opacity 0.3s ease;
}

/* La GIF (o video) è nascosta di default */
.reel-card img.animated-gif {
    opacity: 0;
    z-index: 2;
}

/* Al passaggio del mouse, mostriamo la GIF e nascondiamo gradualmente l'immagine statica */
.reel-card:hover img.animated-gif {
    opacity: 1;
}

/* Aggiungiamo un gradiente in fondo per rendere leggibile il testo sopra il video */
.reel-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    z-index: 3;
    pointer-events: none;
}

.reel-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    z-index: 4;
    text-align: left;
    color: white;
}

.reel-title {
    font-size: 1.4rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 0.3rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.reel-location {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}


/* NOTE: Footer styles are in the Site Footer block below */

/* ═══════════════════════════════════════════
   CONTACT FORM IN FOOTER
   ═══════════════════════════════════════════ */

.footer-contact-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 3rem 2rem;
    margin-top: 4rem;
    border-top: 2px solid rgba(0, 74, 173, 0.2);
}

.footer-contact-container {
    max-width: 500px;
    margin: 0 auto;
}

.footer-contact-title {
    text-align: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

.footer-contact-subtitle {
    text-align: center;
    color: #a0a0a0;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form-group {
    display: flex;
    gap: 1rem;
}

.contact-form-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-form-field input,
.contact-form-field textarea {
    padding: 0.8rem;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.contact-form-field input::placeholder,
.contact-form-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form-field input:focus,
.contact-form-field textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: rgba(0, 74, 173, 0.1);
    box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.1);
}

.contact-form-field textarea {
    resize: vertical;
    min-height: 80px;
    grid-column: 1 / -1;
}

.contact-form-submit {
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
    margin-top: 0.5rem;
}

.contact-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 74, 173, 0.35);
}

.form-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

/* Flash Messages */
.message {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.error {
    color: red;
    margin-bottom: 1rem;
    text-align: center;
}

.success {
    color: green;
    margin-bottom: 1rem;
    text-align: center;
}

/* Login Page */
.login-body {
    background: #eef2f5;
}

.login-box {
    max-width: 400px;
    margin: 100px auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Dashboard & Admin */
.admin-body {
    background: #eef2f5;
}

.dashboard-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    gap: 2rem;
    padding: 2rem;
}

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
}

.sidebar {
    flex: 1;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.content {
    flex: 3;
}

/* Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-top: 1rem;
}

.admin-table th, .admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.admin-table th {
    background-color: var(--primary-blue);
    color: white;
}

.admin-table tr:hover {
    background-color: #f5f5f5;
}

/* Buttons */
.action-btn {
    padding: 5px 10px;
    background: #eee;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    display: inline-block;
    transition: background 0.2s;
}

.action-btn:hover {
    background: #ddd;
}

.logout-btn {
    color: red;
    float: right;
    text-decoration: none;
    font-weight: 500;
}

.logout-btn:hover {
    text-decoration: underline;
}

.social-icon {
    color: #bbb;
    transition: color 0.3s;
}

.social-icon:hover {
    color: var(--primary-blue);
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.social-icons a:hover {
    background: var(--primary-blue);
    color: white;
}

/* Mobile Responsive Updates */


/* Footer Styles */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 0 2rem;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: #888;
}

/* Modern Professional Footer */
.site-footer {
    background-color: #111418;
    color: #e0e0e0;
    font-family: 'Open Sans', sans-serif;
    position: relative;
    z-index: 10;
    margin-top: 2rem;
    width: 100%;
}
.footer-top {
    padding: 3rem 0 4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-footer .footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 3rem;
}
.site-footer .footer-col {
    text-align: left;
}
.site-footer .footer-col h3 {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    margin: 0 0 1.5rem 0;
    padding: 0;
    font-weight: 700;
    position: relative;
    display: inline-block;
    text-align: left;
}
.site-footer .footer-col h3::after {
    content: '';
    position: absolute;
    left: 0; bottom: -8px;
    width: 30px; height: 3px;
    background-color: var(--primary-blue);
    border-radius: 2px;
}
.site-footer .footer-logo {
    font-size: 2rem !important;
    letter-spacing: -1px;
    color: var(--white) !important;
    margin: 0 0 1rem 0;
    padding: 0;
    display: block;
    text-align: left;
}
.site-footer .footer-logo::after {
    display: none !important;
}
.brand-col p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    padding: 0;
    color: #a0a0a0;
    max-width: 90%;
    text-align: left;
}
.site-footer .social-icons {
    display: flex;
    gap: 1rem;
}
.site-footer .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05);
    color: white;
    transition: all 0.3s;
}
.site-footer .social-icons a:hover {
    background-color: var(--primary-blue);
    transform: translateY(-3px);
}
.links-col ul {
    list-style: none;
    padding: 0; margin: 0;
    text-align: left;
}
.links-col ul li {
    margin: 0 0 0.8rem 0;
    padding: 0;
    text-align: left;
}
.links-col ul li a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
    display: inline-block;
}
.links-col ul li a:hover {
    color: white;
    transform: translateX(5px);
}

/* Contact Column in Footer */
.contact-col {
    text-align: left;
}

.contact-form-footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-form-field-inline {
    display: flex;
    flex-direction: column;
}

.contact-form-field-inline input,
.contact-textarea-footer {
    padding: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.contact-form-field-inline input::placeholder,
.contact-textarea-footer::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form-field-inline input:focus,
.contact-textarea-footer:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: rgba(0, 74, 173, 0.1);
}

.contact-textarea-footer {
    resize: vertical;
    min-height: 60px;
}

.contact-submit-footer {
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.contact-submit-footer:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 74, 173, 0.3);
}

/* Site Footer bottom bar */
.site-footer .footer-bottom {
    background-color: #0d1013;
    padding: 1.5rem 0;
    margin-top: 0;
    border-bottom: none;
}
.footer-bottom-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-bottom-container p {
    margin: 0;
    font-size: 0.85rem;
    color: #888;
}
.footer-legal {
    display: flex;
    gap: 1.5rem;
}
.footer-legal a {
    color: #888;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.footer-legal a:hover {
    color: white;
}

/* Responsive Overrides */
@media (max-width: 1100px) {
    .site-footer .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}
@media (max-width: 650px) {
    .site-footer .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer-bottom-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ═══════════════════════════════════════════
   LANGUAGE SELECTOR
   ═══════════════════════════════════════════ */
.lang-selector-wrap {
    position: relative;
    margin-left: 18px;
    display: inline-flex;
    align-items: center;
    z-index: 1100;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    padding: 5px 10px;
    cursor: pointer;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
}

.lang-toggle:hover {
    background: rgba(255,255,255,0.25);
}

header.scrolled .lang-toggle {
    background: rgba(0, 74, 173,0.08);
    border-color: rgba(0, 74, 173,0.2);
    color: var(--text-color);
}

header.scrolled .lang-toggle:hover {
    background: rgba(0, 74, 173,0.15);
}

/* Pages with solid header (profilo, privacy, iscrizione) */
.profile-body .lang-toggle,
.policy-body .lang-toggle,
.iscrizione-body .lang-toggle,
.auth-body .lang-toggle {
    background: rgba(0, 74, 173,0.08);
    border-color: rgba(0, 74, 173,0.2);
    color: var(--text-color);
}

.lang-flag {
    font-size: 1rem;
    line-height: 1;
}

.lang-code {
    letter-spacing: 0.04em;
}

.lang-chevron {
    transition: transform 0.2s;
    flex-shrink: 0;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 6px;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.lang-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: none;
    border-radius: 7px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #333;
    transition: background 0.15s;
}

.lang-option:hover {
    background: #f0f4ff;
}

.lang-option.active {
    background: #e8f0fe;
    color: var(--primary-blue);
}

/* Language selector in footer */
.footer-bottom-container .lang-selector-wrap {
    margin-left: auto;
    margin-right: 0;
    display: inline-flex;
}

.footer-bottom-container .lang-toggle {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: #a0a0a0;
}

.footer-bottom-container .lang-toggle:hover {
    background: rgba(255,255,255,0.15);
    color: white;
}

.footer-bottom-container .lang-dropdown {
    top: auto;
    bottom: calc(100% + 8px);
}

/* Auth page: position selector at top-right */
.auth-body .lang-selector-wrap {
    position: fixed;
    top: 1rem;
    right: 1.5rem;
    margin-left: 0;
}

@media (max-width: 768px) {
    .lang-selector-wrap { margin-left: 10px; }
    .lang-code { display: none; }
    .lang-toggle { padding: 5px 8px; }
}

/* ═══════════════════════════════════════════
   HAMBURGER MENU (mobile)
   ═══════════════════════════════════════════ */

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1200;
    -webkit-tap-highlight-color: transparent;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2.5px;
    background: white;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

header.scrolled .hamburger-line,
.profile-body .hamburger-line,
.policy-body .hamburger-line,
.iscrizione-body .hamburger-line {
    background: #333;
}

.hamburger-btn.is-active .hamburger-line {
    background: #333;
}
.hamburger-btn.is-active .hamburger-line:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.hamburger-btn.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}
.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

/* ═══════════════════════════════════════════
   MOBILE RESPONSIVE (max-width: 768px)
   ═══════════════════════════════════════════ */

@media (max-width: 768px) {

    /* --- HAMBURGER NAV --- */
    .hamburger-btn {
        display: flex;
    }

    header {
        flex-wrap: nowrap;
    }

    .logo {
        flex: 1;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 5rem 1.5rem 2rem;
        gap: 0;
        z-index: 1100;
        box-shadow: -4px 0 24px rgba(0,0,0,0.15);
        transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
        overflow-y: auto;
    }

    .nav-links.mobile-open {
        right: 0;
    }

    .nav-links a {
        display: block;
        margin-left: 0;
        padding: 0.9rem 0;
        font-size: 1rem;
        color: #1a202c !important;
        border-bottom: 1px solid #f0f4f8;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    /* keep lang selector visible on mobile */
    .lang-selector-wrap {
        margin-left: 0;
        margin-right: 8px;
    }

    .lang-code { display: none; }
    .lang-toggle { padding: 5px 8px; }

    /* --- HEADER SPACING --- */
    header {
        padding: 0.8rem 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    /* --- HERO (index) --- */
    .hero {
        height: 45vh;
        min-height: 300px;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .hero-btn {
        padding: 0.8rem 1.8rem;
        font-size: 0.9rem;
    }

    /* --- SEARCH BAR (index) --- */
    .search-bar-section {
        margin-top: -25px;
    }

    /* --- SECTION TITLES --- */
    .section-title {
        font-size: 1.6rem;
        margin: 2rem 0 1rem;
    }

    /* --- CARDS GRID (scelti per te) --- */
    .card {
        flex: 0 0 160px;
    }

    .card-title {
        font-size: 1rem;
    }

    /* --- GALLERY --- */
    .gallery-section {
        padding: 2rem 0 3rem;
    }

    .gallery-container {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .gallery-left-col,
    .gallery-right-col {
        grid-template-columns: 1fr 1fr;
        height: auto;
        gap: 0.75rem;
    }

    .gallery-left-col img:nth-child(1),
    .gallery-right-col img:nth-child(1) {
        grid-column: span 2;
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .gallery-left-col img:nth-child(2),
    .gallery-left-col img:nth-child(3),
    .gallery-right-col img:nth-child(2),
    .gallery-right-col img:nth-child(3) {
        aspect-ratio: 1;
        height: auto;
    }

    .gallery-mid-col {
        height: auto;
    }

    .gallery-mid-col img {
        aspect-ratio: 3 / 4;
        height: auto;
    }

    /* --- INFO SECTION (chi/cosa/come) --- */
    .info-section {
        margin-top: 2rem;
        padding: 3rem 0;
    }

    .info-cards-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 0 1rem;
    }

    .info-rect {
        width: 100%;
        height: 350px;
    }

    .info-content h3 {
        font-size: 1.1rem;
    }

    .info-content p {
        font-size: 0.9rem;
    }

    /* --- REELS --- */
    .reels-section {
        margin: 2rem 0;
        padding: 2rem 0;
    }

    .reels-container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .reel-card {
        width: 100%;
        max-width: 360px;
        height: 450px;
    }

    .reel-title {
        font-size: 1.1rem;
    }

    .reel-location {
        font-size: 0.9rem;
    }

    /* --- FOOTER --- */
    .site-footer .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.5rem;
    }

    .footer-top {
        padding: 2rem 0 2.5rem;
    }

    .brand-col p {
        max-width: 100%;
    }

    .footer-bottom-container {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        padding: 0 1rem;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .footer-contact-section {
        padding: 2rem 1.5rem;
    }

    .contact-form-group {
        flex-direction: column;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .hero {
        height: 40vh;
        min-height: 260px;
    }

    .search-bar-container {
        border-radius: 10px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .card {
        flex: 0 0 140px;
    }

    .info-rect {
        height: 280px;
    }

    .reel-card {
        height: 380px;
    }

    .gallery-left-col,
    .gallery-right-col {
        grid-template-columns: 1fr;
    }

    .gallery-left-col img:nth-child(1),
    .gallery-right-col img:nth-child(1) {
        grid-column: span 1;
    }
}