﻿/* ===== BODY ===== */

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    overflow-x: hidden; /* impedisce scroll orizzontale */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

#legarti-logo-header {
    width: 75px;
}

/* ===== NAVBAR FISSA ===== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    /*line-height: 70px;  centra verticalmente il testo */
    background-color: rgba(48, 3, 2, 0.5);
    color: white;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    box-sizing: border-box;
}

    nav a {
        color: white;
        text-decoration: none;
        margin-left: 20px;
        font-weight: bold;
    }

        nav a:hover {
            color: #ffcc00;
        }

/* Spazio sotto navbar */
main {
    flex: 1;
    padding-top: 70px; /* pari all’altezza della navbar */
}

/* ===== SEZIONI ===== */
section {
    padding: 80px 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    box-sizing: border-box;
    color: #333; /* testo leggibile sopra sfondi colorati */
}

    /* Sezione 1: Header già definita con background-image e overlay opaco */

    /* Sezione 2: La nostra storia */
    section:nth-child(2) {
        /* gradiente morbido dal beige al crema chiaro */
        background: linear-gradient(135deg, #ffe6b3, #ffffff);
    }

    /* Sezione 3: Obiettivi */
    section:nth-child(3) {
        /* sfumatura azzurro cielo / turchese */
        background: linear-gradient(#ffffff, #c3e0ff,135deg);
    }

    /* Sezione 4: Team */
    section:nth-child(4) {
        /* sfumatura rosa / pesca */
        background: linear-gradient(135deg, #ffebeb,#ffffff);
    }

/* ===== HEADER FULL-WIDTH ===== */
.header-container {
    width: 100%;
    height: 90vh; /* altezza se vuoi quasi full-screen */
    background-image: url('/image/web/sfondo_header-desktop.png');
    background-repeat: no-repeat;
    background-size: cover; /* riempie tutta la larghezza */
    background-position: center;
    opacity: 0.7; /* immagine opaca al 70% */
    padding-top: 0px !important;
}
    
/* ===== CONTENUTI TESTO E IMMAGINE ===== */
.content-left, .content-right {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
    box-sizing: border-box;
}

    .content-left .text, .content-right .text {
        flex: 1 1 300px; /* si ridimensiona ma mantiene un minimo di 300px */
        min-width: 250px;
    }

    .content-left img, .content-right img, .ovale-img img {
        max-width: 100%;
        max-height: 45vh; /* altezza massima pari al 30% dell’altezza dello schermo */
        width: auto;
        border-radius: 50%;
    }

.circle-img {
    width: 300px;
    height: 300px;
    overflow: hidden; /* fondamentale */
}

    .circle-img img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* riempie tutto */
        border-radius: 20px 20px 20px 20px;
        display: block;
    }
    
/* Quadrato per SVG */
.square-svg {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 15px;
}

/* ===== NEWSLETTER ===== */

.newsletter {
    text-align: center;
    padding: 50px;
    background: linear-gradient(135deg, #f9f9f9, #ececec);
}

    .newsletter form {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 50px;
        margin-top: 10px; /* opzionale, ulteriore distanziamento */
    }

    .newsletter input[type="email"] {
        width: 250px;
        max-width: 300px;
        padding: 10px;
        border-radius: 5px;
        border: 1px solid #ccc;
        box-sizing: border-box;
    }

    .newsletter button {
        padding: 10px 20px;
        border: none;
        background-color: #333;
        color: white;
        border-radius: 5px;
        cursor: pointer;
    }

        .newsletter button:hover {
            background-color: #ffcc00;
            color: #333;
        }
    .newsletter h2 {
        padding: 30px; /* spazio tra il titolo e il form */
    }


/* ===== FOOTER ===== */


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    section {
        padding: 50px 5%;
    }

    .content-left, .content-right {
        flex-direction: column;
        text-align: center;
    }

        .content-left .text, .content-right .text {
            max-width: 100%;
        }

    .newsletter input[type="email"],
    .newsletter button {
        width: 100%;
        max-width: none;
    }

   
}


/*MENU*/

/* Nascondi hamburger su desktop */
.hamburger {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: white;
}

/* Media query per mobile */
@media (max-width: 768px) {
    nav .menu {
        display: none; /* nascondi i link */
        flex-direction: column;
        background-color: rgba(48, 3, 2, 0.95);
        position: absolute;
        top: 70px;
        right: 0;
        width: 200px;
        text-align: right;
        padding: 10px;
        border-radius: 0 0 0 10px;
    }

        nav .menu a {
            display: block;
            margin: 10px 0;
        }

    .hamburger {
        display: block; /* mostra pulsante */
    }

    .menu.active {
        display: flex; /* mostra menu quando attivo */
    }
}

.form-container-web {
    
}

.card-ricerca-libri {
    background-color: #0d6efd; /* colore barra superiore */
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    padding: 0.75rem 1rem;
    color: white;
    font-weight: bold;
    background-color: #fff;
}
.card-libri-web {
     margin-bottom:1rem !important;
}
.card-autore {
    font-size:11px;
}
/*FINE libri*/
/********************************** EVENTI   ***********************************/
/* Modal fixed size */
.modal-dialog {
    max-width: 600px;
    width: 100%;
    margin: 1.75rem auto;
}

.modal-content {
    border-radius: 12px;
    overflow: hidden;
}

/* Modal body con scroll automatico se necessario */
.modal-body {
    max-height: 500px; /* altezza massima della body */
    overflow-y: auto;
    padding: 1.5rem;
}

/* Titolo */
#prevTitolo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Giorno, Orario */
#prevGiorno, #prevOrario {
    font-weight: 500;
}

/* Descrizione */
#prevDescrizione {
    max-height: 120px;
    overflow-y: auto;
    color: #555;
    margin-bottom: 0.5rem;
}

/* Contenitore immagine */
.preview-img {
    width: 100%;
    max-height: 250px; /* altezza massima fissa */
    object-fit: contain; /* scala tutta l'immagine senza ritagliarla */
    display: block;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    background: #f2f2f2;
}
/********************************** FINE EVENTI   ***********************************/
/**********************************   facebook    ***********************************/
.facebook-icon {
    width: 40px;
    height: 40px;
    background-color: #1877f2; /* blu Facebook */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-left: 20px;
}

    .facebook-icon svg {
        width: 18px;
        height: 18px;
    }


/**********************************   facebook    ***********************************/
/*LOGO*/
#legarti-logo-header {
    width: 65px; /* larghezza del cerchio */
    height: 65px; /* altezza del cerchio */
    border-radius: 50%; /* rende il logo rotondo */
    object-fit: cover; /* mantiene le proporzioni e taglia eventuali bordi */
    border: 2px solid #ffffff; /* opzionale: bordo bianco */
    box-shadow: 0 2px 6px rgba(0,0,0,0.2); /* opzionale: ombra leggera */
}
/*Fine logo*/
