
/* RESET & VARIABLES */
:root {
    --primary: #1f8a44; /* Verde Logo */
    --primary-dark: #156631;
    --accent: #d12626;  /* Rosso Scritte */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f3f4f6;
    --bg-white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.padding-y { padding: 5rem 0; }
.bg-light { background-color: var(--bg-light); }

/* HEADER & NAVIGATION */
.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo-img {
    height: 70px;
    display: block;
    mix-blend-mode: multiply; /* Helps blend the paper background of the logo with the white header */
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary);
}

.btn-contact {
    background-color: var(--primary);
    color: white !important;
    padding: 10px 24px;
    border-radius: 30px;
}

.btn-contact::after { display: none; }
.btn-contact:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: white;
    border-color: white;
}
.btn-outline:hover {
    background-color: white;
    color: var(--text-dark);
    transform: translateY(-3px);
}

.btn-block { display: block; width: 100%; text-align: center; }

/* HERO SECTION */
.hero {
    height: 80vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: white;
}

.hero-content { max-width: 800px; }
.hero-subtitle {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    background: white;
    padding: 5px 15px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.hero h1 { font-size: 3.5rem; margin-bottom: 1.5rem; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.hero p { font-size: 1.25rem; margin-bottom: 2.5rem; opacity: 0.9; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* SECTION TITLES */
.section-title h2 { font-size: 2.5rem; color: var(--text-dark); }
.section-title .subtitle { color: var(--text-light); font-size: 1.1rem; max-width: 600px; margin: 1rem auto 0; }
.divider {
    height: 4px;
    width: 60px;
    background-color: var(--primary);
    margin: 1rem auto 2rem;
    border-radius: 2px;
}
.divider.align-left { margin-left: 0; }

/* FEATURES (HOME) */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--primary);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card p { color: var(--text-light); }

/* PAGE HEADERS */
.page-header {
    padding: 6rem 0;
    background-size: cover;
    background-position: center;
    color: white;
}
.page-header h1 { font-size: 3rem; margin-bottom: 0.5rem; }
.page-header p { font-size: 1.2rem; opacity: 0.9; }

/* SERVICES PAGE */
.services-grid { display: flex; flex-direction: column; gap: 4rem; margin-top: 3rem; }
.service-box {
    display: flex;
    align-items: center;
    gap: 4rem;
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.service-box.reverse { flex-direction: row-reverse; }
.service-box img { width: 50%; height: 400px; object-fit: cover; }
.service-content { width: 50%; padding: 3rem; }
.service-content h3 { font-size: 2rem; color: var(--primary-dark); display: flex; align-items: center; gap: 10px;}
.service-content p { font-size: 1.1rem; color: var(--text-light); }

/* CERTIFICATIONS */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.cert-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    border-left: 5px solid var(--accent);
}
.cert-badge {
    background-color: var(--primary);
    color: white;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}
.cert-badge span { font-size: 0.9rem; font-weight: 600; opacity: 0.9; }
.cert-card p { color: var(--text-light); font-size: 0.95rem; }

/* CONTACT PAGE */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}
.contact-info-panel h2, .contact-form-panel h2 { margin-bottom: 1.5rem; }
.contact-info-panel > p { color: var(--text-light); margin-bottom: 2.5rem; }

.info-item { display: flex; gap: 1.5rem; margin-bottom: 2rem; }
.info-item .icon {
    width: 50px; height: 50px;
    background: #e6f4ea;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.info-item h4 { margin-bottom: 0.2rem; font-size: 1.1rem; }
.info-item p { color: var(--text-light); }
.info-item a { color: var(--text-light); }
.info-item a:hover { color: var(--primary); }

.modern-form {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 15px;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 0.9rem;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: var(--font-body);
    transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(31, 138, 68, 0.2);
}

/* FOOTER */
.footer { background-color: #111827; color: #9ca3af; padding-top: 4rem; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo p { margin-top: 1rem; max-width: 300px; }
.footer h3 { color: white; font-size: 1.2rem; margin-bottom: 1.5rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: #9ca3af; }
.footer-links a:hover { color: white; padding-left: 5px; }
.footer-contact p { margin-bottom: 1rem; display: flex; gap: 10px; align-items: center; }
.footer-contact i { color: var(--primary); width: 20px; }
.footer-bottom { background-color: #030712; padding: 1.5rem 0; text-align: center; font-size: 0.9rem; }

/* COOKIE BANNER (GDPR) */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    flex-wrap: wrap;
    gap: 1rem;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-banner.show {
    transform: translateY(0);
}
.cookie-content {
    flex: 1;
    min-width: 300px;
}
.cookie-content p {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}
.cookie-content a {
    text-decoration: underline;
    color: var(--primary);
}
.cookie-buttons {
    display: flex;
    gap: 1rem;
}
.btn-cookie {
    padding: 10px 20px;
    font-size: 0.85rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    font-family: var(--font-heading);
    transition: var(--transition);
}
.btn-accept {
    background-color: var(--primary);
    color: white;
    border: none;
}
.btn-accept:hover { background-color: var(--primary-dark); }
.btn-reject {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid #ccc;
}
.btn-reject:hover { background-color: #f4f4f4; }

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .contact-wrapper, .service-box, .service-box.reverse { grid-template-columns: 1fr; flex-direction: column; }
    .service-box img, .service-content { width: 100%; }
    .service-box img { height: 300px; }
    .footer-content { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.8rem; }
}
@media (max-width: 768px) {
    .nav-list { display: none; }
    .hero { height: auto; padding: 6rem 0; }
    .cookie-banner { flex-direction: column; align-items: flex-start; }
    .cookie-buttons { width: 100%; justify-content: space-between; }
    .btn-cookie { flex: 1; text-align: center; }
}
