/* Generale */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: transparent;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar.white-bg {
    background-color: white;
}

.navbar.white-bg a {
    color: black;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.menu-left {
    list-style-type: none;
    display: flex;
    justify-content: flex-start;
    flex: 1;
}

.menu-left .logo {
    font-size: 1.8rem;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.menu-center {
    list-style-type: none;
    display: flex;
    justify-content: center;
    flex: 2;
    gap: 2rem;
}

.menu-center li {
    list-style: none;
}

.menu-center a {
    text-decoration: none;
    font-size: 1.2rem;
    color: white;
    transition: color 0.3s ease;
}

.menu-center a:hover {
    color: #f0f0f0;
}

.menu-right {
    list-style-type: none;
    display: flex;
    justify-content: flex-end;
    flex: 1;
}

/* Pulsante Login */
.login-button {
    background-color: green;
    padding: 0.5rem 1rem;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.login-button:hover {
    background-color: darkgreen;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-image 1s ease-in-out;
}

.overlay {
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    flex-direction: column;
}

.hero-title {
    font-size: 7rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.4rem;
    line-height: 1.2;
    margin-top: 0;
}

/* Team Section */
.team-section {
    padding: 5rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9;
    min-height: 100vh;
}

.team-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

.team-text {
    flex: 1;
    padding-right: 2rem;
}

.team-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.team-text p {
    font-size: 1.2rem;
    line-height: 1.6;
}

.team-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.team-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* School Section */
.school-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.school-overlay {
    background: rgba(0, 0, 0, 0.538); /* Rettangolo trasparente nero */
    position: absolute;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.school-content {
    color: white;
    max-width: 800px;
    padding: 2rem;
    text-align: justify;
    line-height: 1.8;
}

.school-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.school-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}


/* Responsive */
@media (max-width: 768px) {
    .team-container, .school-overlay {
        flex-direction: column;
    }

    .team-text, .school-content {
        text-align: center;
    }
}













/* FloraTech Section--------------------------------- */
.floratech-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5rem 2rem;
    background-color: #f0f0f0;
    min-height: 100vh;
}

.floratech-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

.floratech-text {
    flex: 1;
    padding-right: 2rem;
}

.floratech-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.floratech-text p {
    font-size: 1.2rem;
    line-height: 1.6;
}

.floratech-gallery {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.gallery-frame {
    width: 500px;
    height: 500px;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
   
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1s ease-in-out;
}

/* Slideshow functionality */
@keyframes fade {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    animation: fade 10s infinite;
}














/* Idea Section */
.idea-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5rem 2rem;
    background-color: #f9f9f9;
    min-height: 100vh;
}

.idea-container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.idea-image {
    flex: 1;
    max-width: 600px;
    max-height: 600px;
    margin-right: 2rem;
}

.idea-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.idea-text {
    flex: 2;
    padding-left: 2rem;
}

.idea-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.idea-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .idea-container {
        flex-direction: column;
        align-items: center;
    }

    .idea-image, .idea-text {
        margin-right: 0;
        padding-left: 0;
        text-align: center;
    }
}





.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer p {
    margin: 0;
    font-size: 1rem;
}













/* Popup newsletter styles */
.newsletter-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.5s ease;
}

.popup-content {
    background-color: white;
    width: 600px;
    padding: 30px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.popup-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.newsletter-icon {
    font-size: 150px;
    color: #007bff;
}

.popup-right {
    flex: 2;
    padding-left: 20px;
}

.popup-right h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.popup-right p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 15px;
}

input[type="text"], input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

/* Messaggio di conferma */
.confirmation-message {
    text-align: center;
    font-size: 1.5rem;
    margin-top: 10px;
    color: green;
}

/* Dissolvenza per il popup */
.fade-out {
    opacity: 0;
    transition: opacity 1s ease-out;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    cursor: pointer;
}

.close-btn:hover {
    color: red;
}

/* Mostra il popup */
.show-popup {
    visibility: visible;
    opacity: 1;
}
