/* ============================================================
   VEDIT LEGAL NETWORK - STYLE DEFINITIVO
   ============================================================ */

:root {
    --navy: #0A192F;
    --gold: #9B844A;
    --white: #FFFFFF;
    --border: #E2E8F0;
    --serif: 'Playfair Display', serif;
    --sans: 'Inter', sans-serif;
}

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

body {
    font-family: var(--sans);
    color: var(--navy);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

/* --- HEADER (OK SU DESKTOP) --- */
header {
    background: var(--white);
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-logo {
    height: 85px;
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
}

nav a {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    text-decoration: none;
    color: var(--navy);
}

.nav-cta {
    color: var(--gold) !important;
    font-weight: 800 !important;
}

/* --- HERO --- */
.hero {
    height: 65vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-image: linear-gradient(rgba(10, 25, 47, 0.82), rgba(10, 25, 47, 0.65)),
        url('https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&w=1950&q=80');
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-text h1 {
    font-family: var(--serif);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    line-height: 1;
    margin-bottom: 25px;
    font-weight: 400;
    font-style: italic;
}

.hero-text p {
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    max-width: 650px;
    opacity: 0.85;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 18px 40px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    text-decoration: none;
    transition: 0.4s;
    letter-spacing: 1px;
}

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

.btn-outline {
    border: 1px solid var(--white);
    color: var(--white);
}

/* --- PARTNER GRID --- */
.static-partners {
    padding: 80px 0;
    border-bottom: 1px solid var(--border);
}

.partner-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.partner-grid img {
    height: 60px;
    object-fit: contain;
}

/* --- EDITORIAL SECTION (AREE DI INTERVENTO) --- */
.editorial-expertise {
    padding: 120px 0;
}

.editorial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.section-title {
    font-family: var(--serif);
    font-size: 2.8rem;
    line-height: 1.1;
    font-weight: 400;
}

.expertise-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.exp-item {
    padding-bottom: 30px;
    border-bottom: 1px solid #f1f1f1;
}

.exp-num {
    font-size: 0.7rem;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.exp-item h3 {
    font-family: var(--serif);
    font-size: 1.6rem;
    margin-bottom: 10px;
    font-weight: 400;
}

.exp-item p {
    color: #64748B;
    font-size: 0.95rem;
}

/* --- BENTO GRID --- */
.bento-container {
    padding-bottom: 120px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.bento-card {
    background: var(--white);
    padding: 60px;
    display: flex;
    flex-direction: column;
}

.bento-card.dark {
    background: var(--navy);
    color: var(--white);
}

.bento-card.highlight {
    background: #F8FAFC;
}

.label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 25px;
    display: block;
}

.bento-card h3 {
    font-family: var(--serif);
    font-size: 1.7rem;
    margin-bottom: 20px;
    font-weight: 400;
}

.bento-card p {
    opacity: 0.7;
    margin-bottom: 35px;
    font-size: 1rem;
    flex-grow: 1;
}

.card-link {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: inherit;
    text-decoration: none;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 5px;
    align-self: flex-start;
}

/* --- FOOTER --- */
.footer {
    background: #FFFFFF;
    padding: 120px 0 60px;
    border-top: 1px solid var(--border);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.footer-brand {
    max-width: 550px;
}

.brand-title {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 25px;
}

.disclaimer-text {
    font-size: 0.85rem;
    line-height: 2;
    color: #94A3B8;
    font-style: italic;
}

.footer-contact {
    text-align: right;
}

.footer-email {
    font-family: var(--serif);
    font-size: 2.2rem;
    color: var(--gold);
    text-decoration: none;
    font-style: italic;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #CBD5E1;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-legal-links a {
    margin-left: 30px;
    color: inherit;
    text-decoration: none;
}

/* --- CUSTOM BOOKING CARD STYLES --- */
.booking-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.custom-select {
    width: 100%;
    padding: 18px;
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--navy);
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 0;
    /* Keeps it sharp/minimalist */
    cursor: pointer;
    appearance: none;
    /* Removes default browser styling */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239B844A' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 20px) center;
    transition: 0.3s;
}

.custom-select:focus {
    outline: none;
    border-color: var(--gold);
}

.booking-btn {
    width: 100%;
    border: none;
    cursor: pointer;
    text-align: center;
}

/* Ensure the button matches your existing .btn styles but handles the click better */
.booking-btn:active {
    transform: translateY(1px);
}

/* ============================================================
   RESPONSIVE MOBILE (SOTTO I 900PX)
   ============================================================ */

@media (max-width: 900px) {
    .container {
        padding: 0 25px !important;
    }

    /* Header Mobile */
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .main-logo {
        height: 60px !important;
        margin: 0 auto;
    }

    nav ul {
        gap: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }

    nav a {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    /* Partner Mobile: FIX - Specificity increased to force margin */
    .static-partners.container {
        padding: 60px 40px 80px 40px !important; /* Top, Right, Bottom, Left */
    }

    .partner-grid {
        justify-content: center;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        padding: 0;
    }

    .partner-grid img {
        height: auto !important;
        max-height: 40px;
        max-width: 90%;
        margin: 0 auto;
    }

    /* Aree Intervento Mobile */
    .editorial-expertise.container {
        padding: 80px 40px 60px 40px !important; /* Top, Right, Bottom, Left */
    }

    .editorial-grid {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }

    .section-title {
        font-size: 2rem !important;
    }

    /* Bento Mobile */
    .bento-grid {
        grid-template-columns: 1fr !important;
    }

    .bento-card {
        padding: 40px 25px !important;
        grid-column: span 1 !important;
    }

    /* Footer Mobile */
    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

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

    .footer-email {
        font-size: 1.6rem !important;
    }
}

/* Specific rules for very small screens */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.2rem !important;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        text-align: center;
        width: 100%;
    }

    /* Optional: Center the 5th partner logo (ERC721) */
    .partner-grid img:last-child {
        grid-column: span 2;
    }
}

