/* =========================================
   1. RESET & VARIABILI GLOBALI
   ========================================= */
   :root {
    --primary-color: #1a1a1a;   /* Nero morbido */
    --accent-color: #c5a059;    /* Oro/Bronzo */
    --bg-light: #f9f9f9;        /* Grigio chiarissimo */
    --text-grey: #555;          /* Testo paragrafi */
    --white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--primary-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden; /* Fondamentale per mobile: evita scroll orizzontale */
}

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

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

ul {
    list-style: none;
}

/* =========================================
   2. TIPOGRAFIA
   ========================================= */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    color: var(--white);
}

h2 {
    font-size: 2rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-grey);
}

.subtitle {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.highlight {
    color: var(--accent-color);
}

/* =========================================
   3. LAYOUT & UTILITÀ
   ========================================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-split,
.section-grid,
.cta-section {
    padding: 80px 0;
}

/* =========================================
   4. BOTTONI
   ========================================= */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--accent-color);
    cursor: pointer;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
}

/* =========================================
   5. NAVBAR & MENU
   ========================================= */
.navbar {
    padding: 20px 0;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 100;
    background: linear-gradient(rgba(0,0,0,0.9), transparent);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
    z-index: 101; /* Sopra il menu mobile */
}

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

.nav-links a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.nav-links .btn-nav {
    border: 1px solid var(--white);
    padding: 8px 20px;
}

.nav-links .btn-nav:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Burger Menu (Icona per Mobile) */
.burger {
    display: none; /* Nascosto su desktop */
    cursor: pointer;
    z-index: 101;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Animazione Burger */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .line2 {
    opacity: 0;
}
.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* =========================================
   6. HERO SECTION
   ========================================= */
.hero {
    height: 90vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content p {
    color: #ddd;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* =========================================
   7. SEZIONI STANDARD
   ========================================= */
.award-banner {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 15px 0;
}

.award-banner p {
    margin: 0;
    font-size: 0.9rem;
}

.split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.reverse .split-container {
    direction: rtl;
}

.reverse .split-text {
    direction: ltr;
}

.split-image img {
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

/* =========================================
   8. BLOG & GRIGLIE
   ========================================= */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.grid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: #fff;
    border: 1px solid #eee;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.4rem;
    margin: 10px 0;
    color: var(--primary-color);
}

.read-more {
    margin-top: auto; /* Spinge il link in fondo alla card */
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    display: inline-block;
}

/* Utilità per la Griglia Home */
.grid-item {
    position: relative;
}

.grid-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.caption {
    margin-top: 10px;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--text-grey);
}

/* =========================================
   9. PAGINE INTERNE (Chi Siamo, Articoli)
   ========================================= */
.page-header {
    height: 50vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
}

.page-header .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.article-body {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
    font-size: 1.1rem;
    color: #333;
}

.article-body h2 {
    margin-top: 40px;
    font-size: 1.8rem;
}

.article-body p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.article-body ul {
    margin-bottom: 20px;
    padding-left: 20px;
    list-style: disc;
}

.article-cta {
    background-color: var(--bg-light);
    padding: 40px;
    text-align: center;
    margin-top: 60px;
    border-top: 4px solid var(--accent-color);
}

.highlight-box {
    background-color: var(--bg-light);
    border-left: 4px solid var(--accent-color);
    padding: 30px;
    margin-top: 40px;
}

/* =========================================
   10. CTA FOOTER & FOOTER
   ========================================= */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 100px 0;
}

.cta-section h2 {
    color: var(--white);
}

.cta-section p {
    color: #aaa;
}

.contact-details {
    margin-top: 40px;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.9rem;
}

footer {
    background: #111;
    color: #555;
    padding: 30px 0;
    text-align: center;
    font-size: 0.8rem;
}

/* =========================================
   11. WIDGET CONTATTI (Floating)
   ========================================= */
.floating-contact-wrap {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 15px;
}

.contact-fab {
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, background-color 0.3s;
}

.contact-fab:hover {
    transform: scale(1.1);
}

.floating-contact-wrap.open .contact-fab {
    transform: rotate(45deg);
    background-color: #333;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.contact-options.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.contact-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.contact-item:hover {
    transform: scale(1.1);
}

.phone { background-color: #007bff; }
.whatsapp { background-color: #25d366; }
.email { background-color: #ea4335; }

/* =========================================
   12. MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    /* Gestione Menu Mobile */
    .burger {
        display: block;
    }

    .nav-links {
        position: fixed;
        right: 0;
        height: 100vh;
        top: 0;
        background-color: var(--primary-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 75%; /* Larghezza cassetto */
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 100;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }

    .nav-links-active {
        transform: translateX(0%);
    }

    .nav-links li {
        opacity: 0;
        margin: 20px 0;
    }
    
    .nav-links-active li {
        opacity: 1;
        transition: opacity 0.5s ease 0.3s;
    }

    /* Layout Stack (Uno sotto l'altro) */
    .split-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .reverse .split-container {
        direction: ltr; /* Reset direzione */
    }

    .split-image {
        order: -1; /* Immagine sempre prima del testo */
        margin-bottom: 30px;
    }

    /* Padding ridotti su mobile */
    .section-split, .section-grid, .cta-section {
        padding: 50px 0;
    }
    
    .floating-contact-wrap {
        bottom: 20px;
        right: 20px;
    }
}
