@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    /* Colori */
    --color-primary: #6C584C; /* Marrone terra */
    --color-secondary: #A2672D; /* Arancio bruciato */
    --color-background: #F5EADF; /* Crema chiaro */
    --color-footer-bg: #432818; /* Marrone scuro profondo */
    --color-button: #8A6F4E; /* Marrone medio */
    --color-text-dark: #3A2E2A; /* Testo scuro per contrasto */
    --color-text-light: #F5EADF; /* Testo chiaro */
    --color-accent-green: #5A8D6C; /* Accento verde naturale */
    --color-hover-darken: #7B5C3D; /* Colore per hover scurente */

    /* Sfondi sezioni */
    --section-bg-1: #F5EADF;
    --section-bg-2: #E2D6CB;
    --section-bg-3: #F0E7DD;
    --section-bg-4: #F8F3EC;
    --section-bg-5: #E9E0D4;

    /* Tipografia */
    --font-heading: 'Lora', serif; /* Elegante e naturale */
    --font-body: 'Montserrat', sans-serif; /* Pulito e moderno */
    --font-size-base: 1.125rem; /* 18px */
    --line-height-body: 1.75;

    /* Spaziatura */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    --spacing-2xl: 6rem;

    /* Bordi e ombre */
    --border-radius-soft: 8px;
    --border-radius-btn: 5px;
    --shadow-subtle: 0 4px 10px rgba(0, 0, 0, 0.05); /* Ombra morbida */
    --shadow-deep: 0 8px 20px rgba(0, 0, 0, 0.1); /* Ombra più pronunciata */
    --texture-wood: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><g fill="%236C584C" opacity="0.1"><rect x="0" y="0" width="100" height="100"/><path d="M50 0c-27.614 0-50 22.386-50 50s22.386 50 50 50 50-22.386 50-50S77.614 0 50 0zm0 90c-22.091 0-40-17.909-40-40s17.909-40 40-40 40 17.909 40 40-17.909 40-40 40z"/></g></svg>'); /* Texture legno leggera */
}

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height-body);
    color: var(--color-text-dark);
    background-color: var(--color-background);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem; /* 56px */
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-secondary); /* Accentua il titolo principale */
}

h2 {
    font-size: 2.8rem; /* 44.8px */
    font-weight: 600;
    color: var(--color-primary);
}

h3 {
    font-size: 2.2rem; /* 35.2px */
    font-weight: 600;
}

h4 {
    font-size: 1.8rem; /* 28.8px */
    font-weight: 500;
}

p {
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-body);
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Bottoni */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-btn);
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-subtle);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--color-button);
    color: var(--color-text-light);
    border: 1px solid var(--color-button);
}

.btn-primary:hover {
    background-color: var(--color-hover-darken);
    border-color: var(--color-hover-darken);
    transform: translateY(-2px);
    box-shadow: var(--shadow-deep);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-secondary);
    border: 1px solid var(--color-secondary);
    padding: calc(var(--spacing-sm) - 1px) calc(var(--spacing-md) - 1px);
}

.btn-secondary:hover {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-subtle);
}

/* Sezioni con sfondi vari */
.section-bg-1 {
    background-color: var(--section-bg-1);
}

.section-bg-2 {
    background-color: var(--section-bg-2);
}

.section-bg-3 {
    background-color: var(--section-bg-3);
}

.section-bg-4 {
    background-color: var(--section-bg-4);
}

.section-bg-5 {
    background-color: var(--section-bg-5);
}

/* Card */
.card {
    background-color: white;
    border-radius: var(--border-radius-soft);
    box-shadow: var(--shadow-subtle);
    padding: var(--spacing-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Per contenere eventuali bordi interni o immagini */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-deep);
}

/* Form elements */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    border: 1px solid #ccc;
    border-radius: var(--border-radius-btn);
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    color: var(--color-text-dark);
    background-color: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: var(--color-secondary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(162, 103, 45, 0.2);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Utilità di spaziatura (se non gestite completamente da Tailwind) */
.mb-lg { margin-bottom: var(--spacing-lg); }
.mt-lg { margin-top: var(--spacing-lg); }
.py-xl { padding-top: var(--spacing-xl); padding-bottom: var(--spacing-xl); }

/* Footer */
.footer {
    background-color: var(--color-footer-bg);
    color: var(--color-text-light);
    padding: var(--spacing-xl) var(--spacing-lg);
    text-align: center;
    border-top: 5px solid var(--color-primary); /* Bordo superiore per separazione */
}

.footer a {
    color: var(--color-text-light);
    text-decoration: underline;
}

.footer a:hover {
    color: var(--color-secondary);
}

/* Elementi naturali/terrosi */
.texture-overlay {
    background-image: var(--texture-wood);
    background-repeat: repeat;
    opacity: 0.05;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Media Queries per la responsività */
@media (max-width: 768px) {
    :root {
        --font-size-base: 1rem; /* 16px */
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
        --spacing-2xl: 4rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.6rem;
    }

    .btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    .card {
        padding: var(--spacing-md);
    }
}

/* Animazioni sottili */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Stili specifici per il tema "Naturale e Raffinato" */
.container-wood-texture {
    position: relative;
    overflow: hidden;
}

.container-wood-texture::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><g fill="%236C584C" opacity="0.03"><rect x="0" y="0" width="100" height="100"/><path d="M50 0c-27.614 0-50 22.386-50 50s22.386 50 50 50 50-22.386 50-50S77.614 0 50 0zm0 90c-22.091 0-40-17.909-40-40s17.909-40 40-40 40 17.909 40 40-17.909 40-40 40z"/></g></svg>'); /* Texture legno leggera */
    background-size: 100px 100px;
    pointer-events: none;
    z-index: 0;
}

/* Stili per le icone o dettagli verdi */
.icon-natural {
    color: var(--color-accent-green);
    font-size: 1.5em; /* Esempio, usa classi per dimensionare */
}

/* Per un tocco di "moderno e minimalista" */
.shadow-minimal {
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.03);
}

.border-subtle {
    border: 1px solid rgba(0, 0, 0, 0.08);
}


/* Cookie Banner Additional Styles for Tailwind */
.cookie-banner-hover-effect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner-hover-effect:hover {
        transform: none;
    }
}