/* =========================================
   IMPORTAZIONE FONT
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,700;1,500&family=Montserrat:wght@300;400;500;600&display=swap');

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

body {
    font-family: 'Montserrat', sans-serif;
    color: #444; 
    line-height: 1.6;
    background-color: #fdfdfd;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
    color: #333;
}

/* =========================================
   LAYOUT PRINCIPALE E CLASSI DI SERVIZIO
========================================= */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* =========================================
   HEADER E NAVIGAZIONE
========================================= */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: center;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

header nav ul li a {
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 5px;
}

header nav ul li a:hover {
    color: #000;
    border-bottom: 2px solid var(--primary-color);
}

/* =========================================
   HOME PAGE: DESIGN MODERNO
========================================= */

/* Hero Section */
.hero-modern {
    padding: 80px 0;
    background: linear-gradient(135deg, #fdfdfd 0%, var(--secondary-color) 100%);
    overflow: hidden;
}

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

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 10px;
    font-style: italic;
}

.hero-text .subtitle {
    font-size: 1.5rem;
    color: #555;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #666;
}

/* Pulsanti Hero */
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--primary-color);
    color: #fff !important;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(139, 90, 91, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 90, 91, 0.4);
}

.btn-secondary {
    display: inline-block;
    padding: 13px 33px;
    background-color: transparent;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff !important;
}

/* Immagine Hero (Forma organica) */
.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-shape {
    width: 400px;
    height: 500px;
    background-color: var(--primary-color);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.image-shape img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Quote Banner */
.quote-banner {
    padding: 60px 20px;
    text-align: center;
    background-color: #fff;
}

.quote-banner blockquote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    font-style: italic;
    line-height: 1.3;
    max-width: 800px;
    margin: 0 auto;
}

/* Intestazioni di Sezione (Cosa offro, Dove ricevo) */
.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 3rem;
}

.divider {
    height: 3px;
    width: 60px;
    background-color: var(--primary-color);
    margin: 0 auto;
    border-radius: 2px;
}

/* Griglia Servizi */
.services-section {
    padding: 80px 0;
    background-color: #fafafa;
}

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

.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border-bottom: 4px solid transparent;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--primary-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Dove Ricevo */
.locations-section {
    padding: 80px 0;
}

.locations-flex {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.location-box {
    text-align: center;
    background: #fff;
    padding: 30px;
    border-radius: 50%;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.loc-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.location-box h4 {
    margin-bottom: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

/* =========================================
   PAGINE INTERNE (page.php)
========================================= */
.dynamic-content {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin: 40px auto;
    max-width: 900px;
}

.dynamic-content h2 {
    font-size: 2.5rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.dynamic-content .content p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.dynamic-content .content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.dynamic-content .content li {
    margin-bottom: 8px;
}

.dynamic-content .content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* =========================================
   FOOTER
========================================= */
footer {
    padding: 50px 20px 20px;
    background-color: var(--secondary-color);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 30px;
}

.footer-content h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.footer-content ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-content ul li {
    font-size: 1.1rem;
}

.footer-content ul li a {
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
    font-size: 0.9rem;
    color: #555;
}

/* Bottone Area Riservata nel Footer */
.admin-login-wrapper {
    margin-top: 15px;
    padding-top: 10px;
}

.btn-admin {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: #ffffff !important; 
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-admin:hover {
    opacity: 0.9;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* =========================================
   RESPONSIVE DESIGN (Smartphone e Tablet)
========================================= */
@media (max-width: 768px) {
    /* Ottimizzazione Touch per il Menu */
    header nav ul {
        flex-direction: column;
        align-items: center;
        gap: 5px;
        width: 100%;
        padding: 0;
    }
    
    header nav ul li {
        width: 100%;
        text-align: center;
    }

    header nav ul li a {
        display: block;
        padding: 12px 20px; 
        font-size: 1rem;
    }
    
    /* Adattamento Home Page per Mobile */
    .hero-modern {
        padding: 50px 0;
    }

    .hero-flex {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-text .subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    
    .image-shape {
        width: 300px;
        height: 350px;
    }
    
    .quote-banner {
        padding: 40px 15px;
    }

    .quote-banner blockquote {
        font-size: 1.8rem;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .locations-flex {
        gap: 20px;
    }

    /* Adattamento Pagine Interne */
    .dynamic-content {
        padding: 25px 15px;
        margin: 20px 10px;
    }

    .dynamic-content h2 {
        font-size: 2rem;
    }
    
    /* Incolonnamento Footer */
    .footer-content ul {
        flex-direction: column;
        gap: 15px;
        padding: 0;
    }
}