* {
    border: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    width: 100%;
    overflow-x: hidden;
    max-width: 100vw;
}


.menubar {
    height: 50px;
    margin-top: 7px;
    width: calc(100% - 10px);
    margin-left: 5px;
    border-radius: 1rem;
    z-index: 9999;
    position: fixed;
    /*background: rgba(255, 255, 255, .8);*/
    background: none;
    /*background: rgba(0, 0, 0, 1);*/
    display: flex;
    box-sizing: border-box;
}

.menubar a {
    transition: color 0.3s ease;
}

.menubar.white a {
    color: white;
}

.menubar.black a {
    color: black;
}

.sidenav a {
    color: white !important;
}


.sidenav {
    z-index: 9999;
    height: 100%;
    width: 0;
    position: fixed;
    top: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    font-family: "Space Grotesk", sans-serif;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

.openNavWrite {
    display: none;
}

.openNavWrite span {
    transition: color 0.3s ease;
    color: black;
}

.menubar.white .openNavWrite span {
    color: white !important;
}

.menubar.black .openNavWrite span {
    color: black !important;
}

.menubar img {
    margin-top: 5px;
    margin-left: 100px;
    height: 60px;
}

.menubarcontainer {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    text-align: right;
    margin-right: 100px;


}

.menubar a {
    font-family: "Space Grotesk", sans-serif;
    opacity: 1;
    line-height: 50px;
    text-decoration: none;
    color: black;
    margin-left: 10px;
    margin-right: 20px;
}

.menubar a:hover {
    color: rgba(0, 0, 0, .5);
}

.sidenav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    /*color: black;*/
    color: white;
    display: block;
    transition: 0.3s;
}

.nav-link.active {
    text-decoration: underline;
}

.nav-link2.active {
    text-decoration: underline;
}

.sidenav a:hover {
    color: rgba(0, 0, 0, .5);
}

.sidenav .closebtn {
    position: absolute;
    top: 0;
    left: 25px;
    font-size: 36px;
    margin-right: 50px;
}

#main {
    transition: margin-left .5s;
    padding: 16px;
}

@media screen and (max-height: 450px) {
    .sidenav {
        padding-top: 15px;
    }

    .sidenav a {
        font-size: 18px;
    }
}

@media screen and (max-width: 768px) {
    .menubarcontainer {
        display: none !important;
    }

    .openNavWrite {
        display: block !important;
        margin-left: auto;
        margin-right: 20px;
        line-height: 50px;
    }

    .menubar img {
        margin-top: 5px;
        margin-left: 10px;
        height: 40px;
    }
}



/*  HOME   */

.title {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 20px 20px;
    box-sizing: border-box;
    background-color: white;
}

.hero-background {
    width: 100%;
    height: 100%;
    max-height: calc(100vh - 120px);
    background-image: url(/static/images/home_image.jpg);
    background-size: cover;
    background-position: center;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 30px;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px;
}

.hero-text h1 {
    color: white;
    font-size: 60px;
    font-optical-sizing: auto;
    font-family: "Prompt", sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.2;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-text h1 span {
    color: rgb(200, 0, 0);
    text-shadow: 0 4px 15px rgba(200, 0, 0, 0.5);
}

.hero-button button {
    background-color: rgb(200, 0, 0);
    color: white;
    font-size: 24px;
    font-family: "Prompt", sans-serif;
    font-weight: 600;
    font-style: normal;
    padding: 18px 50px;
    border-radius: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(200, 0, 0, 0.5);
}

.hero-button button:hover {
    background-color: rgb(160, 0, 0);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 0, 0, 0.6);
}

.hero-button button:active {
    background-color: rgb(140, 0, 0);
    transform: translateY(0);
}

.hero-info {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    width: 100%;
    justify-content: center;
}

.info-box {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 25px 35px;
    border-radius: 15px;
    text-align: center;
    flex: 1;
    max-width: 300px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.info-box:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.info-box h3 {
    color: white;
    font-family: "Prompt", sans-serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.info-box p {
    color: rgba(255, 255, 255, 0.95);
    font-family: "Prompt", sans-serif;
    font-size: 18px;
    font-weight: 400;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.info-box small {
    color: rgba(255, 255, 255, 0.95);
}

/* Sezione Chi Siamo */

.chi-siamo-section {
    width: 100%;
    padding: 80px 20px;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
}

.chi-siamo-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 60px;
}

.chi-siamo-image {
    flex: 1;
    min-width: 300px;
}

.chi-siamo-image img {
    width: 100%;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.chi-siamo-text {
    flex: 1;
    min-width: 300px;
}

.chi-siamo-text h2 {
    color: rgb(200, 0, 0);
    text-shadow: 0 4px 15px rgba(200, 0, 0, 0.2);
    font-family: "Prompt", sans-serif;
    font-size: 42px;
    margin-bottom: 25px;
    font-weight: 600;
}

.chi-siamo-text p {
    color: #555;
    font-family: "Prompt", sans-serif;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
}

.chi-siamo-text span {
    color: rgb(200, 0, 0);
    text-shadow: 0 4px 15px rgba(200, 0, 0, 0.2);
}

/* Sezione Date */

.dates-section {
    width: 100%;
    padding: 80px 20px;
    background-color: white;
    display: flex;
    justify-content: center;
}

.dates-container {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.dates-container h2 {
    color: rgb(200, 0, 0);
    text-shadow: 0 4px 15px rgba(200, 0, 0, 0.2);
    font-family: "Prompt", sans-serif;
    font-size: 42px;
    margin-bottom: 40px;
    font-weight: 600;
}

.dates-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 40px;
    max-width: 600px;
}

.dates-list li {
    color: #555;
    font-family: "Prompt", sans-serif;
    font-size: 16px;
    padding: 12px 24px;
    margin-bottom: 12px;
    background-color: #f5f5f5;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dates-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


.booking-button {
    margin-top: 20px;
}

.booking-button button {
    background-color: rgb(200, 0, 0);
    color: white;
    font-size: 20px;
    font-family: "Prompt", sans-serif;
    font-weight: 600;
    padding: 15px 45px;
    border-radius: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(200, 0, 0, 0.3);
}

.booking-button button:hover {
    background-color: rgb(160, 0, 0);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 0, 0, 0.4);
}

.booking-button button:active {
    background-color: rgb(140, 0, 0);
    transform: translateY(0);
}

.info-notice {
    margin-top: 40px;
    padding: 25px 30px;
    background-color: #fff3cd;
    border-left: 4px solid rgb(200, 0, 0);
    border-radius: 10px;
    text-align: left;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.info-notice h3 {
    color: rgb(200, 0, 0);
    font-family: "Prompt", sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.info-notice p {
    color: #666;
    font-family: "Prompt", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Sezione Eventi */

.events-section {
    width: 100%;
    padding: 80px 20px;
    background-color: white;
    display: flex;
    justify-content: center;
}

.events-container {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.events-container h2 {
    color: rgb(200, 0, 0);
    text-shadow: 0 4px 15px rgba(200, 0, 0, 0.2);
    font-family: "Prompt", sans-serif;
    font-size: 42px;
    margin-bottom: 50px;
    font-weight: 600;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.event-card {
    background-color: white;
    padding: 30px 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    border-top: 4px solid rgb(200, 0, 0);
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.event-date {
    background-color: rgb(200, 0, 0);
    color: white;
    font-family: "Prompt", sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 20px;
}

.event-card h3 {
    color: #333;
    font-family: "Prompt", sans-serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

.event-card p {
    color: #666;
    font-family: "Prompt", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    margin-bottom: 20px;
}

.event-button {
    background-color: rgb(200, 0, 0);
    color: white;
    font-size: 16px;
    font-family: "Prompt", sans-serif;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(200, 0, 0, 0.3);
}

.event-button:hover {
    background-color: rgb(160, 0, 0);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(200, 0, 0, 0.4);
}

.event-button:active {
    background-color: rgb(140, 0, 0);
    transform: translateY(0);
}

/* Empty events / fallback box */

.empty-events-wrap {
    display: flex;
    justify-content: center;
    padding: 40px 0;
    box-sizing: border-box;
}

.empty-event-card {
    background-color: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 15px;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 720px;
    margin: 0;
    color: #856404;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

.empty-event-card h3 {
    color: #856404;
    margin-bottom: 12px;
}

.empty-event-card p {
    color: #856404;
    font-size: 1.03em;
    margin: 6px 0;
}

/* Footer */

.footer {
    width: 100%;
    background-color: #1a1a1a;
    color: white;
    padding: 60px 20px 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    padding-bottom: 40px;
}

.footer-section h3 {
    color: #ccc;
    font-family: "Prompt", sans-serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-section p {
    color: #ccc;
    font-family: "Prompt", sans-serif;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 8px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #ccc;
    font-family: "Prompt", sans-serif;
    font-size: 15px;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: rgb(200, 0, 0);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background-color: #2a2a2a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: rgb(200, 0, 0);
    transform: translateY(-3px);
}

.footer-logo {
    margin-top: 30px;
}

.footer-logo img {
    width: 150px;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo img:hover {
    opacity: 1;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: #999;
    font-family: "Prompt", sans-serif;
    font-size: 14px;
    margin: 0;
}

.footer-bottom a {
    color: #999;
    font-family: "Prompt", sans-serif;
    font-size: 14px;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.made-by {
    text-align: left;
}

.copyright {
    text-align: right;
}


@media screen and (width <=650px) {
    .menubar {
        width: calc(100% - 10px);
        margin-left: 5px;
        margin-right: 5px;
    }

    .menubar img {
        margin-left: 5px;
        height: 35px;
    }

    .menubarcontainer {
        display: none;
    }

    .openNavWrite {
        display: flex;
        height: 50px;
        color: rgba(0, 0, 0, .8);
        margin-left: auto;
        width: auto;
        line-height: 50px;
    }

    .openNavWrite span {
        font-family: 'League Spartan', sans-serif;
        margin-right: 15px;
        font-size: 24px;
    }

    .title {
        padding: 70px 10px 10px 10px;
    }

    .hero-background {
        border-radius: 20px;
        max-height: calc(100vh - 100px);
    }

    .hero-text h1 {
        font-size: 35px;
    }

    .hero-button button {
        font-size: 20px;
        padding: 15px 40px;
    }

    .hero-info {
        flex-direction: column;
        gap: 20px;
        margin-top: 30px;
    }

    .info-box {
        max-width: 100%;
        padding: 20px 25px;
    }

    .info-box h3 {
        font-size: 18px;
    }

    .info-box p {
        font-size: 16px;
    }

    .dates-section {
        padding: 50px 15px;
    }

    .dates-container h2 {
        font-size: 32px;
    }

    .dates-list li {
        font-size: 14px;
        padding: 10px 16px;
    }

    .booking-button button {
        font-size: 18px;
        padding: 14px 38px;
    }

    .info-notice {
        margin-top: 30px;
        padding: 20px 20px;
    }

    .info-notice h3 {
        font-size: 18px;
    }

    .info-notice p {
        font-size: 14px;
    }

    .chi-siamo-section {
        padding: 50px 15px;
    }

    .chi-siamo-container {
        flex-direction: column;
        gap: 30px;
    }

    .chi-siamo-image {
        min-width: 100%;
    }

    .chi-siamo-image img {
        border-radius: 20px;
    }

    .chi-siamo-text {
        min-width: 100%;
    }

    .chi-siamo-text h2 {
        font-size: 32px;
        text-align: center;
    }

    .chi-siamo-text p {
        font-size: 16px;
    }

    .events-section {
        padding: 50px 15px;
    }

    .events-container h2 {
        font-size: 32px;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .event-card {
        padding: 25px 20px;
    }

    .event-card h3 {
        font-size: 20px;
    }

    .event-card p {
        font-size: 14px;
    }

    .event-button {
        font-size: 14px;
        padding: 10px 25px;
    }

    .footer {
        padding: 40px 15px 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-section h3 {
        font-size: 20px;
    }

    .footer-section p {
        font-size: 14px;
    }

    .footer-section ul li a {
        font-size: 14px;
    }

    .social-links {
        justify-content: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .made-by,
    .copyright {
        text-align: center !important;
    }
}