/* Fonts */
:root {
    --font-default:
        "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif,
        "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
        "Noto Color Emoji";
    --font-primary: "Amatic SC", sans-serif;
    --font-secondary: "Inter", sans-serif;
}

/* Colors */
:root {
    --color-default: #212529;
    --color-primary: #ce1212;
    --color-secondary: #37373f;
}

/* Smooth scroll behavior */
:root {
    scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
    font-family: var(--font-default);
    color: var(--color-default);
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    color: #ec2727;
    text-decoration: none;
}

a.active {
    color: #ec2727;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
}

li.corso-item-condivisi {
    list-style-type: disc;
}

span.corso-condiviso {
    color: #ec2727;
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

/*--------------------------------------------------------------
# Sections & Section Header
--------------------------------------------------------------*/
section {
    overflow: hidden;
    padding: 0px 0;
}

.section-bg {
    background-color: #eee;
}

.section-header {
    text-align: center;
    padding-bottom: 30px;
}

.section-header h2 {
    font-size: 13px;
    letter-spacing: 1px;
    font-weight: 400;
    margin: 0;
    padding: 0;
    color: #7f7f90;
    text-transform: uppercase;
    font-family: var(--font-default);
}

.section-header p {
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 0px;
    margin-bottom: 10px;
    font-size: 38px;
    font-weight: 400;
    font-family: var(--font-primary);
}

.card-articolo {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.card-articolo:hover {
    transform: translateY(-5px);
    /* La card si alza leggermente */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Laptop piccoli / tablet orizzontale */
@media (max-width: 1200px) {
    .section-header p {
        font-size: clamp(35px, 1.8vw, 45px);
    }
}

/* Tablet verticale */
@media (max-width: 768px) {
    .section-header p {
        font-size: clamp(25px, 2vw, 35px);
    }
}

/* Smartphone */
@media (max-width: 480px) {
    .section-header p {
        font-size: clamp(20px, 3vw, 25px);
    }
}

.section-header p span {
    color: var(--color-primary);
}

/*--------------------------------------------------------------
# Breadcrumbs
--------------------------------------------------------------*/
.breadcrumbs {
    padding: 15px 0;
    background: rgba(55, 55, 63, 0.05);
    margin-top: 90px;
}

@media (max-width: 575px) {
    .breadcrumbs {
        margin-top: 70px;
    }
}

.breadcrumbs h2 {
    font-size: 24px;
    font-weight: 400;
    margin: 0;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.breadcrumbs ol li+li {
    padding-left: 10px;
}

.breadcrumbs ol li+li::before {
    display: inline-block;
    padding-right: 10px;
    color: #676775;
    content: "/";
}

@media (max-width: 992px) {
    .breadcrumbs .d-flex {
        display: block !important;
    }

    .breadcrumbs h2 {
        margin-bottom: 10px;
    }

    .breadcrumbs ol {
        display: block;
    }

    .breadcrumbs ol li {
        display: inline-block;
    }
}

/*--------------------------------------------------------------
# Scroll top button
--------------------------------------------------------------*/
.scroll-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 11px;
    bottom: 60px;
    z-index: 99;
    background: var(--color-primary);
    width: 44px;
    height: 44px;
    border-radius: 50px;
    transition: all 0.4s;
}

.scroll-top i {
    font-size: 24px;
    color: #fff;
    line-height: 0;
}

.scroll-top:hover {
    background: #ec2727;
    color: #fff;
}

.scroll-top.active {
    visibility: visible;
    opacity: 1;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    overflow: hidden;
    background: #fff;
    transition: all 0.6s ease-out;
    width: 100%;
    height: 100vh;
}

#preloader:before,
#preloader:after {
    content: "";
    position: absolute;
    border: 4px solid var(--color-primary);
    border-radius: 50%;
    animation: animate-preloader 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

#preloader:after {
    animation-delay: -0.5s;
}

@keyframes animate-preloader {
    0% {
        width: 10px;
        height: 10px;
        top: calc(50% - 5px);
        left: calc(50% - 5px);
        opacity: 1;
    }

    100% {
        width: 72px;
        height: 72px;
        top: calc(50% - 36px);
        left: calc(50% - 36px);
        opacity: 0;
    }
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
    [data-aos-delay] {
        transition-delay: 0 !important;
    }
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.header {
    background: #fff;
    transition: all 0.5s;
    z-index: 997;
    height: 90px;
    border-bottom: 1px solid #fff;
}

/*
@media (max-width: 575px) {
  .header {
    height: 70px;
  }
}
*/
.header.sticked {
    border-color: #fff;
    border-color: #eee;
}

.header .logo img {
    max-height: 6rem;
    height: 4.8rem;
    margin-right: 6px;
}

.header .logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    margin: 0;
    font-family: var(--font-secondary);
}

.header .logo h1 span {
    color: var(--color-primary);
}

.header .btn-book-a-table,
.header .btn-book-a-table:focus {
    font-size: 14px;
    color: #fff;
    background: var(--color-primary);
    padding: 8px 20px;
    margin-left: 30px;
    border-radius: 50px;
    transition: 0.3s;
}

.header .btn-book-a-table:hover,
.header .btn-book-a-table:focus:hover {
    color: #fff;
    background: rgba(206, 18, 18, 0.8);
}

section {
    scroll-margin-top: 90px;
}

/*--------------------------------------------------------------
# Desktop Navigation
--------------------------------------------------------------*/
@media (min-width: 1280px) {
    .navbar {
        padding: 0;
    }

    .navbar ul {
        margin: 0;
        padding: 0;
        display: flex;
        list-style: none;
        align-items: center;
    }

    .navbar li {
        position: relative;
    }

    .navbar>ul>li {
        white-space: nowrap;
        padding: 10px 0 10px 28px;
    }

    .navbar a,
    .navbar a:focus {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 3px;
        font-family: var(--font-secondary);
        font-size: 16px;
        font-weight: 600;
        color: #7f7f90;
        white-space: nowrap;
        transition: 0.3s;
        position: relative;
    }

    .navbar a i,
    .navbar a:focus i {
        font-size: 12px;
        line-height: 0;
        margin-left: 5px;
    }

    .navbar>ul>li>a:before {
        content: "";
        position: absolute;
        width: 100%;
        height: 2px;
        bottom: -6px;
        left: 0;
        background-color: var(--color-primary);
        visibility: hidden;
        width: 0px;
        transition: all 0.3s ease-in-out 0s;
    }

    .navbar a:hover:before,
    .navbar li:hover>a:before,
    .navbar .active:before {
        visibility: visible;
        width: 100%;
    }

    .navbar a:hover,
    .navbar .active,
    .navbar .active:focus,
    .navbar li:hover>a {
        color: #000;
    }

    .navbar .dropdown ul {
        display: block;
        position: absolute;
        left: 28px;
        top: calc(100% + 30px);
        margin: 0;
        padding: 10px 0;
        z-index: 99;
        opacity: 0;
        visibility: hidden;
        background: #fff;
        box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
        transition: 0.3s;
        border-radius: 4px;
    }

    .navbar .dropdown ul li {
        min-width: 200px;
    }

    .navbar .dropdown ul a {
        padding: 10px 20px;
        font-size: 15px;
        text-transform: none;
        font-weight: 600;
    }

    .navbar .dropdown ul a i {
        font-size: 12px;
    }

    .navbar .dropdown ul a:hover,
    .navbar .dropdown ul .active:hover,
    .navbar .dropdown ul li:hover>a {
        color: var(--color-primary);
    }

    .navbar .dropdown:hover>ul {
        opacity: 1;
        top: 100%;
        visibility: visible;
    }

    .navbar .dropdown .dropdown ul {
        top: 0;
        left: calc(100% - 30px);
        visibility: hidden;
    }

    .navbar .dropdown .dropdown:hover>ul {
        opacity: 1;
        top: 0;
        left: 100%;
        visibility: visible;
    }
}

.modal-body {
    background-color: #eee;
}

.maestro {
    border: none;
    background-color: #eee;
    font-weight: bold;
    text-decoration: underline;
    color: var(--color-primary);
    margin: 0%;
    padding: 0%;
    display: inline;
}

@media (min-width: 1280px) and (max-width: 1366px) {
    .navbar .dropdown .dropdown ul {
        left: -90%;
    }

    .navbar .dropdown .dropdown:hover>ul {
        left: -100%;
    }
}

@media (min-width: 1280px) {

    .mobile-nav-show,
    .mobile-nav-hide {
        display: none;
    }
}

/*--------------------------------------------------------------
# Mobile Navigation
--------------------------------------------------------------*/
@media (max-width: 1279px) {
    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 400px;
        border-left: 1px solid #666;
        bottom: 0;
        transition: 0.3s;
        z-index: 9997;
    }

    .navbar ul {
        position: absolute;
        inset: 0;
        padding: 50px 0 10px 0;
        margin: 0;
        background: rgba(255, 255, 255, 0.9);
        overflow-y: auto;
        transition: 0.3s;
        z-index: 9998;
    }

    .navbar a,
    .navbar a:focus {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 20px;
        font-family: var(--font-secondary);
        border-bottom: 2px solid rgba(255, 255, 255, 0.8);
        font-size: 16px;
        font-weight: 600;
        color: #7f7f90;
        white-space: nowrap;
        transition: 0.3s;
    }

    .navbar a i,
    .navbar a:focus i {
        font-size: 12px;
        line-height: 0;
        margin-left: 5px;
    }

    .navbar a:hover,
    .navbar li:hover>a {
        color: #000;
    }

    .navbar .active,
    .navbar .active:focus {
        color: #000;
        border-color: var(--color-primary);
    }

    .navbar .dropdown ul,
    .navbar .dropdown .dropdown ul {
        position: static;
        display: none;
        padding: 10px 0;
        margin: 10px 20px;
        transition: all 0.5s ease-in-out;
        border: 1px solid #eee;
    }

    .navbar .dropdown>.dropdown-active,
    .navbar .dropdown .dropdown>.dropdown-active {
        display: block;
    }

    .mobile-nav-show {
        color: var(--color-secondary);
        font-size: 28px;
        cursor: pointer;
        line-height: 0;
        transition: 0.5s;
        z-index: 9999;
        margin: 0 10px 0 20px;
    }

    .mobile-nav-hide {
        color: var(--color-secondary);
        font-size: 32px;
        cursor: pointer;
        line-height: 0;
        transition: 0.5s;
        position: fixed;
        right: 20px;
        top: 20px;
        z-index: 9999;
    }

    .mobile-nav-active {
        overflow: hidden;
    }

    .mobile-nav-active .navbar {
        right: 0;
    }

    .mobile-nav-active .navbar:before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(255, 255, 255, 0.8);
        z-index: 9996;
    }
}

/*--------------------------------------------------------------
# Menu Section
--------------------------------------------------------------*/
.menu .nav-tabs {
    border: 0;
}

.menu .nav-link {
    margin: 0 10px;
    padding: 10px 5px;
    transition: 0.3s;
    color: var(--color-secondary);
    border-radius: 0;
    cursor: pointer;
    height: 100%;
    border: 0;
    border-bottom: 2px solid #b6b6bf;
}

@media (max-width: 575px) {
    .menu .nav-link {
        margin: 0 10px;
        padding: 10px 0;
    }
}

.menu .nav-link i {
    padding-right: 15px;
    font-size: 48px;
}

.menu .nav-link h4 {
    font-size: 18px;
    font-weight: 400;
    margin: 0;
    font-family: var(--font-secondary);
}

@media (max-width: 575px) {
    .menu .nav-link h4 {
        font-size: 16px;
    }
}

.menu .nav-link:hover {
    color: var(--color-primary);
}

.menu .nav-link.active {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.menu .tab-content .tab-header {
    padding: 30px 0;
}

.menu .tab-content .tab-header p {
    font-size: 14px;
    text-transform: uppercase;
    color: #676775;
    margin-bottom: 0;
}

.menu .tab-content .tab-header h3 {
    font-size: 36px;
    font-weight: 600;
    color: var(--color-primary);
}

.menu .tab-content .menu-item {
    -moz-text-align-last: center;
    text-align-last: center;
}

.menu .tab-content .menu-item .menu-img {
    padding: 0 60px;
    margin-bottom: 15px;
}

.menu .tab-content .menu-item h4 {
    font-size: 22px;
    font-weight: 500;
    color: var(--color-secondary);
    font-family: var(--font-secondary);
    font-weight: 30px;
    margin-bottom: 5px;
}

.menu .tab-content .menu-item .ingredients {
    font-family: var(--font-secondary);
    color: #8d8d9b;
    margin-bottom: 5px;
}

.menu .tab-content .menu-item .price {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/

div.space {
    height: 1rem;
}

.footer {
    font-size: 14px;
    background-color: #1f1f24;
    padding: 50px 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer .icon {
    margin-right: 15px;
    font-size: 24px;
    line-height: 0;
}

.footer h4 {
    font-size: 16px;
    font-weight: bold;
    position: relative;
    padding-bottom: 5px;
    color: #fff;
}

.footer .footer-links {
    margin-bottom: 30px;
}

.footer .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer .footer-links ul li {
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.footer .footer-links ul li:first-child {
    padding-top: 0;
}

.footer .footer-links ul a {
    color: rgba(255, 255, 255, 0.6);
    transition: 0.3s;
    display: inline-block;
    line-height: 1;
}

.footer .footer-links ul a:hover {
    color: #fff;
}

.footer .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-right: 10px;
    transition: 0.3s;
}

.footer .social-links a:hover {
    color: #fff;
    border-color: #fff;
}

.footer .copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .credits {
    padding-top: 4px;
    text-align: center;
    font-size: 13px;
}

.footer .credits a {
    color: #fff;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
    width: 100%;
    background-size: cover;
    position: relative;
    /* min-height: 60vh;*/
    padding: 90px 0 20px 0;
}

.hero h2 {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-secondary);
    font-family: var(--font-primary);
}

.hero h2 span {
    color: var(--color-primary);
}

.hero p {
    color: #4f4f5a;
    font-weight: 400;
    margin-bottom: 30px;
}

.swiper-container {
    width: 100%;
}

.swiper-wrapper {
    display: flex;
    align-items: center;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    height: 100%;
    text-align: center;
}

.swiper-slide img {
    max-width: 100%;
    max-height: 90vh;
    height: auto;
    object-fit: contain;
}

@media all and (max-width: 767px) {
    .swiper-slide img {
        max-height: 50vh;
        object-fit: contain;
    }
}

@media all and (min-width: 768px) and (max-width: 899px) {
    .swiper-slide img {
        max-height: 70vh;
    }
}

@media all and (min-width: 900px) and (max-width: 1279px) {
    .swiper-slide img {
        max-height: 90vh;
    }
}

@media all and (min-width: 1280px) and (max-width: 1699px) {
    .swiper-slide img {
        max-height: 85vh;
    }
}

@media all and (min-width: 1700px) {
    .swiper-container {
        height: 100vh;
    }

    .swiper-slide img {
        max-height: 90vh;
    }
}

@media (max-width: 640px) {
    .hero h2 {
        font-size: 36px;
    }

    .hero .container {
        margin-top: 1rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 640px) {
    .hero .container {
        font-size: 36px;
    }

    .hero .btn-get-started,
    .hero .btn-watch-video {
        font-size: 14px;
    }
}

/*--------------------------------------------------------------

# About Section

--------------------------------------------------------------*/

.about .section-header {
    margin-top: 100px;

    margin-bottom: 40px;
}

.about .about-img {
    min-height: 500px;
}

.about .about-img-right {
    max-height: 300px;

    /* margin-left: 1rem; */
}

/* 

@media (max-width: 1000px) {

   

  .about .section-header {

    margin-top: 20px;

    margin-bottom: 40px;

  }

}

*/

@media (max-width: 575px) {
    .about .section-header {
        margin-top: 20px;

        margin-bottom: 40px;
    }

    .about-img {
        display: none;
    }
}

.about h3 {
    font-weight: 700;

    font-size: 36px;

    margin-bottom: 30px;

    font-family: var(--font-secondary);
}

.about .call-us {
    left: 10%;

    right: 10%;

    bottom: 10%;

    background-color: #fff;

    box-shadow: 0px 2px 25px rgba(0, 0, 0, 0.08);

    padding: 20px;

    text-align: center;
}

.about .call-us h4 {
    font-size: 24px;

    font-weight: 700;

    margin-bottom: 5px;

    font-family: var(--font-default);
}

.about .call-us p {
    font-size: 28px;

    font-weight: 700;

    color: var(--color-primary);
}

.about .content ul {
    list-style: none;

    padding: 0;
}

.about .content ul li {
    padding: 0 0 8px 26px;

    position: relative;
}

.about .content ul i {
    position: absolute;

    font-size: 20px;

    left: 0;

    top: -3px;

    color: var(--color-primary);
}

.about .content p:last-child {
    margin-bottom: 0;
}

.corso-item {
    margin-top: 3rem;
}

.card-esposizione .card-body .card-text .esposizione-titolo {
    display: block;

    font-weight: bold;
}

.card-esposizione .card-body .card-text ul.esposizione-descrizione {
    list-style: square;
}

@keyframes pulsate-btn {
    0% {
        transform: scale(0.6, 0.6);

        opacity: 1;
    }

    100% {
        transform: scale(1, 1);

        opacity: 0;
    }
}

/*--------------------------------------------------------------

# Why Us Section

--------------------------------------------------------------*/

#why-us {
    padding-top: 0.5rem;

    padding-bottom: 40px;
}

.why-us p.laboratorio_descrizione {
    font-family: var(--font-default);

    font-size: var(--bs-body-font-size);

    text-align: center;
}

.why-us .why-box {
    padding: 40px;

    background-color: #db7f54;

    color: #fff;
}

.why-us .why-box h3 {
    font-weight: 700;

    font-size: 34px;

    margin-bottom: 30px;
}

.why-us .why-box p {
    margin-bottom: 30px;
}

.why-us .why-box .more-btn {
    display: inline-block;

    background: rgba(255, 255, 255, 0.3);

    padding: 6px 30px 8px 30px;

    color: #fff;

    border-radius: 50px;

    transition: all ease-in-out 0.4s;
}

.why-us .why-box .more-btn i {
    font-size: 14px;
}

.why-us .why-box .more-btn:hover {
    color: var(--color-primary);

    background: #fff;
}

.why-us .icon-box {
    text-align: center;

    background: #fff;

    padding: 40px 30px;

    width: 100%;

    height: 100%;

    border: 1px solid rgba(55, 55, 63, 0.1);

    transition: 0.3s;
}

.why-us .icon-box i {
    color: var(--color-primary);

    margin-bottom: 30px;

    font-size: 32px;

    margin-bottom: 30px;

    background: rgba(206, 18, 18, 0.1);

    border-radius: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 64px;

    height: 64px;
}

.why-us .icon-box h4 {
    font-size: 20px;

    font-weight: 400;

    margin: 0 0 30px 0;

    font-family: var(--font-secondary);
}

.why-us .icon-box p {
    font-size: 15px;

    color: #6c757d;
}

@media (min-width: 1200px) {
    .why-us .icon-box:hover {
        transform: scale(1.1);
    }
}

.corsi-card {
    margin-top: 3em;
}

p.corso-titolo {
    font-weight: bold;
}

.corso-img {
    height: 5em;
}

.corso-descrizioni {
    padding-left: 3rem;

    padding-right: 1.3rem;
}

.corso-immagine {
    max-height: 16rem;
}

.corso-card-content {
    display: flex;

    flex-wrap: wrap;
}

.corso-card-immagine {
    flex: 25%;
}

.corso-card-body {
    flex: 75%;
}

.corso-body {
    padding-right: 0.5rem;
}

@media (max-width: 1000px) {

    .corso-card-immagine,
    .corso-card-body {
        flex: 100%;
    }
}

.corso-card-footer {
    display: flex;

    border-top-style: solid;

    border-top-width: 1px;

    border-top-color: #000;
}

.corso-footer-aggiornamento {
    flex: 85%;

    padding-right: 0.5rem;

    padding-top: 0.5rem;
}

.corso-footer-calendario {
    flex: 15%;
}

.corso-img-calendario {
    margin-top: 0.5rem;

    margin-left: 0.5rem;

    max-height: 3rem;
}

.custom-tooltip {
    --bs-tooltip-bg: var(--bs-primary);
}

.evento_informazione {
    font-size: 1rem;

    font-family: var(--font-secondary);
}

.fc .fc-col-header-cell-cushion {
    color: black !important;
}

/* titolo a capo */

.fc-event-title {
    white-space: normal !important;

    overflow-wrap: break-word;
}

@media (max-width: 767px) {
    .fc .fc-toolbar-title {
        font-size: 1.5rem;
    }

    .fc .fc-scroller,
    .fc .fc-scroller-harness {
        overflow: visible !important;

        -webkit-overflow-scrolling: auto !important;
        /* disabilita effetto momentum iOS */
    }
}

@media (max-width: 767px) {
    /* rimuove scroll interno sui contenitori FullCalendar */
}

/* Giorni normali (lun-sab) */

.fc-daygrid-day-number {
    color: black;
}

/* Domenica */

.fc-day-sun .fc-daygrid-day-number {
    color: red;
}

.accordion-button {
    border-top-left-radius: 0.5rem;

    border-top-right-radius: 0.5rem;
}

.accordion-item {
    border-bottom-left-radius: 0.5rem;

    border-bottom-right-radius: 0.5rem;

    border-top-left-radius: 0.5rem;

    border-top-right-radius: 0.5rem;

    margin-top: 1rem;
}

.accordion {
    border-radius: 10px;

    overflow: hidden;
}

/* Cambia il colore di sfondo del corpo dell'accordion */

.accordion-button {
    background-color: white;
    /* Colore di sfondo */

    border-bottom-left-radius: 0.5rem;

    border-bottom-right-radius: 0.5rem;

    border-top-left-radius: 0.5rem;

    border-top-right-radius: 0.5rem;
}

.accordio-body {
    border-bottom-left-radius: 0.5rem;

    border-bottom-right-radius: 0.5rem;

    border-top-left-radius: 0.5rem;

    border-top-right-radius: 0.5rem;
}

/* Cambia il colore di sfondo quando il pannello è attivo */

.accordion-button:not(.collapsed) {
    background-color: white;
    /* Colore di sfondo attivo */
}

/* Cambia il colore del bottone quando è selezionato o ha il focus */

.accordion-button:focus {
    border-color: white;
    /* Cambia il colore del bordo (esempio: rosso arancio) */

    box-shadow: 0 0 0 0.25rem rgba(255, 87, 51, 0.25);
    /* Cambia l'ombra del focus */
}

/* Cambia il colore del bottone attivo (pannello espanso) */

.accordion-button:not(.collapsed) {
    border-bottom: 1px solid white;
}

/* Rimuovi eventuale bordo inferiore extra sul primo bottone */

.accordion-button:not(.collapsed) {
    border-bottom: none;
    /* Rimuove il bordo inferiore quando il bottone è espanso */
}

/* Per evitare il bordo extra anche quando il primo bottone è chiuso */

.accordion-button {
    border-bottom: 1px solid white;
    /* Imposta un bordo coerente su tutti i bottoni */

    border-bottom-left-radius: 0.5rem;

    border-bottom-right-radius: 0.5rem;
}

.accordion-button {
    border-bottom: 1px solid white;
    /* Imposta un bordo coerente su tutti i bottoni */

    border-bottom-left-radius: 0.5rem;

    border-bottom-right-radius: 0.5rem;
}

.accordion-collapse.show .accordion-body {
    border-bottom: 2px solid white;
    /* Colore del bordo inferiore (puoi personalizzarlo) */

    padding-bottom: 1rem;
    /* Spazio extra per evitare che il bordo si sovrapponga al contenuto */
}

.testimonials .section-header {
    margin-bottom: 40px;

    margin-top: 100px;
}

.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
    overflow: hidden;
}

.testimonials .testimonial-item .testimonial-content {
    padding-left: 30px;
}

.testimonials .testimonial-item .testimonial-content-eventi {
    border-bottom: 3px solid var(--color-primary);

    padding-left: 30px;
}

.testimonials .testimonial-item .testimonial-content-spazi {
    border-left: 3px solid var(--color-primary);

    padding-left: 30px;
}

.testimonials .testimonial-item .testimonial-content-articoli {
    border-left: 3px solid var(--color-primary);

    padding-left: 30px;
}

.testimonials .testimonial-item .testimonial-img {
    border-radius: 50%;

    border: 4px solid #fff;

    margin: 0 auto;
}

.testimonials .testimonial-item h3 {
    font-size: 20px;

    font-weight: bold;

    margin: 10px 0 5px 0;

    color: var(--color-default);

    font-family: var(--font-secondary);
}

.testimonials .testimonial-item h4 {
    font-size: 14px;

    color: #6c757d;

    margin: 0 0 10px 0;

    font-family: var(--font-secondary);
}

.testimonials .testimonial-item .stars i {
    color: #ffc107;

    margin: 0 1px;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
    color: #f05656;

    font-size: 26px;

    line-height: 0;
}

.testimonials .testimonial-item .quote-icon-left {
    display: inline-block;

    left: -5px;

    position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
    display: inline-block;

    right: -5px;

    position: relative;

    top: 10px;

    transform: scale(-1, -1);
}

.testimonials .testimonial-item p {
    font-style: italic;
}

.testimonials .swiper-pagination {
    margin-top: 40px;

    position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
    width: 12px;

    height: 12px;

    background-color: #d1d1d7;

    opacity: 1;
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
    background-color: var(--color-primary);
}

.testimonial-titolo {
    color: #ce1212;

    font-size: 2rem;

    font-weight: 700;
}

/*--------------------------------------------------------------

# Events Section

--------------------------------------------------------------*/

.events .container-fluid {
    padding: 0;
}

.events .event-item {
    background-size: cover;

    background-position: cente;

    min-height: 600px;

    padding: 30px;
}

@media (max-width: 575px) {
    .events .event-item {
        min-height: 500px;
    }
}

.events .event-item:before {
    content: "";

    background: rgba(0, 0, 0, 0.6);

    position: absolute;

    inset: 0;
}

.events .event-item h3 {
    font-size: 24px;

    font-weight: 700;

    margin-bottom: 5px;

    color: #fff;

    position: relative;
}

.events .event-item .price {
    color: #fff;

    border-bottom: 2px solid var(--color-primary);

    font-size: 32px;

    font-weight: 700;

    margin-bottom: 15px;

    position: relative;
}

.events .event-item .description {
    margin-bottom: 0;

    color: rgba(255, 255, 255, 0.9);

    position: relative;
}

@media (min-width: 1200px) {
    .events .swiper-slide-active+.swiper-slide {
        border-left: 1px solid rgba(255, 255, 255, 0.5);

        border-right: 1px solid rgba(255, 255, 255, 0.5);

        z-index: 1;
    }
}

.events .swiper-pagination {
    margin-top: 20px;

    position: relative;
}

.events .swiper-pagination .swiper-pagination-bullet {
    width: 10px;

    height: 10px;

    background-color: #d1d1d7;

    opacity: 1;
}

.events .swiper-pagination .swiper-pagination-bullet-active {
    background-color: var(--color-primary);
}

/*

img.img-laboratorio{

    max-width: 20%;

  

}

 

*/

.laboratorio-lista {
    margin-top: 3rem;
}

p.laboratorio-elenco {
    font-size: 2rem;
}

.laboratorio-fasi {
    text-align: right;
}

.chefs p.esposizione_contatto {
    font-family: var(--font-default);

    font-size: var(--bs-body-font-size);

    text-align: center;
}

.chefs .section-header {
    margin-top: 100px;

    margin-bottom: 40px;
}

.chefs p.laboratorio_descrizione {
    font-family: var(--font-default);

    font-size: var(--bs-body-font-size);

    text-align: center;
}

.chefs .chef-member {
    overflow: hidden;

    text-align: center;

    border-radius: 5px;

    background: #fff;

    box-shadow: 0px 0 30px rgba(55, 55, 63, 0.08);

    transition: 0.3s;
}

.chefs .chef-member .member-img {
    position: relative;

    overflow: hidden;
}

.chefs .chef-member .member-img:after {
    position: absolute;

    content: "";

    left: 0;

    bottom: 0;

    height: 100%;

    width: 100%;

    background: url(../img/team-shape.svg) no-repeat center bottom;

    background-size: contain;

    z-index: 1;
}

.chefs .chef-member .social {
    position: absolute;

    right: -100%;

    top: 30px;

    opacity: 0;

    border-radius: 4px;

    transition: 0.5s;

    background: rgba(255, 255, 255, 0.3);

    z-index: 2;
}

.chefs .chef-member .social a {
    transition: color 0.3s;

    color: rgba(55, 55, 63, 0.4);

    margin: 15px 12px;

    display: block;

    line-height: 0;

    text-align: center;
}

.chefs .chef-member .social a:hover {
    color: rgba(55, 55, 63, 0.9);
}

.chefs .chef-member .social i {
    font-size: 18px;
}

.chefs .chef-member .member-info {
    padding: 10px 15px 20px 15px;
}

.chefs .chef-member .member-info h4 {
    font-weight: 700;

    margin-bottom: 5px;

    font-size: 20px;

    color: var(--color-secondary);
}

.chefs .chef-member .member-info span {
    display: block;

    font-size: 14px;

    font-weight: 400;

    color: rgba(33, 37, 41, 0.4);
}

.chefs .chef-member .member-info p {
    font-style: italic;

    font-size: 14px;

    padding-top: 15px;

    line-height: 26px;

    color: rgba(33, 37, 41, 0.7);
}

.chefs .chef-member:hover {
    transform: scale(1.08);

    box-shadow: 0px 0 30px rgba(55, 55, 63, 0.15);
}

.chefs .chef-member:hover .social {
    right: 8px;

    opacity: 1;
}

/*--------------------------------------------------------------

# Hero Section

--------------------------------------------------------------*/

/********************************************/

/* The Modal (background) */

.esposizione-modal {
    display: none;
    /* mostra la modale per il test */

    position: fixed;

    z-index: 99;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    padding-top: 100px;

    background-color: rgba(0, 0, 0, 0.9);

    overflow-y: auto;
    /* invece di hidden */
}

/* Container che divide immagine + testo */

/* aggiunta oggi  */

.modal-content-flex {
    display: flex;

    flex-direction: row;

    align-items: flex-start;

    gap: 20px;

    max-width: 90%;

    margin: auto;

    background-color: #fff;

    padding: 20px;

    border-radius: 10px;
}

/* fine aggiunta*/

/* Modal Content (image) */

.esposizione-modal-content {
    max-height: 80vh;

    width: auto;

    border-radius: 8px;
}

.accordion-button span {
    font-weight: 400;
    /* Forza il 'con' a essere sottile */
}

.relatore-highlight {
    color: #ec2727;

    font-weight: 700 !important;
    /* Forza il nome a essere bold */

    font-size: 1.2rem;

    letter-spacing: 0.1em;

    white-space: nowrap;
}

/* Stile per le Tab della Pagina Eventi */

#pills-tab .nav-link {
    background-color: #fff;

    color: #333;

    border: 1px solid #ddd;

    font-weight: 500;
}

#pills-tab .nav-link.active {
    background-color: #ec2727 !important;
    /* Rosso Sabina */

    color: #fff !important;

    border-color: #ec2727;
}

/* Effetto "Svolto" per l'Archivio */

#passati .postcard {
    filter: grayscale(0.4);

    border-left: 5px solid #6c757d !important;
    /* Bordo grigio per l'archivio */
}

.card-parlante {
    transition: all 0.3s ease;

    border-radius: 15px;

    background: #fff;

    display: flex;

    flex-direction: column;
}

.card-parlante:hover {
    transform: translateY(-10px);

    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Differenziazione per tipo */

.card-articolo {
    border-top: 5px solid #222 !important;
}

.card-evento {
    border-top: 5px solid #ec2727 !important;
    /* Rosso Sabina */
}

.type-badge {
    font-size: 0.75rem;

    letter-spacing: 1px;

    text-transform: uppercase;

    color: #888;
}

.relatore-highlight {
    color: #ec2727;

    font-weight: 700;

    font-size: 0.9rem;

    letter-spacing: 0.05em;

    text-transform: uppercase;
}

:target .gallery-card {
    border: 2px solid #dc3545 !important;
    /* Il tuo rosso text-danger */

    box-shadow: 0 0 15px rgba(220, 53, 69, 0.5) !important;

    animation: highlight-pulse 2s ease-out;
}

@keyframes highlight-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.card-title {
    color: #2c3e50;

    line-height: 1.3;
}

/* Toglie i bordi di default per far risaltare solo il tuo colore di sfondo */

.fc-event {
    border: none !important;
}

/* Rende il cursore a manina per far capire che l'evento è cliccabile */

.fc-event:hover {
    cursor: pointer;

    opacity: 0.85;

    transition: opacity 0.2s;
}

/* Caption of Modal Image */

/* Add Animation */

.esposizione-modal-content,
#esposizione-caption {
    -webkit-animation-name: zoom;

    -webkit-animation-duration: 0.6s;

    animation-name: zoom;

    animation-duration: 0.6s;
}

.text-overlay {
    position: static;
    /* Rimuove il posizionamento assoluto */

    opacity: 1;
    /* Rende visibile il contenuto */

    background-color: transparent;

    color: black;

    margin: 0;

    flex: 1;

    padding-top: 0.5rem;
}

/* The Close Button */

.modal-esp-body {
    text-align: left;

    padding-left: 0.5rem;
}

.close {
    border-top-left-radius: 0.3rem;

    border-bottom-right-radius: 0.3rem;

    font-weight: bold;

    text-align: center;

    padding-left: 0.5rem;

    padding-right: 0.7rem;

    padding-top: 0.5rem;

    padding-bottom: 0.5rem;

    cursor: pointer;

    top: 0.4rem;

    left: 0.2rem;

    font-size: 1rem;

    font-style: bold;

    background-color: black;

    color: white;
}

#titolo_esp {
    font-weight: bold;

    margin-top: 3rem;

    margin-bottom: 2rem;

    font-size: 1.4rem;
}

.modal-esp-p {
    font-size: 0.9rem;
}

.esp_smart_descr_lg {
    display: block;

    position: absolute;

    top: 4%;
    /* Sposta il testo al centro verticale */

    left: 50%;
    /* Sposta il testo al centro orizzontale */

    transform: translate(-50%, -50%);
    /* Perfetto centraggio */

    color: white;
    /* Testo bianco */

    background: rgba(0, 0, 0, 6);
    /* Sfondo semi-trasparente */

    width: 80%;

    font-size: 0.8rem;

    border-radius: 0.3rem;

    text-align: center;

    cursor: pointer;

    padding-top: 0.5rem;

    padding-bottom: 0.5rem;
}

#esp_smart_descr {
    display: block;

    position: absolute;

    top: 5%;
    /* Sposta il testo al centro verticale */

    left: 50%;
    /* Sposta il testo al centro orizzontale */

    transform: translate(-50%, -50%);
    /* Perfetto centraggio */

    color: white;
    /* Testo bianco */

    background: rgba(0, 0, 0, 6);
    /* Sfondo semi-trasparente */

    font-size: 0.8rem;

    border-radius: 0.3rem;

    text-align: center;

    padding-left: 2rem;

    padding-right: 2rem;

    padding-top: 0.5rem;

    padding-bottom: 0.5rem;

    cursor: pointer;
}

#img01 {
    flex: 0 0 35%;
}

@media (max-width: 768px) {
    .esposizione-modal {
        padding-bottom: 30px;
    }

    .modal-content-flex {
        flex-direction: column;

        align-items: center;

        text-align: center;

        padding-bottom: 30px;
    }

    .image-container {
        width: 100%;
    }

    .text-overlay {
        width: 100%;

        margin-top: 20px;

        padding-bottom: 20px;
    }

    .esposizione-modal-content {
        max-width: 100%;

        height: auto;
    }
}

/* 100% Image Width on Smaller Screens */

@media only screen and (max-width: 600px) {
    .esposizione-modal-content {
        /* height: 90%; */

        width: 100%;
    }

    /* .esp_smart_descr_lg {

        display: none;

    }*/
}

.image-container {
    position: relative;

    margin: 0 auto;

    transition: transform 0.3s ease;
}

.image-container img {
    width: 100%;

    height: 100%;

    border-radius: 0.3rem;

    transition: transform 0.3s ease;
}

/*

.image-container:hover img {

  transform: rotate(180deg);

}

*/

/*

.image-container:hover .text-overlay { 

    opacity: 1;

}

*/

@-webkit-keyframes zoom {
    from {
        -webkit-transform: scale(0);
    }

    to {
        -webkit-transform: scale(1);
    }
}

@keyframes zoom {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

/**********************************************/

.light {
    background-color: #ffffff;
}

/* Cards */

.postcard {
    flex-wrap: wrap;

    display: flex;

    box-shadow: 0 4px 21px -12px rgba(0, 0, 0, 0.66);

    background-image: linear-gradient(90deg, #ffffff, #eeeeee);

    border-radius: 10px;

    margin: 0 0 2rem 0;

    overflow: hidden;

    position: relative;
}

h1,
.h1 {
    margin-bottom: 0.5rem;

    font-weight: 500;

    line-height: 1.2;
}

/* Laptop piccoli / tablet orizzontale */

@media (max-width: 1200px) {
    .section-header h1 {
        font-size: clamp(40px, 1.8vw, 45px);
    }
}

.small {
    font-size: 80%;
}

.postcard__title {
    font-size: 1.75rem;
}

.postcard__img {
    max-height: 180px;

    width: 100%;

    object-fit: cover;

    position: relative;
}

.postcard__img_link {
    display: contents;
}

.postcard__bar {
    width: 50px;

    height: 10px;

    margin: 10px 0;

    border-radius: 5px;

    background-color: rgba(206, 18, 18, 0.8);

    transition: width 0.2s ease;
}

.postcard__text {
    padding: 1.5rem;

    position: relative;

    display: flex;

    flex-direction: column;

    width: 100%;
}

.postcard__preview-txt {
    overflow: hidden;

    text-overflow: ellipsis;

    text-align: justify;

    height: 100%;
}

.postcard__tagbox {
    display: flex;

    flex-flow: row wrap;

    /*font-size: 14px;*/

    margin: 10px 0 0 0;

    padding: 0;

    justify-content: center;

    list-style-type: none;
}

@media screen and (min-width: 769px) {
    .postcard {
        flex-wrap: inherit;
    }
}

@media screen and (min-width: 1024px) {
    .postcard__text {
        padding: 2rem 3.5rem;
    }
}

.tag__item {
    margin-left: 2rem;
}

a.locandina {
    /*color:#000; */

    color: rgba(206, 18, 18, 0.8);

    text-decoration: underline;

    font-weight: bold;
}

a.corsi_calendario {
    color: rgba(206, 18, 18, 0.8);

    text-decoration: underline;

    font-weight: bold;
}

a.locandina:hover {
    text-decoration: underline;

    text-decoration-color: #000;

    text-decoration-thickness: 2px;
}

a.corsi_calendario:hover {
    text-decoration: underline;

    text-decoration-color: #000;

    text-decoration-thickness: 2px;
}

#favDialog {
    background-color: #eee;
}

/*******************************************************/

.contact .section-header {
    margin-top: 100px;

    margin-bottom: 40px;
}

.contact .info-item {
    background: #f4f4f4;

    padding: 30px;

    height: 100%;
}

.contact .info-item .icon {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 56px;

    height: 56px;

    font-size: 24px;

    line-height: 0;

    color: #fff;

    background: var(--color-primary);

    border-radius: 50%;

    margin-right: 15px;
}

.contact .info-item h3 {
    font-size: 20px;

    color: #6c757d;

    font-weight: 700;

    margin: 0 0 5px 0;
}

.contact .info-item p {
    padding: 0;

    margin: 0;

    line-height: 24px;

    font-size: 14px;
}

.contact .info-item .social-links a {
    font-size: 24px;

    display: inline-block;

    color: rgba(55, 55, 63, 0.7);

    line-height: 1;

    margin: 4px 6px 0 0;

    transition: 0.3s;
}

.contact .info-item .social-links a:hover {
    color: var(--color-primary);
}

@keyframes animate-loading {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.switch {
    position: relative;

    display: inline-block;

    width: 50px;

    height: 28px;

    margin-right: 8px;
}

/* Nasconde la checkbox reale */

.switch input {
    opacity: 0;

    width: 0;

    height: 0;
}

/* Slider */

.slider {
    position: absolute;

    cursor: pointer;

    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background-color: #ccc;

    transition: 0.4s;

    border-radius: 34px;
}

.slider:before {
    position: absolute;

    content: "";

    height: 22px;

    width: 22px;

    left: 3px;

    bottom: 3px;

    background-color: white;

    transition: 0.4s;

    border-radius: 50%;
}

input:checked+.slider {
    background-color: #4caf50;
}

input:checked+.slider:before {
    transform: translateX(22px);
}

.opendyslexic-enabled {
    font-family: "OpenDyslexic", sans-serif !important;
    background-color: #fefae0;
    font-size: 1.1em;
    line-height: 1.6;
}

.swiper-container {
    overflow: hidden;
    position: relative;
}

.swiper-container .swiper-slide {
    width: 100% !important;
    /* Forza la larghezza piena per l'effetto fade */
}

.btn-link-inline {
    background: none;
    border: none;
    color: var(--color-primary);
    /* Usa il colore principale del tuo template */
    padding: 0;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
    display: inline;
}

.btn-link-inline:hover {
    color: var(--color-secondary);
    text-decoration: none;
}

.title-accent {
    font-size: 1.2rem;
    color: var(--color-secondary);
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.gallery-card {
    transition: transform 0.3s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
    cursor: pointer;
    color: white;
    font-weight: bold;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.esposizione-modal-content {
    max-width: 100%;
    height: auto;
    max-height: 70vh;
    /* Impedisce che l'immagine diventi troppo alta su mobile */
    object-fit: contain;
    /* Mantiene le proporzioni senza tagliarla */
    display: block;
}

/* Contenitore principale */

#esposizione-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    padding: 10px;
    /* Spazio dai bordi su mobile */
}

/* Box della modale */

.modal-container-custom {
    position: relative;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
    /* Non esce mai dallo schermo */
    overflow-y: auto;
    /* Scroll se il testo è lungo su mobile */
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Immagine adattiva */

.esposizione-modal-content {
    max-height: 60vh;
    /* Su mobile l'immagine occupa il 60% dell'altezza */
    object-fit: contain;
}

@media (min-width: 992px) {
    .modal-container-custom {
        overflow: hidden;
        /* Su desktop niente scroll esterno */
    }

    .esposizione-modal-content {
        max-height: 80vh;
        /* Su desktop più grande */
    }
}

/* Bottone chiusura per mobile (la X in alto a destra sopra l'immagine) */

.btn-close-mobile {
    position: absolute;
    top: 10px;
    right: 15px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

.fc-daygrid-event {
    white-space: normal !important;
    /* Permette il ritorno a capo */
    display: block !important;
}

.fc-event-main {
    display: block !important;
    white-space: normal !important;
    overflow-wrap: break-word;
    /* Spezza le parole troppo lunghe */
    padding: 2px !important;
}

/* Rimuove l'icona del punto o l'ora standard che FullCalendar mette di default */

.fc-daygrid-event-dot,
.fc-event-time {
    display: none !important;
}

.fc-event-title-custom {
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 3px;
    display: block;
}

.fc-event-time-custom {
    font-size: 0.85em;
    color: inherit;
    opacity: 0.9;
    display: block;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    /* Una linea sottile di separazione */
    padding-top: 2px;
}