/* 1. Reset e stili di base */
body {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    background-color: #6eb52f;
    text-align: left;
    padding-top: 50px;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1, h2 {
    color: #ffffff;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 5px;
}

h4 {
    color: #ffffff;
    font-size: 50px;
    font-weight: 750;
    
}



p {
    font-family: 'Poppins', sans-serif;
    font-size: 25px;
    color: #ffffff;
    font-weight: bold;
}


/*h4 {
    text-shadow:
    -3px -3px 0 #000,
    3px -3px 0 #000,
   -3px  3px 0 #000,
    3px  3px 0 #000,
   -3px  0px 0 #000,
    3px  0px 0 #000,
    0px  3px 0 #000,
    0px -3px 0 #000,
   -2px -2px 0 #000,
    2px -2px 0 #000,
   -2px  2px 0 #000,
    2px  2px 0 #000,
   -2px  0px 0 #000,
    2px  0px 0 #000,
    0px  2px 0 #000,
    0px -2px 0 #000;
}*/

/* 2. Layout principale */
main {
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

.dovesiamo,
.servizi,
.partner {
    margin-top: 75px;
    padding: 0 50px 50px 50px;
}



.home-container{
    margin-top: 150px;
}

.partner {
    margin-right: 50px;
}

.content-box {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 50px;
    padding: 25px;
    background: rgba(255, 255, 255, 0);
    border-radius: 10px;
    min-height: 300px;
    height: auto;
    margin-top: 75px;
}

/* 3. Header e Navigation */
.barra-fissa {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid #243a8c;
    z-index: 1000;
}

.logo img {
    height: 100px;
    width: auto;
    padding-top: 5px;
}

.menu {
    display: flex;
    gap: 20px;
    margin-right: 50px;
}

.menu a {
    text-decoration: none;
    color: #000000;
    font-size: 20px;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: #243a8c;
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    background: #ffffff;
    border: none;
    cursor: pointer;
    width: 50px;
    height: 50px;
    padding: 0;
    margin-right: 20px;
    z-index: 1001;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 5px;
}

.hamburger {
    width: 30px;
    height: 4px;
    background: transparent;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 4px;
    background: #243a8c;
    border-radius: 5px;
    transition: all 0.3s ease;
    left: 50%;
    transform: translateX(-50%);
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    top: 6px;
}

/* 4. Contenuti principali */
.text-content {
    flex: 1;
    min-width: 0;
    padding-right: 20px;
}

.text-content h4 {
    margin-bottom: 20px;
    font-size: 30px;
    word-wrap: break-word;
}

.text-content p {
    word-wrap: break-word;
}

.image-content {
    flex: 0 0 400px;
    padding-right: 0;
}

.image-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 0;
    transition: transform 0.3s ease;
}

.image-content img:hover {
    transform: scale(1.05);
}

/* 5. Componenti */
/* Album Grid */
.album {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    margin: 20px 0 100px 0;
    max-width: 1020px;
    width: 100%;
    padding-left: 0;
}

.album img {
    height: calc(50% - 5px);
    width: calc(50% - 5px);
    max-height: 150px;
    max-width: 150px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.album img:hover {
    transform: scale(1.1);
}

/* Slideshow */
.home-container {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    margin-top: 40px;

}

.slideshow-container {
    flex: 1;
    width: 100%;
    height: 0;
    padding-bottom: 47%; /* 16:9 aspect ratio */
    position: relative;
    overflow: hidden;
    margin: 0;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    background: rgba(177, 88, 88, 0);
    color: #ffffff00;
    text-align: center;
    font-size: 20px;
}

/* Navigation Controls */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    border-radius: 0 6px 6px 0;
    user-select: none;
    background: rgba(0, 0, 0, 0.096);
    text-decoration: none;
    z-index: 2;
}

.next {
    right: 0;
    border-radius: 6px 0 0 6px;
}

.prev {
    left: 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.452);
}

/* Dots/Indicatori */
.dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 2;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #fff;
}

/* Dove Siamo */
.dove-siamo-container {
    display: flex;
    gap: 40px;
    align-items: stretch;
    margin: 0;
    /*height: 1000px*/;
}

.indirizzo {
    flex: 1;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    max-width: 500px; /* opzionale: limite massimo */
    
}

.mappa {
    flex: 1 1 0;
    max-width: 100%;
    height: 300px;
    margin: 0;
    padding: 0;
    
}

.mappa iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 5px;
    display: block;
    max-width: 300px;
    box-sizing: border-box;
}

/* 6. Footer */

main.dovesiamo{
    margin-bottom: 50px;
}


footer {
    background: #ffffff;
    border-top: 4px solid #243a8c;
    box-sizing: border-box;
    box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-top: auto;
    padding: 20px 0;
    width: 100%;
    overflow-x: hidden;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

.footer-section {
    text-align: center;
    color: #243a8c;
    width: 100%;
    margin-bottom: 5px;
}

.footer-section p {
    font-size: 16px;
    text-align: center;
    color: #243a8c;
}

.copyright {
    font-size: 14px;
    color: #243a8c;
    text-align: center;
    margin-top: 10px;
    padding: 0;
}

/* 7. Utility Classes */
.fredoka {
    font-family: "Fredoka", sans-serif;
    font-weight: bold;
    font-style: normal;
}

.giorno {
    display: inline-block;
    width: 200px;
    text-align: left;
    color: #ffffff;
}

.orario {
    display: inline-block;
    text-align: left;
    margin-bottom: 20px;
}

.dovesiamo p:last-of-type {
    margin-bottom: 50px;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

.contatti-form {
    margin-top: 30px;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    color: #243a8c;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    max-width: 400px;
}

.contatti-form h2 {
    color: #243a8c;
    font-size: 24px;
    margin-bottom: 15px;
}

.contatti-form label {
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: bold;
}

.contatti-form input,
.contatti-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 16px;
    box-sizing: border-box;
}

.contatti-form button {
    background: #243a8c;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.contatti-form button:hover {
    background: #6eb52f;
}

/* 8. Media Queries */
@media screen and (max-width: 1060px) {
    .album {
        max-width: 850px;
    }

    .content-box {
        height: auto;
        min-height: 300px;
        flex-direction: row;
        gap: 20px;
        padding: 20px;
        margin-bottom: 30px;
    }

    .image-content {
        flex: 0 0 250px;
    }

    footer {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-bottom: 120px;
    }

    .text-content {
        flex: 1;
        padding-right: 10px;
    }

    .partner h1,
    .partner p {
        padding: 0 50px 0 0;
        word-break: break-word;
    }
}

@media screen and (max-width: 768px) {
    .barra-fissa {
        justify-content: space-between;
        padding: 0 20px;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        margin-left: auto;
        height: 50px;
        width: 50px;
    }

    .menu {
        display: none;
        position: fixed;
        top: 100px;
        left: 0;
        width: 100%;
        height: calc(100vh - 100px);
        background: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        z-index: 999;
    }

    .menu.active {
        display: flex;
        animation: menuFadeIn 0.3s ease forwards;
    }

    @keyframes menuFadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .menu a {
        margin: 50px 50px 0 50px;
        font-size: 24px;
        color: #ffffff;
        text-align: left;
    }

    .menu-toggle.active .hamburger {
        background: transparent;
    }

    .menu-toggle.active .hamburger::before {
        top: 0;
        transform: translateX(-50%) rotate(45deg);
    }

    .menu-toggle.active .hamburger::after {
        top: 0;
        transform: translateX(-50%) rotate(-45deg);
    }

    .menu-toggle:hover {
        background: #6eb52f;
    }

    .menu-toggle:hover .hamburger::before,
    .menu-toggle:hover .hamburger::after {
        background: #ffffff;
    }

    .content-box {
        flex-direction: column-reverse;
        gap: 0px;
        padding: 20px;
        margin-bottom: 30px;
        align-items: center;
    }

    .image-content {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        order: 1;
    }

    .text-content {
        width: 100%;
        order: 0;
        text-align: left;
        padding: 0 20px;
    }

    .slideshow-container {
        height: 0;
        padding-bottom: 133.33%; /* 4:5 aspect ratio per mobile */
        position: relative;
        overflow: hidden;
        margin: 0;
    }

    .slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        max-width: 100%;
        display: block;
    }

    .dove-siamo-container {
        flex-direction: column;
        gap: 20px;
        margin: 0;
        padding: 0;
    }
    .indirizzo, .mappa {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    .mappa {
        height: 220px;
    }
    .mappa iframe {
        height: 100%;
        min-height: 180px;
        max-width: 750px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        padding: 0 10px;
    }

    .home-container{
        margin-top: 40px;
    }
    
    .contatti-form {
        max-width: 100%;
        padding: 15px;
        margin-top: 5px;
        box-shadow: none;
    }

    .contatti-form label,
.contatti-form input::placeholder,
.contatti-form textarea::placeholder {
    font-weight: bold;
}
    .contatti-form h2 {
        font-size: 30px;
        margin-bottom: 15px;
        margin-top:  5px;
        font-weight: bold;
        font-family: 'Poppins', sans-serif;
    }
    .contatti-form label {
        font-size: 16px;
        margin-top: 8px;
        margin-bottom: 3px;
    }
    .contatti-form input,
    .contatti-form textarea {
        font-size: 15px;
        padding: 6px;
        margin-bottom: 8px;
    }
    .contatti-form button {
        font-size: 15px;
        padding: 8px 16px;
    }
    .dovesiamo {
        padding: 0 10px 30px 10px;
    }

}

@media screen and (max-width: 550px) {

    h1, h2 {
        font-size: 30px;
    }

    .mappa {
        height: 250px;
    }

    .indirizzo {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .content-box {
        padding: 15px;
        gap: 0px;
    }

    .text-content h2 {
        font-size: 20px;
    }

    .text-content p {
        font-size: 20px;
    }

    .image-content {
        max-width: 350px;
        width: 100%;
        margin: 0 auto;
    }

    .album {
        margin: 20px 25px 50px 0;
    }

}

