/* Regole di base */
body, h1, h2, p, ul, li, a {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Stili generali per il body */
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    color: #333;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
}

/* Stili per il contenitore principale */
.container {
    max-width: 800px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

/* Stili per i titoli */
h2 {
    font-size: 24px;
    color: #444;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

/* Stili per i paragrafi */
p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Stili per le liste non ordinate */
ul {
    list-style: none;
    margin-bottom: 20px;
}

/* Stili per gli elementi delle liste */
li {
    font-size: 16px;
    margin-bottom: 10px;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Stili per i link */
a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Stili per la cornice */
.cornice {
    background: #e8f0fe;
    border-left: 4px solid #1a73e8;
    padding: 15px;
    font-style: italic;
    margin-bottom: 20px;
}

/* Stili per le immagini di sfondo */
.background-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-areas:
        "top-left top top-right"
        "left . right"
        "bottom-left bottom bottom-right";
    pointer-events: none;
    z-index: 0;
}

.background-images div {
    background-size: cover;
    background-position: center;
}

.background-images .top-left {
    grid-area: top-left;
    background-image: url('../sito/arcobaleno.jpg'); /* Replace with actual path */
}

.background-images .top {
    grid-area: top;
    background-image: url('../sito/campo.jpg'); /* Replace with actual path */
}

.background-images .top-right {
    grid-area: top-right;
    background-image: url('../sito/EmanuelaConCarne.jpg'); /* Replace with actual path */
}

.background-images .left {
    grid-area: left;
    background-image: url('../sito/girasoli.jpg'); /* Replace with actual path */
}

.background-images .right {
    grid-area: right;
    background-image: url('../sito/fotoConCarne3.jpg'); /* Replace with actual path */
}

.background-images .bottom-left {
    grid-area: bottom-left;
    background-image: url('../sito/trattore.jpg'); /* Replace with actual path */
}

.background-images .bottom-right {
    grid-area: bottom-right;
    background-image: url('../sito/tagliareErba.jpg'); /* Replace with actual path */
}

.background-images .bottom {
    grid-area: bottom;
    background-image: url('../sito/trattore3.jpg'); /* Replace with actual path */
}

/* Stili per nascondere il testo e mostrare il pulsante su dispositivi mobili */
#toggleTextButton {
    display: none; /* Nascondi per default su desktop */
    background-color: darkgreen;
    color: black;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

#toggleTextButton:hover {
    background-color: green;
}

/* Stili per nascondere il testo e mostrare il pulsante su dispositivi mobili */
@media (max-width: 1100px) {
    #textContent {
        display: none;
    }

    #toggleTextButton {
        display: block;
    }
}

/* Stili per il contenuto scrollabile */
.scrollable-text {
    max-height: 400px; /* Altezza massima del contenitore */
    overflow-y: scroll; /* Abilita lo scrolling verticale */
    padding-right: 20px; /* Spazio per il scrollbar */
}
