/* Variabili colori */
:root {
    --primary: #00bfae;          /* verde acqua */
    --accent: #008f7a;
    --dark: #1a1a1a;
    --light: #f9f9f9;
    --transition: 0.3s ease;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    --logo-height: 100px;
    --border-radius: 8px;
    --box-shadow-light: 0 2px 10px rgba(0, 0, 0, 0.05);
    --box-shadow-strong: 0 10px 20px rgba(0, 191, 174, 0.15);
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.header {
    background-color: #fff;
    box-shadow: var(--box-shadow-light);
    position: sticky;
    top: 0;
    z-index: 999;
    padding-bottom: 10px;
}

.logo-container {
    display: flex;
    justify-content: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    width: 100%;
}

.logo-img {
    height: var(--logo-height);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.logo-img:hover {
    transform: scale(1.1);
}

/* Navigazione */
.nav {
    max-width: 1200px;
    margin: 0 auto;
}

.nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    padding: 10px 0;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Sezione Contacts */
.contacts-section {
    padding: 80px 0 100px;
    background: linear-gradient(135deg, #e0f7f5, #ffffff);
    text-align: center;
}

.section-title {
    font-family: var(--font-secondary);
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--primary);
    animation: fadeInUp 1s ease forwards;
}

.contacts-description {
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.2rem;
    color: #333;
    animation: fadeInUp 1.2s ease forwards;
    opacity: 0;
    animation-fill-mode: forwards;
    animation-delay: 0.2s;
}

.contacts-grid {
    display: flex;
    flex-direction: column;
    align-items: center;        /* centra orizzontalmente */
    justify-content: center;     /* centra verticalmente se altezza è definita */
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1.5s ease forwards;
    animation-delay: 0.4s;
}



.contact-info h3 {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.contact-info ul {
    list-style: none;
    padding-left: 0;
    color: var(--dark);
    font-size: 1rem;
    margin-bottom: 25px;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info li i {
    color: var(--primary);
    margin-right: 12px;
    min-width: 20px;
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    color: var(--dark);
    font-size: 1.4rem;
    transition: background-color var(--transition), transform var(--transition), color var(--transition);
    cursor: pointer;
}

.social-icon:hover {
    background-color: var(--primary);
    color: #fff;
    transform: translateY(-5px);
}

/* Form di contatto */
.contact-form {
    background-color: #fff;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: var(--box-shadow-strong);
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 20px;
    border: 1.5px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: border-color var(--transition);
}

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

.contact-form button {
    background-color: var(--primary);
    color: #fff;
    font-weight: 700;
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color var(--transition);
    display: block;
    margin: 20px auto 0;
    width: auto;
}

.contact-form button:hover {
    background-color: var(--accent);
}

/* Sezione Richiesta Ordine */
.order-section .section-title {
    margin-top: 60px;
}

.order-form-sections {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.order-category h3 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.order-category label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.order-category input[type="number"],
.order-category input[type="text"],
.order-category input[type="date"],
.order-category textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 20px;
    border: 1.5px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: border-color var(--transition);
}

.order-category input:focus,
.order-category textarea:focus {
    border-color: var(--primary);
    outline: none;
}

/* Responsive */
@media (max-width: 768px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-info ul {
        text-align: center;
        padding: 0;
    }

    .contact-info li {
        justify-content: center;
    }

    .contact-form {
        box-shadow: none;
        padding: 0;
    }
}

/* Animazioni */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Transizione pagine */
body.page-transition {
    opacity: 1;
    transition: opacity 0.5s ease;
}

body.fade-out {
    opacity: 0;
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: #fff;
    padding: 60px 0 0;
    text-align: left;
}

.footer .container {
    text-align: left;
}

.footer * {
    text-align: left;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.footer-logo .logo-highlight {
    color: var(--primary);
}

.footer ul {
    list-style: none;
}

.footer li {
    margin-bottom: 10px;
}

.footer li i {
    margin-right: 10px;
    color: var(--primary);
}

/* Hero scroll */
.hero-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    font-weight: 500;
    font-size: 1.1rem;
}

.scroll-icon {
    margin-top: 10px;
    width: 24px;
    height: 24px;
    border: 2px solid #11633d;
    border-radius: 50%;
    animation: scrollAnimation 2s infinite;
}

@keyframes scrollAnimation {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(10px);
        opacity: 0.5;
    }
}

/* Newsletter */
.newsletter {
    display: flex;
    margin-top: 20px;
}

.newsletter input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-family: inherit;
}

.newsletter button {
    padding: 10px 15px;
    background-color: var(--primary);
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter button:hover {
    background-color: var(--accent);
}

/* Legal links */
.legal-links {
    margin-top: 10px;
}

.legal-links a {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.legal-links a:hover {
    color: var(--primary);
}

/* Responsive additions */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .hamburger {
        display: flex;
    }
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
    }
    .nav.active {
        right: 0;
    }
    .nav ul {
        flex-direction: column;
        padding: 100px 30px;
    }
    .nav li {
        margin: 15px 0;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .section {
        padding: 70px 0;
    }
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .cta-button {
        padding: 12px 25px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .newsletter {
        flex-direction: column;
    }
    .newsletter input {
        border-radius: 4px;
        margin-bottom: 5px;
    }
    .newsletter button {
        border-radius: 4px;
    }
}

/* Producer logo */
.producer-logo {
    max-height: 60px;
    max-width: 60px;
    width: auto;
    height: auto;
    display: inline-block;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.producer-logo:hover {
    transform: scale(1.1);
}

/* Thank you section */
.thank-you-section {
    background-color: #f7f7f7;
    padding: 100px 20px;
    text-align: center;
}

.thank-you-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff;
    padding: 60px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.thank-you-wrapper h1 {
    color: #1d1d1d;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.thank-you-wrapper p {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 40px;
}

.thank-you-button {
    display: inline-block;
    background-color: var(--primary);
    color: #fff;
    text-decoration: none;
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.thank-you-button:hover {
    background-color: #009c91;
}
