/* Design Tokens */
:root {
    /* Colors extracted from images */
    --color-primary: #412214; /* Deep Brown Background */
    --color-accent: #f28c00;  /* Orange/Gold text highlight */
    --color-light-bg: #E8EBE0; /* Sage/Beige light background */
    --color-text-main: #2D241E;
    --color-text-light: #FDFDFD;
    
    --font-main: 'Manrope', sans-serif;
    
    --spacing-sm: 1rem;
    --spacing-md: 6rem;
    --spacing-lg: 8rem;
    --spacing-xl: 12rem;
    
    --border-radius: 2px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    line-height: 1.4;
    background-color: var(--color-text-light);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 500;
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

h4 {
    font-size: 1.4rem;
}


p {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.logo img {
    width: 250px;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 4rem 0;
}

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

.bg-dark {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.text-light {
    color: var(--color-text-light);
}

.highlight {
    color: var(--color-accent);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9rem 1.6rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
    font-size: 1.1rem;
}

.btn-outline {
        background-color: transparent;
    color: #fff;
    font-size: 1.1rem;
    border: 1px solid #fff;
}

.btn-primary:hover {
    background-color: #D35400; /* Darker Orange */
    transform: translateY(-2px);
}

.btn-outline:hover {
    background-color: #D35400; /* Darker Orange */
    border: 1px solid #D35400;
    transform: translateY(-2px);
}

.full-width {
    width: 100%;
    text-align: center;
}

/* Navbar */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 10;
}

nav.navbar {
        background: linear-gradient(0deg, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, 0.8) 160%);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* Responsive Adjustments */
@media (min-width: 1450px) {
    .navbar .container {
        max-width: 1800px;
    }
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white; /* Assuming on dark hero */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-sub {
    font-weight: 300;
    opacity: 0.9;
}

.navbar .btn-outline {
  /* Colore di sfondo semi-trasparente (fondamentale!) */
  background-color: rgba(255, 255, 255, 0.1); 
  /* L'effetto di sfocatura */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Supporto per Safari */
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: flex-end;
    background-color: var(--color-primary);
    color: white;
    overflow: hidden;
    padding-bottom: 7rem;
}

/* For now, using a gradient to simulate the image until we have one */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(236deg, rgba(65, 34, 19, 0) 34%, rgb(0 0 0 / 58%) 80%), url(assets/hero.jpg) no-repeat center center / cover;
    background-position:top;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}
/* Responsive Adjustments */
@media (min-width: 1450px) {
    .hero-content {
        max-width: 1800px;
    }
}

.hero-text {
    max-width: 600px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero .lead {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* About Section */
.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.visual-card {
    background: var(--color-primary);
    padding: 2rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    color: white;
}

ul.lista-pacchetto {
    list-style: disc !important;
    padding-left: 20px;
}

.lista-pacchetto li {
        margin-bottom: 1rem;
    font-size: 1.2rem;
}








/* Solutions Section */


.solution-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.section-header {
    text-align: center;
        margin-bottom: 5rem;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}


.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card-image {
    height: 280px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

.placeholder-img-1 {
    background-image: url("assets/heliogea-100i.jpg"); /* Solar panels field */
}

.placeholder-img-2 {
    background-image: url("assets/heliogea-100s.jpg"); /* Wheat field / nature */
}

.card-content {
    padding: 2rem;
}

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

.card-content ul {
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.card-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-content hr {
    opacity: 0.3;
}

.card-content h3 {
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.icon-leaf {
    color: var(--color-accent);
    font-size: 0.8em;
}

.subtitle {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 1.5rem;
}

.card-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--color-accent);
}

.card-content ul li::before {
    content: url(assets/point-2.svg);
    position: absolute;
    left: 0;
      width: 14px;
  height: 14px;
    color: var(--color-accent);
}


.icon-leaf {
      content: url(assets/point.svg);
  width: 20px;
  height: 20px;
}


/* --- AGGIUNTA: Blocco Visual Card New --- */
.visual-card-new {
    background-color: var(--color-primary);
    color: white;
    padding: 3rem;
    border-radius: 4px;
}
.card-intro { opacity: 0.9; font-size: 1.3rem; margin-bottom: 3rem; }
.icon-list { display: flex; flex-direction: column; gap: 1.2rem; }
.icon-list li { display: flex; align-items: center; gap: 1rem; font-weight: 500; }
.icon-circle {
    width: 32px; height: 32px;
    background-color: rgba(242, 140, 0, 0.2);
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
        flex-shrink: 0;
}
.check-icon { color: var(--color-accent); width: 20px; height: 20px; }
.card-footer { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); }
.card-footer p { font-size: 1.1rem; line-height: 1.4; }



.about .grid-2 {
    align-items: center !important;
}

section.about.section-padding {
    padding-top: 2rem;
}




/* Contact Section */
.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    color: var(--color-text-main);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input {
    width: auto;
}

p.lead.text-light {
    margin-bottom: 2rem !important;
}

.container hr {
    opacity: 0.1;
}


/* --- Contact Section (Modern Design) --- */
.contact-cards-wrapper { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.contact-cards-wrapper p {margin-bottom: 0rem;}
.contact-mini-card { display: flex; align-items: center; gap: 1.2rem; }
.mini-card-icon { width: 45px; height: 45px; background: rgba(242, 140, 0, 0.15); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: var(--color-accent); }
.contact-form-container { background: #f3f3f3; padding: 2.5rem; border-radius: 4px; color: var(--color-text-main); }
.contact-form-modern input { background: #e8e8e8 !important;}
.contact-form-modern .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 0.5rem; background: #f3f3f3 !important; }
.contact-form-modern input, .contact-form-modern textarea { width: 100%; background: #e5e5e5 !important; border: 1px solid transparent; border-radius: 4px; padding: 1rem; font-family: inherit; }
.btn-submit { width: 100%; background-color: #E5A858; color: white; border: none; font-size: 1.2rem; padding: 1.1rem; border-radius: 4px; font-weight: 500; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.btn-submit:hover { background-color: #d49545; }
.privacy-note { text-align: center; font-size: 0.8rem; margin-top: 1.5rem; opacity: 0.5; }


.last-info p {font-size:0.9rem; color: #fff;}

.logo-mb {
    display: none !important;
}

/* Footer */
footer {
    background-color: #412214; /* Darker than primary */
    color: #888;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
}


/* Banner Newsletter Staccato */
.newsletter-box-detached {
    margin-top: 2rem; /* Crea lo stacco dal form */
    background-color: #E8EBE0; /* Colore chiaro coordinato (Sage/Beige) */
    padding: 2rem;
    border-radius: 4px;
    text-align: center;
    border: 1px solid rgba(65, 34, 20, 0.1);
    animation: fadeInUp 1s ease-out;
}

.newsletter-box-detached p {
    color: #412214; /* Marrone Heliogea */
    font-weight: 500;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.newsletter-box-detached .newsletter-link {
    display: inline-block;
    background-color: #412214; /* Sfondo marrone per il link */
    color: #ffffff !important; /* Testo bianco */
    padding: 0.8rem 2rem;
    text-decoration: underline;
    font-weight: 700;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.newsletter-box-detached .newsletter-link:hover {
    background-color: #f28c00; /* Diventa arancio al passaggio */
    color: #ffffff !important;
    transform: translateY(-2px);
}


.newsletter-banner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px 80px 20px;
    margin-top: 6rem;
    border-top: 2px solid rgb(255 255 255 / 10%);
    border-bottom: 2px solid rgb(255 255 255 / 10%);
    text-align: center;
}

a.newsletter-link {
    font-size: 18px;
    text-decoration: underline;
}





/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




/* Responsive Adjustments */
@media (max-width: 768px) {

:root {
    /* Colors extracted from images */
    
    --spacing-sm: 1rem;
    --spacing-md: 3.5rem;
    --spacing-lg: 6rem;
    --spacing-xl: 9rem;
    
    --border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.4rem;
    font-size: 1rem;
}

.hero::before {
    background: linear-gradient(190.82deg, rgba(65, 34, 19, 0) 40.69%, #412213 78%), url(assets/hero-mb.jpg) no-repeat center center / cover;
    background-position:bottom;
}

.logo img {
    width: 180px;
}

.hero {
    height: 95vh;
        align-items: end;
            padding-bottom: 64px;
}



.hero .lead {
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;

}

input {
    font-size: 16px;
}

textarea {
    font-size: 16px;
}



.section-header h2 br {
    display: none;
}



.contact-form-modern .form-row {
    grid-template-columns: none;
}


    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-padding {
        padding: var(--spacing-md) 0;
    }
}