:root {
    /* Colori */
    --color-primary: #2C7A7B;
    --color-secondary: #F6AD55;
    --color-background: #FDFCEB;
    --color-footer-bg: #256D6E;
    --color-text-dark: #333333;
    --color-text-light: #FFFFFF;
    --color-accent-hover: #E0A04C; /* Leggermente più scuro di secondary */
    --color-button-bg: var(--color-secondary);
    --color-button-text: var(--color-text-dark);

    /* Palette sezioni */
    --section-bg-1: #FDFCEB;
    --section-bg-2: #FEF3C7;
    --section-bg-3: #E0E7FF;
    --section-bg-4: #FCF0B9;
    --section-bg-5: #D1FAE5;

    /* Font */
    --font-family-primary: 'Montserrat', sans-serif;
    --font-family-secondary: 'Lora', serif;

    /* Spaziatura e dimensioni */
    --spacing-unit: 1rem; /* 16px */
    --border-radius-base: 1rem; /* 16px */
    --border-radius-lg: 1.5rem; /* 24px */
    --box-shadow-soft: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    --box-shadow-clay-light: 0 0.8rem 1.2rem rgba(0, 0, 0, 0.05), inset 0 -0.2rem 0.4rem rgba(0, 0, 0, 0.02);
    --box-shadow-clay-medium: 0 1rem 1.5rem rgba(0, 0, 0, 0.08), inset 0 -0.3rem 0.6rem rgba(0, 0, 0, 0.04);
}

/* Stili base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-primary);
    color: var(--color-text-dark);
    line-height: 1.7;
    background-color: var(--color-background);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Previene scroll orizzontale */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-secondary);
    color: var(--color-primary);
    margin-top: 2em;
    margin-bottom: 0.8em;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; font-weight: 700; }
h2 { font-size: 2.8rem; font-weight: 700; }
h3 { font-size: 2.2rem; font-weight: 600; }
h4 { font-size: 1.8rem; font-weight: 600; }
h5 { font-size: 1.4rem; font-weight: 500; }
h6 { font-size: 1.1rem; font-weight: 500; }

p {
    margin-bottom: 1.5em;
    font-size: 1.1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(253, 252, 235, 0.8); /* Semi-trasparente */
    backdrop-filter: blur(8px);
    z-index: 1000;
    padding: 1.5rem 0;
    display: flex;
    justify-content: center; /* Logo centrato */
    align-items: center;
    transition: background-color 0.3s ease, padding 0.3s ease;
    box-shadow: var(--box-shadow-soft);
}

.header.scrolled {
    background-color: rgba(253, 252, 235, 0.95); /* Si scurisce allo scroll */
    padding: 1rem 0;
    box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.15);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
}

.header .logo {
    flex-grow: 1; /* Permette al logo di occupare spazio */
    text-align: center; /* Centra il logo */
}

.header .logo img {
    height: 40px; /* Dimensione del logo */
    transition: height 0.3s ease;
}

.header.scrolled .logo img {
    height: 30px;
}

.header .nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem; /* Spaziatura tra gli elementi del menu */
}

.header .nav-menu li a {
    font-family: var(--font-family-primary);
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 0.3rem;
}

.header .nav-menu li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
}

.header .nav-menu li a:hover::after {
    width: 100%;
}

/* Bottoni */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius-base);
    font-family: var(--font-family-primary);
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow-clay-medium); /* Effetto claymorphism */
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    box-shadow: 0 0.8rem 1.2rem rgba(44, 122, 123, 0.2), inset 0 -0.2rem 0.4rem rgba(0, 0, 0, 0.05); /* Ombra più scura per primary */
}

.btn-primary:hover {
    background-color: #256D6E; /* Leggermente più scuro */
    transform: translateY(-3px);
    box-shadow: 0 1.2rem 1.8rem rgba(44, 122, 123, 0.3), inset 0 -0.3rem 0.6rem rgba(0, 0, 0, 0.07);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 0.4rem 0.8rem rgba(44, 122, 123, 0.15), inset 0 0.1rem 0.2rem rgba(0, 0, 0, 0.03);
}

.btn-secondary {
    background-color: var(--color-button-bg);
    color: var(--color-button-text);
    box-shadow: 0 0.8rem 1.2rem rgba(246, 173, 85, 0.2), inset 0 -0.2rem 0.4rem rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 1.2rem 1.8rem rgba(246, 173, 85, 0.3), inset 0 -0.3rem 0.6rem rgba(0, 0, 0, 0.07);
}

.btn-secondary:active {
    transform: translateY(1px);
    box-shadow: 0 0.4rem 0.8rem rgba(246, 173, 85, 0.15), inset 0 0.1rem 0.2rem rgba(0, 0, 0, 0.03);
}

/* Contenitori e layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.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: #FFFFFF;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--box-shadow-clay-light); /* Ombra morbida per profondità */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-clay-medium);
}

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-primary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: var(--border-radius-base);
    background-color: #FFFFFF;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04); /* Inset shadow per profondità */
    font-family: var(--font-family-primary);
    font-size: 1rem;
    color: var(--color-text-dark);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08), 0 0 0 3px rgba(44, 122, 123, 0.2); /* Focus con anello */
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
.footer {
    background-color: var(--color-footer-bg);
    color: var(--color-text-light);
    padding: 4rem 0;
    font-size: 0.95rem;
}

.footer h3 {
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.8rem;
}

.footer ul li a {
    color: var(--color-text-light);
    opacity: 0.8;
}

.footer ul li a:hover {
    color: var(--color-secondary);
    opacity: 1;
    text-decoration: underline;
}

.footer .social-icons a {
    display: inline-block;
    color: var(--color-text-light);
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

.footer .social-icons a:hover {
    color: var(--color-secondary);
}

.footer .contact-info p {
    margin-bottom: 0.5rem;
}

/* Utilities (se necessario per classi specifiche non coperte da Tailwind) */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

/* Media Queries */
@media (max-width: 1024px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.4rem; }
    h3 { font-size: 1.9rem; }

    .header .nav-menu {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.6rem; }
    p { font-size: 1rem; }

    section {
        padding: 4rem 0;
    }

    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .header .logo {
        margin-bottom: 1rem;
    }

    .header .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .header .logo img {
        height: 35px;
    }
    .header.scrolled .logo img {
        height: 28px;
    }

    .btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }

    .footer .col {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    h3 { font-size: 1.4rem; }

    section {
        padding: 3rem 0;
    }

    .header {
        padding: 0.8rem 0;
    }
    .header.scrolled {
        padding: 0.5rem 0;
    }

    .header .logo img {
        height: 30px;
    }
    .header.scrolled .logo img {
        height: 25px;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}


/* 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;
    }
}