@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Montserrat:wght@700&display=swap');

/* --- RESET BASE --- */
:root {
    --primary-color: #1a3b3b;
    /* Deep slate teal */
    --accent-color: #266464;
    /* Brand teal logo color */
    --bg-color: #ffffff;
    --text-color: #4a5555;
    --light-gray: #f0f6f6;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--bg-color);
    font-weight: 300;
    overflow-x: clip;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow-wrap: break-word;
}

/* --- HEADER & NAV --- */
.main-header {
    background: rgba(255, 255, 255, 0.98);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #eaeaea;
    backdrop-filter: blur(10px);
    transition: box-shadow 0.3s ease-in-out;
}

.main-header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: auto;
    padding: 1.2rem 20px;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* Menu Mobile (Default) */
.nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
    padding: 3rem 20px;
    text-align: center;
    list-style: none;
    gap: 2rem;
}

.nav-links.active {
    display: flex;
}

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 2rem;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active-link {
    color: var(--accent-color);
}

.nav-links a.btn {
    color: #fff;
    font-size: 1.1rem;
    padding: 14px 35px;
}

.nav-links a.btn:hover {
    color: #fff;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-right .desktop-btn {
    display: none;
}

.mobile-only-link {
    display: block;
    margin-top: 1rem;
}

.hamburger {
    display: block;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    margin: 6px 0;
    transition: 0.3s;
}

/* --- SEZIONI GENERICHE --- */
section {
    padding: 4rem 20px;
}

.section-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 15px;
}

section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    line-height: 1.2;
}

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

.subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
}

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

/* --- HERO SECTION --- */
.hero-section {
    background: linear-gradient(rgba(10, 23, 42, 0.6), rgba(10, 23, 42, 0.8)), url('../fresco.jpg') center/cover no-repeat;
    padding: 8rem 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    letter-spacing: 1px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}

/* --- BOTTONI --- */
.btn {
    display: inline-block;
    padding: 14px 35px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    cursor: pointer;
    border: none;
    border-radius: 4px;
}

.btn-primary {
    background: var(--accent-color);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* --- ABOUT SECTION --- */
.about-section {
    background: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.about-text h2 {
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* --- STATS GRID --- */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
    border-top: 1px solid #eaeaea;
    padding-top: 4rem;
}

.stat-item h4 {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-item p {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* --- FEATURES SECTION --- */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.feature-box {
    text-align: center;
    padding: 1rem;
}

.feature-box i {
    color: var(--accent-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-box h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* --- SERVICES SECTION --- */
.services-section {
    background: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    position: relative;
    overflow: hidden;
    background: var(--primary-color);
    color: #fff;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* --- CTA SECTION --- */
.cta-section {
    background-color: var(--accent-color);
    padding: 6rem 20px;
    position: relative;
    overflow: hidden;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.cta-content {
    color: #fff;
    text-align: left;
}

.cta-content h2 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.cta-description {
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
}

.cta-graphic img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    display: block;
}

.btn-cta {
    background: #fff;
    color: var(--accent-color);
    display: inline-block;
    padding: 14px 35px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-cta:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* --- FAQ ACCORDION --- */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid #eaeaea;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #fcfcfc;
}

.faq-question h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
}

.faq-question i {
    color: var(--accent-color);
    transition: transform 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fff;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    color: var(--text-color);
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* --- CONTACT SECTION --- */
.contact-section {
    background: var(--bg-color);
    text-align: center;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

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

.form-group label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: #fcfcfc;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(211, 84, 0, 0.1);
}

/* --- ALERTS (Feedback email) --- */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    text-align: left;
    border-left: 4px solid;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- FOOTER --- */
.main-footer {
    background: var(--primary-color);
    color: #fff;
    padding: 5rem 20px 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.footer-info h3 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-info p {
    color: #aaa;
    font-size: 0.95rem;
    max-width: 400px;
    margin: auto;
}

.footer-copy {
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.85rem;
    color: #777;
}

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    color: #fff;
    padding: 1.5rem 20px;
    z-index: 9999;
    transition: bottom 0.5s ease-in-out;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.cookie-text a {
    color: var(--accent-color);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-text a:hover {
    color: #fff;
}

.cookie-buttons .btn {
    padding: 10px 25px;
    white-space: nowrap;
}

/* --- POLICY PAGES --- */
.policy-section {
    padding-top: 6rem;
    min-height: 70vh;
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.policy-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.policy-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.policy-content p {
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .cookie-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .policy-content {
        padding: 2rem 1.5rem;
    }
}

/* --- DESKTOP (Grid e Layout estesi) --- */
@media (min-width: 768px) {
    section {
        padding: 7rem 20px;
    }

    section h2 {
        font-size: 2.5rem;
    }

    .hero-content h1 {
        font-size: 4.5rem;
    }

    .header-right .desktop-btn {
        display: inline-block;
        padding: 12px 25px;
    }

    .mobile-only-link {
        display: none;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        flex: 1;
        justify-content: center;
        position: static;
        height: auto;
        background: transparent;
        padding: 0;
        gap: 2.5rem;
        align-items: center;
    }

    .nav-links a {
        font-size: 1rem;
        font-family: 'Inter', sans-serif;
        text-transform: uppercase;
        font-weight: 500;
        letter-spacing: 1px;
    }

    .hamburger {
        display: none;
    }

    .hero-content p {
        font-size: 1.3rem;
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cta-grid {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
}

/* --- LOGO IMAGE STYLES --- */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 90px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

/* --- FLOATING WHATSAPP BUTTON --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    /* Official WhatsApp green */
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    background-color: #20ba5a;
    color: #fff;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }

    .logo-img {
        height: 70px;
    }
}

/* --- PRODUCTS SECTION --- */
    .products-section {
        background-color: var(--bg-color);
    }

    .products-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-top: 3rem;
    }

    .product-card {
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        transition: all 0.4s ease;
        border: 1px solid #eaeaea;
        display: flex;
        flex-direction: column;
    }

    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(38, 100, 100, 0.1);
        border-color: rgba(38, 100, 100, 0.2);
    }

    .product-image {
        position: relative;
        height: 240px;
        overflow: hidden;
        background-color: var(--light-gray);
    }

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
    }

    .product-card:hover .product-image img {
        transform: scale(1.08);
    }

    .product-badge {
        position: absolute;
        top: 15px;
        left: 15px;
        background: var(--accent-color);
        color: #fff;
        padding: 6px 12px;
        font-size: 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
        border-radius: 4px;
        letter-spacing: 1px;
    }

    .product-info {
        padding: 2rem;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .product-info h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
        color: var(--primary-color);
        text-transform: none;
        letter-spacing: normal;
    }

    .product-info p {
        font-size: 0.95rem;
        color: var(--text-color);
        line-height: 1.6;
        margin-bottom: 1.5rem;
        flex-grow: 1;
    }

    .product-info .btn {
        align-self: flex-start;
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    @media (min-width: 576px) {
        .products-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (min-width: 992px) {
        .products-grid {
            grid-template-columns: repeat(4, 1fr);
            gap: 2rem;
        }
    }

    /* --- CONTACT GRID DESIGN --- */
    .contact-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-top: 3rem;
        text-align: left;
    }

    .contact-info-col {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 1.5rem;
    }

    .contact-info-card {
        background: #fff;
        padding: 1.5rem;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
        border: 1px solid #eaeaea;
        display: flex;
        gap: 1.2rem;
        align-items: center;
    }

    .contact-info-card i {
        font-size: 1.5rem;
        color: var(--accent-color);
        background: var(--light-gray);
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        flex-shrink: 0;
    }

    .contact-info-text h4 {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
        color: var(--primary-color);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .contact-info-text p,
    .contact-info-text a {
        font-size: 0.95rem;
        color: var(--text-color);
        text-decoration: none;
        line-height: 1.5;
        margin: 0;
    }

    .contact-info-text a:hover {
        color: var(--accent-color);
    }

    @media (min-width: 992px) {
        .contact-grid {
            grid-template-columns: 1fr 1.2fr;
            align-items: start;
        }

        .contact-section .form-container {
            margin: 0;
            max-width: 100%;
        }
    }