/* -------------------------------
   STILI GLOBALI
   NAVBAR + FOOTER
--------------------------------*/
html {
  overflow-y: scroll; /* per forzare la scrollbar */
}

body {
    background-color: #F7F7F7;
    font-family: "Jost", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300; /* 100 - 900 */
    font-style: normal;
    margin: 0;
    padding: 0;
}

.brown {
    color: #59200A;
}

.light-b {
    background-color: #d9cbb4;
}

.h-100 {
    height: 100%;
}

/* STILI NAVBAR */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    background-color: #E5C184;
    color: #59200A;
    font-weight: 700;
    padding: 0 10%; /* padding 0% in alto e in basso, padding 7% a sinistra e destra*/
}

.nav-buttons {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 0 6%;
    height:100%;
    align-items: center;
}

.nav-buttons li{
    list-style-type: none;
    font-size: 1.3rem;
    padding: 10px 15px;
    border-bottom: 3px solid #F7F7F7;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.nav-buttons li a {
    text-decoration: none;
    color: #59200A; /* colore del testo */
}

.nav-buttons li:hover {
    background-color: #F7F7F7; /* colore di sfondo in hover */
    transform: translateY(-2px); /* leggera elevazione */
}

.on-page {
    background-color: #F7F7F7; /* colore di sfondo in hover */
   
}

/* STILI FOOTER */
footer {
    display: grid;
    grid-template-columns: 3fr 1fr 3fr;
    grid-template-rows: 3fr 1fr;
    height: 30vh;
    gap: 5px;
    background-color: #59200A;
    margin-top: 15vh;
    justify-items: center;
    align-items: center;
    padding: 0 10%;
}

.footer--logo-container {
    grid-area: 2 / 1 / 3 / 2;
}

.footer--links-container {
    grid-area: 1 / 1 / 2 / 4;
    width: 100%;
    height: 100%;
    border-bottom: 2px solid #F7F7F7;
}

.footer--links-container > ul  {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style-type: none;
    padding-left: 0;
    height: 100%;
    margin:0;
}

.footer--links-container li  {
    margin: 10px;
}

.footer--links-container > ul > li > a {
    color:#F7F7F7;
    font-size: 1rem;
    font-weight: 400;
}

.footer--copyright-container {
    grid-area: 2 / 2 / 3 / 3;
}

.footer--copyright-container h5 {
    color:#F7F7F7;
    font-weight: 200;
}

.footer--socials-container {
    grid-area: 2 / 3 / 3 / 4;
}

.fa {
  padding: 20px;
  font-size: 30px;
  width: 50px;
  text-align: center;
  text-decoration: none;
  margin: 5px 2px;
}

.fa:hover {
    opacity: 0.7;
}

.fa-instagram {
  color: #F7F7F7;
}

.fa-linkedin {
    color:#F7F7F7;
}

.fa-facebook {
    color: #F7F7F7;
}


/* -------------------------------
   STILI HOME PAGE index.html
   NAVBAR + FOOTER
--------------------------------*/


.title-section {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 85vh; /* 85% dell'altezza viewport */
  overflow: hidden;
}

.title-video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover; /*fa in modo che il video venga ritagliato in modo che occupi il 100% della larghezza della pagina*/
  z-index: 0;
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /*per "annerire" l'overlay (quindi il video)*/
  z-index: 1;
}

.title-content {
    position: absolute;
    z-index: 2;
    color: #F7F7F7;
    text-align: center;
}

.title-content > h1 {
    font-weight: 800; /* 100 - 900 */
    font-style: normal;
    font-size: 6rem;
    margin: 0;
}

.title-content > h2 {
    font-weight: 700; /* 100 - 900 */
    font-style: normal;
    font-size: 3rem;
}

.title-content > p {
    font-weight: 500; /* 100 - 900 */
    font-style: normal;
    font-size: 1.3rem;
    margin: 0;
}

.title-text {
    display: flex;
    margin: 50px;
    padding: 0 6%;  
}

.title-text--title {
    min-width: 30%;
    font-size: 3rem;
    text-align: center;
}

.title-text--p {
    width: auto;
    padding: 2% 5% 2% 4%;
    font-size: 1.3rem;
    font-weight: 350; /* 100 - 900 */
    border-left: 3px solid #59200A;
}

.title-cards {
    display: grid;
    gap: 1rem;
    height: auto;
    grid-template-columns: 1fr 2fr 0.2fr 2fr 0.2fr 2fr 1fr;
    grid-template-rows: 0.3fr 2fr;
    background-color: #E5C184;
    padding-bottom: 5%;
}

.title-cards--title {
    grid-area: 1/2/2/7;
    justify-items: center;
    text-align: center;
    font-size: 2rem;
}

.card {
    background-color: #d4b06a; 
    border-radius: 1%;
    padding: 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1.5px solid #d4b06a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.first {
    grid-area: 2/2/3/3;
}

.second {
    grid-area: 2/4/3/5;
}

.third {
    grid-area: 2/6/3/7;
}

.card--img {
    width: 100%;
    height: 40%;
    object-fit: cover; /*fa in modo che il video venga ritagliato in modo che occupi il 100% della larghezza della pagina*/
}

.card--title {
    font-size: 1.4em;
    height: 10%;
    margin: 8% 0;
    font-weight: 700; /* 100 - 900 */
    border-bottom: 1px solid #59200A;
}

.card--p {
    height: auto;
    font-size: clamp(1em, 1.3em, 1.3em);
    text-align: center;
    font-weight: 400; /* 100 - 900 */
    margin: 0;
}


/* -------------------------------
   STILI PAGINA DEI DOWNLOAD 
   DEI REPORT reports.html
--------------------------------*/

.reports-main {
    display: grid;
    grid-template-rows: 0.5fr 8fr;
    grid-template-columns: 1fr 3fr;
    height: auto;
    width: 90%;
    gap: 2rem;;
    margin: 5% 5%;
}

.reports-title--container {
    grid-area: 1/2/2/3;
    text-align: center;
    font-size: 1.5rem;
}

.reports-title--container > h1 {
    margin: 0;
}

/* stili SIDEBAR */
.filters-sidebar {
    grid-area: 2/1/3/2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2%;

    background-color: #f7f1e6;     /* Chiaro, in tono con #E5C184 */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.filters-sidebar--title {
    height: 8%;
    width: 100%;
    text-align: center;
}

.filters-sidebar--title > h2{
    margin: 0;
    font-size: 2rem;
}

.year-filter--container {
    height: 20%;
    width: 100%;
    text-align: center;
    background-color: #e9ddc9;
    border-radius: 3%;
}

.year-filter--container > h3 {
    margin-bottom: 3%;
}

/* stili select*/
.year-filter--container > select {
    background-color: #F7F7F7;
    color: #59200A;
    border: 2px solid #d4b06a;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 1rem;
    font-family: "Jost", sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.year-filter--container > select:hover,
.year-filter--container > select:focus {
    border-color: #59200A;
    background-color: #e0c58f;
    outline: none;
}
/* end - stili select*/

/* ----OPPURE----*/
.separator {
    height: 2%;
    display: flex;
    align-items: center;
    width: 100%;              /* assicura che la linea si estenda */
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;                  /* le linee si espandono */
    height: 1px;              /* spessore linea */
    background-color: #59200A;
}

.separator span {
    margin: 0 1rem;           /* spazio attorno alla parola */
    color: #59200A;
    font-weight: bold;
    background-color: #f7f1e6;
    padding: 0 0.5rem;        /* evita che la linea tocchi il testo */
    z-index: 1;
    font-size: 1.5rem;
}
/* end ----OPPURE----*/

.numeric-filters--container {
    height: 70%;
    width: 100%;
    text-align: center;
    background-color: #e9ddc9;
    display: grid;
    grid-template-rows: 1fr 0.5fr 1fr 0.5fr 1fr 0.5fr 1fr 0.5fr 1fr 0.5fr 1fr 1fr;
    grid-template-columns: 2fr 1fr;
    font-size: 0.8rem;
    align-items: center;
    border-radius: 3%;
}

.numeric-filters--container p {
    margin: 0;
}
/* end - stili SIDEBAR */

/* FILTRI AVANZATI SIDEBAR */
.filter-title {
    grid-area: 1/1/2/3;
    font-size: 1.2rem;
}

.center-filter {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/*produzione totale*/
#total-production--title {
    grid-area: 2/1/3/3;
}
#total-production--slider {
    grid-area: 3/1/4/2;
}
#total-production--label {
    grid-area: 3/2/4/3;
}

/*fatturato netto*/
#net-sales--title {
    grid-area: 4/1/5/3;
}
#net-sales--slider {
    grid-area: 5/1/6/2;
}
#net-sales--label {
    grid-area: 5/2/6/3;
}

/*emissioni co2*/
#employees--title {
    grid-area: 6/1/7/3;
}
#employees--slider {
    grid-area: 7/1/8/2;
}
#employees--label {
    grid-area: 7/2/8/3;
}

/*emissioni co2*/
#co2-emissions--title {
    grid-area: 8/1/9/3;
}
#co2-emissions--slider {
    grid-area: 9/1/10/2;
}
#co2-emissions--label {
    grid-area: 9/2/10/3;
}

/*econsumo totale di acqua*/
#water-consumption--title {
    grid-area: 10/1/11/3;
}
#water-consumption--slider {
    grid-area: 11/1/12/2;
}
#water-consumption--label {
    grid-area: 11/2/12/3;
}

.filter-label {
    font-weight: 400;
    font-size: 0.9rem;
}

.filter-value {
    font-weight: 500;
    font-size: 0.75rem;
}

/* Contenitore per i bottoni, per gestire spaziatura */
.filters-actions {
    grid-area: 12/1/13/3;
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    margin: 0.7rem 0;
}

/* Bottoni principali */
.btn {
    padding: 0.75rem 1.5rem;
    /*font-size: 1rem;*/
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    /*min-width: 150px;*/
    border:1px solid #59200A;
}

/* Bottone "Applica filtri" – call-to-action principale */
.btn-apply {
    background-color: #59200A;      /* Marrone scuro */
    color: #F7F7F7;
}
.btn-apply:hover {
    background-color: #7a2f11;      /* Leggermente più chiaro */
    transform: translateY(-2px);
}

/* Bottone "Reset filtri" – secondario */
.btn-reset {
    background-color: #e9ddc9;      /* Beige chiaro */
    color: #59200A;
}
.btn-reset:hover {
    background-color: #d9cbb4;      /* Beige più scuro */
    transform: translateY(-2px);
}



/** CONTAINER DEI REPORT CON LE CARD*/
.reports-container {
    grid-area: 2/2/3/2;
    background-color: #f0eae1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 5fr 5fr 0.5fr;
    gap: 2%;
    padding: 2%;
    border-radius: 8px;
}

.no-reports-found {
    grid-area: 2/2/3/3;
    text-align: center;
}

.report-card {
    background-color: #f9f6f2; /*#e0d5c3*/
    border-radius: 5%;
    display: flex;
    flex-direction: column;
    padding: 1.3rem 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.report-card--year {
    height: 15%;
    margin-bottom: 3%;
}
.report-card--year > h2 {
    margin: 0;
    font-size: 2.3rem;
    font-weight: 850;
}

.report-card--title {
    height: 12.5%;
    border-bottom: 1px solid black;
}
.report-card--title > h3 {
    margin: 0;
    font-size: 1rem;
}

.report-card--values {
    height: 62.5%;
    width: 100%;
}

/************** display dei valori nella card ***************/
.report-values-list {
    list-style: none;
    padding: 2% 0;
    margin: 0;
    font-size: 0.95rem;
    border-radius: 8px;
    height:100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.report-values-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
}

.report-values-list li:last-child {
  border-bottom: none;
}

.report-values-list .label {
  font-weight: 600;
  color: #59200A;
}

.report-values-list .value {
  font-family: 'Courier New', monospace;
  color: #7a4d2a;
}

.report-card--actions {
    margin-top: 5%;
    height: 10%;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
}
/************** fine - display dei valori nella card ***************/

/************** pulsanti per l'impaginazione ***************/
.pagination-links--container {
    grid-area: 3/2/4/3;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 15%;
}

.pagination-links--container h4 {
    margin: 0;
    font-weight: 400;
}

.number-of-results--container {
    grid-area: 3/1/4/2;
}

.number-of-results--container h5 {
    font-weight: 400;
}

#h4-current-page {
    font-weight: 900;
}
/************** fine - pulsanti per l'impaginazione ***************/

/************** option per ordinare i filtri ***************/
.order-results--container {
    grid-area: 3/3/4/4;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.order-results--container h5 {
    font-weight: 400;
}

/* Stile per la select dei risultati */
.order-select {
    font-family: 'Arial', sans-serif; 
    font-size: 0.8rem; 
    color: #333333; 
    background-color: #f9f9f9; 
    border: 1px solid #cccccc; 
    border-radius: 5px; 
    padding: 3px 3px; 
    box-sizing: border-box; 
    cursor: pointer;
}

#incr-decr {
    width: 25%;
}

#order-results {
    width: 40%;
}

.ordrer-select option {
    background-color: #ffffff; /* sfondo bianco per le opzioni */
    color: #333333; /* testo scuro */
    font-size: 0.7rem; /* coerente con la select */
    text-align: center;
}

/************** fine - option per ordinare i filtri ***************/

/* -------------------------------
   STILI PAGINA DELLA SOSTENIBILITA' 
   sostenibilita.html
--------------------------------*/

.sustainability--title-subtitle {
    height: 40vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sustainability--title {
    height: auto;
    font-size: 1.5rem;
    padding: 2%;
    margin-top: 2%;
    border-bottom: 1px solid black;
}

.sustainability--title > h1 {
    margin: 0;
    color: #59200A;
}

.sustainability--subtitle {
    height: 70%;
    padding: 2% 7%;
    text-align: center;
}

.sustainability--subtitle > h3 {
    font-weight: 400; /* 100 - 900 */
}


.vision {
  background-color: #E2F3E3;
  display: flex;
  align-items: center;
  justify-items: center;
  padding: 3rem 4rem;
  gap: 15px;
}

.vision-text {
    width: 45%;
}

.vision-text > h2 {
  color: #4CAF50;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.vision-text > p {
  color: #333333;
  font-size: 1.2rem;
  line-height: 1.7;
  text-align: justify;
}

.vision-img {
    width: 55%;
    margin: 0 5%;
}

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

.pillars {
  background-color: #F0F9F1;
  padding: 3rem 1rem;
  text-align: center;
}

.pillars h2 {
  color: #4CAF50;
  margin-bottom: 2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2% 7%;
}

.pillar {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

.pillar h3 {
  color: #4CAF50;
  margin-bottom: 0.5rem;
}

.guida-report {
  background-color: #E2F3E3; /* verde chiaro coerente */
  padding: 3rem 1rem;
  color: #333;
}

.guida-report .container {
  max-width: 90%;
  margin: 0 auto;
}

.guida-report h2 {
  color: #4CAF50;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.guida-report h3 {
  margin-top: 2rem;
  color: #388E3C;
}

.guida-report ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  line-height: 1.6;
  font-size: 1.2rem;
  font-weight: 400;
}

.guida-report p {
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 400;
}


.sezione-finale {
  padding: 3rem 1rem;
  padding-bottom: 0;
  text-align: center;
  color: #333;
}

.sezione-finale h2 {
  font-size: 2rem;
  color: #4CAF50;
  margin-bottom: 1rem;
}

.sezione-finale p {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.btn-cta {
  background-color: #4CAF50;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.3s;
}

.btn-cta:hover {
  background-color: #388E3C;
}


@media (min-width: 769px) and (max-width: 1162px) {
    .reports-main {
        display: flex;
        flex-direction: column;
    }

    .year-filter--container {
        padding: 5% 0;
    }

    .year-filter--container > h3 {
        margin-top: 0;
    }

    .filters-sidebar {
        margin: 0 15%;
    }

    .reports-container {
        display: grid;
        height: auto;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr 0.1fr 0.5fr;
    }

    .number-of-results--container {
        grid-area: 4/1/5/2;
    }

    .order-results--container {
        grid-area: 5/2/6/3;
    }

    .pagination-links--container {
        grid-area: 5/1/6/2;
    }

    
}

/* responsive - <=768px */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        height: auto;
        padding: 5% 0;
    }

    .nav-buttons {
        flex-direction: column;
    }

    .title-text {
        display: flex;
        flex-direction: column;
        margin: 50px;
        padding: 0 4%;  
    }

    .title-text--title {
        font-size: 2rem;
        text-align: center;
    }
    
    .title-text--p {
        width: auto;
        text-align: center;
        padding: 2%;
        font-size: 1.3rem;
        font-weight: 350; /* 100 - 900 */
        border-top: 3px solid #59200A;
        border-left: 0px;
    }

    .title-cards {
        display: flex;
        flex-direction: column;
        align-items: center; /* opzionale: per centrare le card */
        gap: 2rem; /* mantieni lo spazio tra le card */
        height: auto; /* utile per far crescere in altezza */
    }

    .title-cards--title {
        padding: 0 8%;
    }

    .card--title {
        font-size: 3rem;
    }

    /* pagina sostenibilità */
    .vision {
        background-color: #F5F5DC;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-items: center;
        padding: 5% 10%;
        gap: 15px;
    }

    .sustainability--title-subtitle {
        height: 80vh;
        width: 100%;
        text-align: center;
    }

    .sustainability--subtitle {
        height: auto;
        padding: 2% 7%;
        text-align: center;
    }

    .guida-report {
        text-align: justify;
    }

    .guida-report h2, h3{
        text-align: center;
    }

    .vision-text {
        width: 100%;
    }

    .vision-text > h2 {
        text-align: center;
    }

    .vision-img {
        width: 100%;
    }

    /* pagina reports */
    .year-filter--container {
        height: auto;
        padding-bottom: 8%;
    }

    .separator {
        height: 10vh;
        display: flex;
    }

    .btn {
        width: 40%;
    }

    .reports-main {
        display: flex;
        flex-direction: column;
    }

    .reports-container {
        display: flex;
        background-color: #f0eae1;
        flex-direction: column;
        padding: 4%;
    }

    .report-card {
        margin: 8% 5%;
    }

    .pagination-links--container {
        height: 10vh;
    }

    /* footer*/
    footer {
        height: auto;
        display: flex;
        flex-direction: column;
    }

    .footer--links-container {
        padding: 7% 0;
    }

    .footer--logo-container {
        margin-top: 7%;
    }

    .footer--links-container > ul {
        display: flex;
        flex-direction: column;
    }
}