/* VARIABILI CSS: Facili da modificare una volta scelto il nome e lo stile */
:root {
    --primary-color: #1e3d2f; /* Verde scuro elegante (campagna) */
    --secondary-color: #0d47a1; /* Blu profondo (mare) */
    --accent-color: #d4af37; /* Color oro per i dettagli, perfetto per l'eleganza */
    --text-color: #333333;
    --bg-color: #ffffff;
    --bg-light: #f4f7f5; /* Un leggerissimo grigio-verde per le sezioni alternate */
    /* --font-heading: 'Yeseva One', serif; */ /* Font elegante retrò (Principale) */
    --font-heading: 'Fraunces', serif; /* Alternativa retrò morbida e organica */
    --font-body: 'Lato', sans-serif; /* Font pulito per il testo */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

h1, h2, h3, .logo {
    font-family: var(--font-heading);
    color: var(--primary-color);
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background-color: rgba(255, 255, 255, 0.98);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* HERO SECTION (Immagine principale) */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Immagine di fallback paesaggistica (gradiente verde/blu) */
    background: linear-gradient(rgba(30, 61, 47, 0.6), rgba(13, 71, 161, 0.4)), url('https://images.unsplash.com/photo-1548123015-18868a1835bc?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover;
    color: white;
    padding: 0 20px;
}

.hero h1 {
    color: white;
    font-size: 4.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
    animation: fadeInDown 1s ease;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
    animation: fadeInUp 1s ease 0.5s both;
}

/* BOTTONI */
.btn {
    display: inline-block;
    padding: 12px 35px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.btn:hover {
    background-color: #bfa033;
    transform: translateY(-2px);
}

/* SEZIONI GENERICHE */
.section {
    padding: 6rem 10%;
    text-align: center;
}

.section h2 {
    font-size: 2.8rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.bg-light {
    background-color: var(--bg-light);
}

/* SERVIZI (Riquadro fieldset elegante) */
.services-elegant {
    max-width: 950px;
    margin: 4rem auto 0 auto;
    padding: 2rem 3rem;
    border: 1px solid rgba(0,0,0,0.15); /* Bordo sottile e delicato */
    border-radius: 12px; /* Angoli tondeggianti */
    text-align: left;
}

.services-elegant legend {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 700;
    padding: 0 1rem; /* Spazio per staccare il testo dal bordo */
    margin: 0 auto; /* Centra la scritta al centro del bordo superiore */
    font-family: var(--font-body);
}

.services-elegant ul {
    list-style: none;
    color: #555;
    column-count: 3; /* 3 colonne */
    column-gap: 3rem;
    margin-top: 0.5rem;
}

.services-elegant li {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    line-height: 1.5;
    position: relative;
    padding-left: 1.2rem;
}

.services-elegant li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

@media (max-width: 800px) {
    .services-elegant ul {
        column-count: 2; /* 2 colonne su tablet */
    }
}
@media (max-width: 600px) {
    .services-elegant {
        padding: 1.5rem;
    }
    .services-elegant ul {
        column-count: 1; /* 1 colonna su cellulare */
    }
}

/* GRIGLIA GALLERIA FOTO */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    height: 300px;
    background-color: #e3e8e5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05); /* Effetto zoom su hover */
}

/* CONTATTI */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    justify-content: space-between;
    text-align: left;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.2);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.contact-link:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

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

.contact-form input, .contact-form textarea {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: #fafafa;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: white;
}

/* FOOTER */
footer {
    background-color: var(--primary-color);
    color: rgba(255,255,255,0.8);
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}

/* ANIMAZIONI */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE (Adattamento ai cellulari) */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.2rem; }
    .section { padding: 4rem 5%; }
    .gallery-item { height: 250px; }
}
