/* impastazioni base della pagina */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}
/* contenitore*/
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* intestazione */
header {
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
    text-align: center;
}
header h1 {
    font-size: 36px;
    margin-bottom: 5px;
}
/* LOGO */
.header-contenuto {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
}
.testi-header {
    text-align: left;
}
.sottotitolo {
    font-size: 14px;
    color: #ecf0f1;
}
/* MENU DI NAVIGAZIONE */
nav {
    background-color: #34495e;
    padding: 15px 0;
    text-align: center;
}
nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    margin: 0 5px;
    display: inline-block;
    border-radius: 5px;
    transition: background-color 0.3s;
}
nav a:hover {
    background-color: #2c3e50;
}
nav a.attivo {
    background-color: #e74c3c;
}
/* SEZIONI */
.sezione {
    padding: 60px 0;
}
.sfondo-chiaro {
    background-color: #f8f9fa;
}
.sezione h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #2c3e50;
}
/* riquadri con testo */
.box-info {
    background-color: #ecf0f1;
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
}
.box-info h3 {
    color: #e74c3c;
    margin-bottom: 15px;
}
/* Elenchi puntati */
.box-info ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-top: 15px;
}
/* LINK COOPERATIVA */
.cooperativa {
    display: inline-block;
    color: #e74c3c;
    text-decoration: none;
    font-weight: bold;
    padding: 4px 12px;
    border: 2px solid #e74c3c;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

.cooperativa:hover {
    background-color: #e74c3c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}
/* griglia prodotti */
.griglia-prodotti {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    max-width: 100%;
}
.prodotto {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s; box-shadow: 0.3s;
}
.prodotto:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}
.immagine-prodotto {
    width: 100%;
    height: 350px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
}
.prodotto h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}
.prezzo {
    font-size: 24px;
    color: #e74c3c;
    font-weight: bold;
    margin-top: 15px;
}
/* PULSANTE ACQUISTA */
.bottone-acquista {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    font-weight: bold;
    transition: background-color 0.3s;
}
.bottone-acquista:hover {
    background-color: #c0392b;
    transform: scale(1.05);
}
.prodotto .bottone-acquista {
    margin-top: auto;
}

/* CAROSELLO */
.carosello {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 10px;
    background-color: #f8f9fa;
    margin-bottom: 15px;
}

.carosello-contenitore {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carosello .immagine-prodotto {
    position: absolute;
    width: auto;
    height: 100%;
    max-width: 100%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    margin-bottom: 0;
    object-fit: contain;
}

.carosello .immagine-prodotto.attiva {
    opacity: 1;
}

.freccia {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(44, 62, 80, 0.7);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 3px;
    transition: background-color 0.3s;
    z-index: 10;
}

.freccia:hover {
    background-color: rgba(44, 62, 80, 0.9);
}

.freccia-sinistra {
    left: 10px;
}

.freccia-destra {
    right: 10px;
}

/* INDICATORI CAROSELLO */
.indicatori {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 15px 0;
}

.pallino {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #bdc3c7;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.pallino:hover {
    background-color: #95a5a6;
    transform: scale(1.2);
}

.pallino.attivo {
    background-color: #e74c3c;
    transform: scale(1.3);
}

/* OFFERTE SPECIALI */
.offerta-speciale {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 3px solid #e74c3c;
    text-align: center;
}
.offerta-speciale h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}
.prezzo-vecchio {
    text-decoration: line-through;
    color: #7f8c8d;
    font-size: 18px;
}
.prezzo-offerta {
    font-size: 32px;
    color: #e74c3c;
    font-weight: bold;
    margin: 10px 0;
}
/* LINK RISPARMIO */
.link-risparmio {
    display: inline-block;
    background-color: #2ecc71;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}
.link-risparmio:hover {
    background-color: #27ae60;
    transform: scale(1.05);
}
/* CONTATTI */
.introduzione{
  text-align: center;
  margin-bottom: 40px;
}
.descrizione-contatti{
  font-size: 14px;
  margin-top: 10px;
}
.info-contatti {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.contatto {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}
.contatto:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}
.contatto h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}
/* LINK MAIL */
.link-mail {
    color: #e74c3c;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.link-mail:hover {
    color: #c0392b;
    text-decoration: underline;
}
/* LINK SITO PILATI */
.pilati {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 20px;
    border: 2px solid #3498db;
    border-radius: 5px;
    margin-bottom: 15px;
    transition: background-color 0.3s, color 0.3s;
}

.pilati:hover {
    background-color: #3498db;
    color: white;
}
/* PIÈ DI PAGINA */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 60px;
}
.box-info li {
    margin-bottom: 10px;
    line-height: 1.6;
}
/* RESPONSIVE PER MOBILE */
@media (max-width: 768px) {
    header h1 {
        font-size: 28px;
    }

    nav a {
        display: block;
        margin: 5px 0;
    }

    .sezione h2 {
        font-size: 24px;
    }
    .griglia-prodotti {
          grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      }
}
