/* Reset e Font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* Header */
header {
    background-color: #2e7d32; /* Verde scuro */
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 50px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

nav a.active {
    border-bottom: 2px solid white;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../Immagini/bannerHome.jpg');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 1rem;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    background-color: #ff6f00; /* Arancione Lego */
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #e65100;
}

/* Sezioni */
.container {
    width: 80%;
    margin: 3rem auto;
    text-align: center;
}

.intro h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #2e7d32;
}

.video-container {
    margin: 2rem auto;
    max-width: 800px;
}

.video-container iframe {
    width: 100%;
    height: 400px;
    border-radius: 10px;
}

/* Gallery */
.gallery {
    background-color: #e8f5e9;
    padding: 3rem 0;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 80%;
    margin: 2rem auto;
}

.grid-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.grid-item:hover {
    transform: translateY(-10px);
}

.grid-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.grid-item p {
    padding: 1rem;
    font-weight: bold;
}

/* Footer */
footer {
    background-color: #1b5e20;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer-content {
    width: 80%;
    margin: 0 auto;
}

.footer-content a {
    color: white;
    margin: 0 0.5rem;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .container, .grid-container {
        width: 95%;
    }
}

/* Stili specifici per la pagina Contesto */

/* Hero per sottopagine */
.hero-subpage {
    background-size: cover;
    background-position: center;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../Immagini/bannerContesto.jpg');
}

.hero-subpage-obiettivi {
    background-size: cover;
    background-position: center;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../Immagini/bannerObiettivi.png');
}

.hero-subpage-fasi {
    background-size: cover;
    background-position: center;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../Immagini/bannerFasiProgetto.jpg');
}

.hero-subpage-valutazione {
    background-size: cover;
    background-position: center;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../Immagini/bannerValutazione.png');
}

.hero-subpage-metodologie {
    background-size: cover;
    background-position: center;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../Immagini/bannerMetodologie.jpg');
}

.hero-subpage-chisiamo {
    background-size: cover;
    background-position: center;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../Immagini/bannerChi_siamo.jpeg');
}

.hero-subpage-galleria {
    background-size: cover;
    background-position: center;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../Immagini/bannerGalleria.jpg');
}

.hero-subpage-contatti {
    background-size: cover;
    background-position: center;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../Immagini/bannerMeucci2.png');
}

.hero-subpage h2 {
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Sezioni a griglia testo/immagine */
.text-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 2rem 0;
}

.text-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

.rounded-image {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 300px; /*Mettere 100% se l'immagine non risulta troppo grande*/
}

/* Sezioni con sfondo alternato */
.page-section {
    padding: 3rem 0;
}

.bg-light {
    background-color: #e8f5e9;
}

/* Card prerequisiti */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.card-icon {
    font-size: 2.5rem;
    color: #2e7d32;
    margin-bottom: 1rem;
}

.card h4 {
    margin-bottom: 1rem;
    color: #1b5e20;
}

.card ul {
    list-style: none;
    text-align: left;
    padding-left: 1rem;
}

.card li {
    margin-bottom: 0.5rem;
    position: relative;
}

.card li:before {
    content: "•";
    color: #ff6f00;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Griglia materiali */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.material-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .text-image-grid {
        grid-template-columns: 1fr;
    }

    .hero-subpage h2 {
        font-size: 2rem;
    }
}

/* Stili specifici per la pagina Obiettivi */

/* Griglia competenze */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    text-align: justify;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #2e7d32;
}

.skill-header i {
    font-size: 1.5rem;
}

/* Accordion obiettivi disciplinari */
.accordion {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.accordion-header {
    width: 100%;
    padding: 1.2rem;
    background-color: #2e7d32;
    color: white;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.accordion-header:hover {
    background-color: #1b5e20;
}

.accordion-header i {
    transition: transform 0.3s;
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-content {
    background: white;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    text-align: justify;
}

.accordion-content ul {
    padding: 1.5rem;
    list-style-type: none;
}

.accordion-content li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.accordion-content li:before {
    content: "→";
    color: #ff6f00;
    position: absolute;
    left: 0;
}

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

.curriculum-card {
    background: white;
    border-left: 4px solid #ff6f00;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.curriculum-card h4 {
    color: #2e7d32;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Stili specifici per la pagina Fasi */

/* Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding-left: 50px;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #2e7d32;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.timeline-header {
    display: flex;
    align-items: center;
    padding: 1.2rem;
    background-color: #2e7d32;
    color: white;
    gap: 1rem;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2e7d32;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.timeline-time {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.timeline-content {
    padding: 1.5rem;
}

/* Tabella gruppi di lavoro */
.gruppi-di-lavoro {
    width: 100%;
    border-collapse: collapse;
}

.gruppi-di-lavoro th {
    background-color: #2e7d32;
    color: white;
    padding: 10px;
}

.gruppi-di-lavoro td {
    border: 1px solid #ddd;
    padding: 8px;
}

/*
.gruppi-di-lavoro tr:nth-child(even) {
    background-color: #44e31c;
}
*/

.gruppi-header td{
    background-color: #4CAF50;
}

.gruppi-header {
    background-color: #4CAF50;
    font-weight: bold;
}


/* Tabs */
.phase-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tab-button {
    padding: 0.5rem 1rem;
    background: #e0e0e0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-button.active {
    background: #ff6f00;
    color: white;
}

.tab-content {
    display: none;
    padding: 1rem 0;
}

.tab-content.active {
    display: block;
}

/* Gallerie */
.gallery {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.gallery a {
    flex: 1 1 200px;
}

.gallery img {
    width: 100%;
    /*object-fit: cover;*/
    border-radius: 10px;
    padding-right: 5px;
    transition: transform 0.3s;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* Sezione tecnica */
.bg-dark {
    background-color: #2e7d32;
    color: white;
}

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

.tech-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #ff6f00;
    text-align: justify;
}

.tech-card h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-card ul {
    list-style: none;
}

.tech-card li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.2rem;
}

.tech-card li:before {
    content: "•";
    color: #ff6f00;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline:before {
        left: 10px;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-header {
        flex-wrap: wrap;
    }

    .timeline-time {
        margin-left: 0;
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* Stili specifici per la pagina Valutazione */

/* Griglia rubrica */
.rubric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.rubric-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.rubric-item h4 {
    color: #2e7d32;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.rubric-levels {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.level {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 5px;
}

.level-title {
    font-weight: bold;
    color: #ff6f00;
    display: block;
    margin-bottom: 0.3rem;
}

/* Risultati */
.results-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .results-container {
        grid-template-columns: 1fr;
    }
}

.results-legend {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.color-box {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Autovalutazione */
.self-assessment {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.testimonial:before {
    content: "";
    font-family: Georgia, serif;
    font-size: 4rem;
    color: #e0e0e0;
    position: absolute;
    top: 0;
    left: 1rem;
    line-height: 1;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    padding-top: 1.5rem;
}

.student-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.student-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* Criticità - facilitatori */
.barriere, .facilitatori {
    margin-left: 100px;
    margin-right: 100px;
    background-color: white;
    padding: 40px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* Wordcloud */
.wordcloud-container {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.wordcloud {
    margin-top: 1rem;
    line-height: 2.5;
}

.wordcloud span {
    margin: 0 0.5rem;
    display: inline-block;
    transition: transform 0.3s;
}

.wordcloud span:hover {
    transform: scale(1.2);
}

/* Stili specifici per la pagina Metodologie */

/* Griglia approcci pedagogici */
.pedagogy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pedagogy-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.pedagogy-card:hover {
    transform: translateY(-5px);
}

.pedagogy-icon {
    width: 80px;
    height: 80px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #2e7d32;
    font-size: 2rem;
}

.pedagogy-card h4 {
    color: #2e7d32;
    margin-bottom: 1rem;
}

.pedagogy-card ul {
    list-style: none;
    text-align: left;
    padding-left: 1rem;
}

.pedagogy-card li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.pedagogy-card li:before {
    content: "•";
    color: #ff6f00;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Tabs strumenti */
.tools-tabs {
    margin-top: 2rem;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tab-buttons .tab-button {
    padding: 0.8rem 1.5rem;
    background: #e0e0e0;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.tab-buttons .tab-button.active {
    background: #2e7d32;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Griglia strumenti */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.tool-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.tool-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.tool-item h4 {
    color: #2e7d32;
    margin-bottom: 0.5rem;
}

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

.diff-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #ff6f00;
}

.diff-card h4 {
    color: #2e7d32;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.diff-card ul {
    list-style: none;
    padding-left: 1rem;
}

.diff-card li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    text-align: left;
}

.diff-card li:before {
    content: "→";
    color: #ff6f00;
    position: absolute;
    left: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .tab-buttons {
        flex-direction: column;
    }
}

/* Stili specifici per la pagina Chi Siamo */

/* Card docente */
.profile-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-content {
    padding: 2rem 2rem 2rem 0;
}

.profile-content h3 {
    color: #2e7d32;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.role {
    color: #ff6f00;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.profile-details {
    margin-bottom: 1.5rem;
}

.profile-details p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.profile-details i {
    width: 20px;
    color: #2e7d32;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #e8f5e9;
    border-radius: 50%;
    color: #2e7d32;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #2e7d32;
    color: white;
}

/* Sezione classe */
.class-description {
    text-align: justify;
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.class-group {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.class-group h4 {
    color: #2e7d32;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.class-group ul {
    list-style: none;
}

.class-group li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.class-group li:before {
    content: "→";
    color: #ff6f00;
    position: absolute;
    left: 0;
}

/* Sezione scuola */
.school-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.school-info {
    padding-top: 20px;
}

.school-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.school-info i {
    width: 20px;
    color: #2e7d32;
}

.school-info a {
    color: #2e7d32;
    text-decoration: none;
    font-weight: 500;
}

.school-info a:hover {
    text-decoration: underline;
}

.school-badges {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-left: 50px;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color:white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.school-badges img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.school-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 900px) {
    .profile-card {
        grid-template-columns: 1fr;
    }
    
    .profile-image {
        height: 300px;
    }
    
    .profile-content {
        padding: 2rem;
    }
    
    .school-grid {
        grid-template-columns: 1fr;;
    }
    
    .school-map {
        height: 300px;
    }
}

@media (max-width: 500px) {
    .class-grid {
        grid-template-columns: 1fr;
    }
}

/* Logo */
.logo {
    box-shadow: 5px 5px 5px black;
}

/* Sottotitolo home */
#subtitle {
    margin-left: 30px;
}

/* Lo tengo???? */
/* Griglia Studenti */
.students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.student-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s; /* Effetto di transizione */
}

.student-card:hover {
    transform: translateY(-10px);
    background-color: lightgrey; /* Cambia colore al passaggio del mouse */
}

.student-image:hover img {
    transform: scale(1.03); /* Effetto zoom sull'immagine */
}

.student-image img {
    width: 200px;
    height: 200px;
    /*height: 200px;*/
    object-fit: cover;
    border-bottom: 3px solid #2e7d32;
    transition: transform 0.3s; /* Effetto di transizione */
}

.student-info {
    padding: 1.5rem;
    text-align: center;
}

.student-info h4 {
    color: #2e7d32;
    margin-bottom: 0.5rem;
}

.student-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.student-bio {
    font-style: italic;
    color: #333;
    font-size: 0.8rem;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px dashed #ddd;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 600px) {
    .students-grid {
        grid-template-columns: 1fr;
    }
}

.student-image img {
    border-radius: 50%;
    object-fit: cover; /* Assicura che l'immagine si adatti bene */
    box-shadow: 5px 5px 20px grey;
}

.student-card {
    padding-top: 20px;
}


/* Stili specifici per la Galleria */
.gallery .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
}

.grid-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.photo-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(46, 125, 50, 0.9);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.grid-item:hover .photo-info {
    transform: translateY(0);
}

.photo-info p {
    margin: 0;
    font-size: 1.1rem;
}

.photo-info i {
    font-size: 1.5rem;
    color: #ff6f00;
}

@media (max-width: 768px) {
    .gallery .grid-container {
        grid-template-columns: 1fr;
    }
    
    .grid-item img {
        height: 200px;
    }
}



/*--------------------------------------------------------------_*/
/* Stili Contatti */
.contact-section {
    padding: 4rem 0;
    background: #f9f9f9;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2e7d32;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 5px;
}

.info-card i {
    font-size: 1.5rem;
    color: #2e7d32;
    min-width: 40px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #2e7d32;
    color: white;
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #ff6f00;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
    }
    
    .info-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Video introduttivo */
#video-intro {
    width: 100%;
    max-width: 960px;
    min-width: 300px;
    height: auto; /* Mantiene le proporzioni */
}


.copyright {
    background: linear-gradient(135deg, var(--surface) 0%, var(--background) 100%);
    color: var(--text);
    padding: 20px 20px;
    font-size: 18px;
    font-style: italic;
    margin: 0;
}

.copyright-email {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.copyright a {
    color: var(--text);
    cursor: pointer;
    font-weight: bold;
    padding: 10px 0px;
    border-radius: 30px;
    text-decoration: none;
}

.salvatore-crapanzano-logo {
    width: 300px;
    border-radius: 100px;
}

.logo-SC {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}