@font-face {
    font-family: 'Harting';
    src: url('fonts/Harting.ttf') format('truetype');
}

@font-face {
    font-family: 'CutiveMono';
    src: url('fonts/CutiveMono-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'CutiveRegular';
    src: url('fonts/Cutive-Regular.ttf') format('truetype');
}

h1 {
    font-family: 'Harting', serif;
}

/* Impedisce la selezione del testo su tutta la pagina */
body {
    user-select: none;
    /* Disabilita la selezione del testo */
    -webkit-user-select: none;
    /* Per browser basati su WebKit */
    -moz-user-select: none;
    /* Per Firefox */
    -ms-user-select: none;
    /* Per Internet Explorer/Edge */

    background-color: #f9f5ee;
}

.hero-section {
    position: relative;
    overflow: hidden;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 4rem;
    /* lascia spazio inferiore per il contenuto */
    color: white;
    text-align: center;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/img_home3.jpg');
    /* Sostituisci con il percorso della tua immagine */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    animation: zoomInOut 10s infinite alternate;
}



.footer-daflab
{
    font-family: 'CutiveRegular', monospace;
    background-color: white;
    color: #4b4e63;
    font-size: 0.8rem;
    box-shadow: 0px -4px 20px rgba(0, 0, 0, 0.1);
}

.footer-loghi
{
    height:40px;
    margin-bottom: 10px;
}

.footer-legal-links {
    margin: 0.4rem 0;
}

.footer-legal-links a {
    color: #4b4e63;
    text-decoration: underline;
}

.footer-legal-links a:hover {
    color: #78acaf;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    padding: 14px;
    background: rgba(255, 255, 255, 0.98);
    color: #4b4e63;
    border-top: 1px solid rgba(75, 78, 99, 0.18);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.08);
}

.cookie-banner-content {
    max-width: 1080px;
    margin: 0 auto;
}

.cookie-banner-title {
    margin: 0;
    font-family: 'CutiveRegular', monospace;
    font-size: 1rem;
}

.cookie-banner-text {
    margin: 6px 0 12px;
    font-family: 'CutiveMono', monospace;
    font-size: 0.9rem;
    line-height: 1.45;
}

.cookie-banner-text a {
    color: #3b8f94;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-cookie-primary,
.btn-cookie-secondary {
    border-radius: 6px;
    border: 1px solid transparent;
    font-family: 'CutiveMono', monospace;
    font-size: 0.85rem;
    padding: 6px 12px;
}

.btn-cookie-primary {
    background: #78acaf;
    color: #fff;
}

.btn-cookie-secondary {
    background: #ffffff;
    border-color: #4b4e63;
    color: #4b4e63;
}

@media (max-width: 576px) {
    .cookie-banner {
        padding: 12px;
    }

    .cookie-banner-actions {
        flex-direction: column;
    }
}



@keyframes zoomInOut {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-section h1 {
    font-size: 3.5rem;
    /*font-weight: bold;*/
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

section {
    padding: 60px 0;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

footer {
    background-color: #333;
    color: #fff;
}


/* Stile per i pulsanti nella Hero Section */
.hero-section .btn {
    font-family: 'Harting', sans-serif;
    /* Usa il font Harting */
    font-size: 1.2rem;
    /* Dimensione del testo */
    font-weight: bold;
    border-radius: 50px;
    /* Angoli arrotondati */
    padding: 10px 30px;
    /* Spaziatura interna */
    text-transform: uppercase;
    /* Testo maiuscolo */
    border: none;
    /* Rimuove il bordo */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    /* Aggiunge un'ombra */
    transition: all 0.3s ease;
    /* Animazione al passaggio del mouse */
}

/* Colore specifico per il pulsante Servizi */
.hero-section .btn-primary {
    background-color: #78acaf;
    /*  #a2af78; */
    /* Colore verde acqua */
    color: white;
    font-family: 'CutiveMono', monospace;
    /* Imposta il font CutiveMono */
    font-size: 1.8rem;
    /* Imposta la dimensione del font */
    font-weight: normal;
    text-transform: none;
    /* Mantiene il testo così com'è scritto */
}

/* Colore specifico per il pulsante Contatti */
.hero-section .btn-secondary {
    background-color: #ad6c35;
    /* #b8a089; */
    /* Colore beige */
    color: white;
    font-family: 'CutiveMono', monospace;
    /* Imposta il font CutiveMono */
    font-size: 1.8rem;
    /* Imposta la dimensione del font */
    font-weight: normal;
    text-transform: none;
    /* Mantiene il testo così com'è scritto */
}

/* Effetto hover per entrambi i pulsanti */
.hero-section .btn:hover {
    transform: scale(1.05);
    /* Leggero ingrandimento */
    box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.3);
    /* Ombra più intensa */
}

/* Stile per i link della navbar */
.navbar .nav-link {
    font-family: 'CutiveMono', monospace;
    font-size: 1rem;
    /* Dimensione del testo */
    color: #333;
    /* Colore del testo */
    transition: color 0.3s ease;
    /* Animazione al passaggio del mouse */
}

/* Effetto hover per i link della navbar */
.navbar .nav-link:hover {
    color: #6eb5aa;
    /* Cambia colore al passaggio del mouse */
}

.navbar .nav-item:not(:last-child) {
    margin-right: 15px;
}

.navbar {
    background-color: #ffffff;
    /* Sfondo bianco */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    /* Aggiunge un'ombra */
    z-index: 1020;
    /* Assicura che la navbar sia sopra gli altri elementi */
}

.navbar-controls .navbar-toggler {
    border: 0;
    box-shadow: none;
}

.btn-lang-dropdown,
.nav-lang-toggle {
    font-family: 'CutiveMono', monospace;
    font-size: 0.9rem;
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: #fff;
    border-radius: 6px;
    padding: 4px 10px;
    text-decoration: none;
}

.btn-lang-dropdown:hover,
.btn-lang-dropdown:focus,
.nav-lang-toggle:hover,
.nav-lang-toggle:focus {
    color: #333;
    border-color: #78acaf;
    box-shadow: none;
}

.nav-lang-toggle {
    border: none;
    background: transparent;
    padding: 8px 12px;
}

.lang-dropdown-mobile .dropdown-menu,
.nav-item.dropdown .dropdown-menu {
    min-width: 88px;
}

.lang-dropdown-mobile .dropdown-item.active,
.nav-item.dropdown .dropdown-item.active {
    background-color: #78acaf;
}

/* Stile per la sezione Servizi */
/* #servizi {
    background-color: #e9e8e0;
    border-radius: 10px;
    padding: 40px;
} */

#servizi h2,
#bio h2,
#blog h2,
#collaborazioni h2,
#contatti h2 {
    font-family: 'CutiveRegular', monospace;
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-decoration: underline;
    /*color: #64654b;*/
    color: #472a09;
}

.icon-service {
    width: 64px;
    height: 64px;
}

.img-50 {
    max-width: 50%;
}

#servizi h5 {
    font-family: 'CutiveRegular', monospace;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

#servizi p, #servizi ul {
    /* font-family: 'CutiveMono', monospace; */
    font-family: 'CutiveRegular';
    font-size: 1rem;
    margin-bottom: 15px;
    color: #060101;
    text-align: justify;
}

#servizi li {
    margin-top: 16px;
    text-align: left;
}


.d-flex.align-items-start {
    margin-right: 60px;
    align-items: center !important;
}

#bio .d-flex.align-items-start {
    align-items: flex-start !important;
    /* Sovrascrive lo stile per la sezione Biografia */
}

.services-box, .generic-box {
    background-color: #ffffff;
    /* Sfondo bianco del riquadro */
    border-radius: 15px;
    /* Angoli stondati */
    max-width: 1540px;
    /*1284px; */
    /* Larghezza massima */
    width: 100%;
    /* Adatta alla larghezza del contenitore */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    /* Ombra */
}

.services-box h2 {
    font-family: 'Harting', serif;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.services-box h5 {
    font-family: 'CutiveMono', monospace;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.services-box p {
    font-family: 'CutiveMono', monospace;
    font-size: 1rem;
    margin-bottom: 5px;
    color: #555;
}

hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 20px 0;
}

.separator {
    width: 80%;
    /* Larghezza del separatore */
    max-width: 456px;
    height: auto;
    /* Mantiene le proporzioni */
    margin: 20px auto;
    /* Centra l'immagine e aggiunge margini verticali */
    display: block;
    /* Assicura che l'immagine sia un elemento a blocco */
}

.distanza-testi-servizi {
    margin-left: 64px;
}

/* Stile per la sezione Biografia */
#bio, #servizi {
    background-color: #f9f5ee;
    padding: 60px 0;
}

.bio-box, .servizi-box {
    background-color: #ffffff;
    /* Sfondo bianco del riquadro */
    border-radius: 15px;
    /* Angoli stondati */
    max-width: 1560px;
    /* Larghezza massima */
    width: 100%;
    /* Adatta alla larghezza del contenitore */
    padding: 40px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    /* Ombra */
}

/*
#bio h2 {
    font-family: 'Harting', serif;
    font-size: 2.5rem;
    color: #2d3e3f; 
    text-decoration: underline; 
    margin-bottom: 30px;
}
*/

.icon-bio {
    width: 64px;
    height: 64px;
    margin-right: 20px;
}

#bio p, #blog p {
    /* font-family: 'CutiveMono', monospace; */
    font-family: 'CutiveRegular';
    font-size: 1rem;
    color: #607475; /* #2d3e3f; */
    /* Colore del testo */
    text-align: justify;
    line-height: 1.8;
    /* Altezza della linea */
    margin-bottom: 15px;
}

.separator {
    width: 80%;
    /* Larghezza del separatore */
    max-width: 456px;
    height: auto;
    /* Mantiene le proporzioni */
    margin: 20px auto;
    /* Centra l'immagine e aggiunge margini verticali */
    display: block;
    /* Assicura che l'immagine sia un elemento a blocco */
}



/* Stile per la sezione Collaborazioni */
#collaborazioni {
    background-color: #e9e8e0;
    /* Sfondo della sezione */
    padding: 60px 0;
}

.collaborazioni-box {
    background-color: #ffffff;
    /* Sfondo bianco del riquadro */
    border-radius: 15px;
    /* Angoli stondati */
    max-width: 1284px;
    /* Larghezza massima */
    width: 100%;
    /* Adatta alla larghezza del contenitore */
    padding: 40px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    /* Ombra */
}

/* #collaborazioni h2 {
    font-family: 'Harting', serif;
    font-size: 2.5rem;
    color: #64654b;
    text-decoration: underline;
    margin-bottom: 20px;
} */

#collaborazioni p {
    font-family: 'CutiveMono', monospace;
    font-size: 1rem;
    color: #333;
    text-align: justify;
    line-height: 1.8;
}

.icon-collab {
    width: 180px;
    height: auto;
    /* margin-right: 20px; */
}

.partner-intro {
    text-align: center !important;
    max-width: 980px;
    margin: 0 auto;
}

.partner-logo-card {
    background: #fffdfb;
    border: 1px solid #ece4d8;
    border-radius: 14px;
    min-height: 220px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.partner-logo-img {
    max-width: 100%;
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
}




/* Stile per la sezione Contatti */
#contatti {
    background-color: #4b4e63;
    /* Sfondo scuro */
    padding: 60px 0;
}

/* Stile per il contenitore della sezione Contatti */
.contact-box {
    background-color: #ffffff;
    /* Sfondo bianco */
    border-radius: 15px;
    /* Angoli arrotondati */
    padding: 40px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    /* Ombra */
    max-width: 1284px;
    /* Larghezza massima */
    width: 100%;
    /* Adatta alla larghezza del contenitore */
}

/* #contatti h2 {
    font-family: 'Harting', serif;
    font-size: 2.5rem;
    color: #4b4e63;
    text-decoration: underline;
    margin-bottom: 20px;
} */

#contatti p, #contatti h5, #contatti h3, #contatti ul
{
    font-family: 'CutiveMono', monospace;    
}

#contatti p {
    /* font-family: 'CutiveMono', monospace; */
    font-size: 20px;
    color: #ffffff;
    text-align: center;
    line-height: 1.8;
}


#contatti h3 {
    font-weight: bold;
    /* Grassetto */
    /* text-decoration: underline; */
}


/* Stile per i titoli h5 nella sezione Contatti */
#contatti h5 {
    /* font-family: 'CutiveMono', monospace; */
    /* Font CutiveMono */
    font-weight: bold;
    /* Grassetto */
    font-size: 22px;
    color: #4b4e63;
    /* Colore esistente */
    margin-bottom: 0px;
    /* Spaziatura inferiore */
}

.icon-contact {
    max-height: 50px;
    /* Altezza massima */
    width: auto;
    /* Larghezza automatica */
    display: block;
    /* Assicura che l'icona si comporti come un blocco */
    margin: 0 auto;
    /* Centra l'icona orizzontalmente */
}

/* Stile per i label del form nella sezione Contatti */
#contatti .form-label {
    font-family: 'CutiveMono', monospace;
    /* Font CutiveMono */
    font-weight: bold;
    /* Grassetto */
    font-size: 20px;
    text-decoration: underline;
    /* Sottolineato */
    color: #4b4e63;
    /* Colore esistente */
}

/* Stile per gli input del form nella sezione Contatti */
#contatti .form-control {
    width: 80%;
    font-family: 'CutiveMono';
    border: none;
    /* Rimuove tutti i bordi */
    border-bottom: 2px solid #4b4e63;
    /* Aggiunge solo il bordo inferiore */
    border-radius: 0;
    /* Rimuove gli angoli arrotondati */
    background-color: transparent;
    /* Sfondo trasparente */
    box-shadow: none;
    /* Rimuove eventuali ombre */
    padding: 5px 0;
    /* Riduce il padding per un aspetto più pulito */
}

#contatti .form-control:focus {
    outline: none;
    /* Rimuove il contorno di focus */
    border-bottom: 2px solid #78acaf;
    /* Cambia il colore del bordo inferiore al focus */
}

#contatti .btn-primary {
    font-family: 'CutiveMono', monospace;
    font-size: 1.2rem;
    background-color: #b8a089;
    color: #ffffff;
    border: none;
    padding: 10px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

#contatti .btn-primary:hover {
    background-color: #a07c6a;
    transform: scale(1.05);
}

/* Stile per la textarea del form nella sezione Contatti */
#contatti .form-control#messaggio {
    width: 100%;
    border: 2px solid #4b4e63;
    /* Bordo visibile su tutti i lati */
    border-radius: 10px;
    /* Angoli leggermente arrotondati */
    height: 160px;
    /* Altezza fissa */
    resize: none;
    /* Disabilita il ridimensionamento */
    background-color: transparent;
    /* Sfondo trasparente */
    box-shadow: none;
    /* Rimuove eventuali ombre */
    padding: 10px;
    /* Spaziatura interna */
}

#contatti .form-control#messaggio:focus {
    outline: none;
    /* Rimuove il contorno di focus */
    border-color: #78acaf;
    /* Cambia il colore del bordo al focus */
}

/* Stile per il riquadro del form */
.form-container {
    background-color: #ffffff;
    /* Sfondo bianco */
    border-radius: 15px;
    /* Angoli stondati */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    /* Ombra */
    padding: 20px;
    /* Spaziatura interna */
    margin: 0px auto 20px;
    /* margin-top: 20px;  */
    max-width: 900px;
    /* Larghezza massima */
    width: 100%;
    /* Adatta alla larghezza del contenitore */
}

/* Loader styles */
#loader {
    background-color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 1s ease-out;
}

#loader.hidden {
    opacity: 0;
    pointer-events: none;
}

#loader img {
    width: 150px;
    height: auto;
}

#loader p {
    font-family: 'Cutive Mono', monospace;
    color: #4b4e63;
    margin-top: 20px;
}


/* Stile base per la freccia SVG animata */
.freccia-animata {
    display: inline-block;
    width: 30px;
    height: 30px;
    vertical-align: middle;
    margin-left: 8px;
    color: #6b3f2a;
    /* Colore marrone (usato da stroke via currentColor) */
    transform: translateX(0);
    will-change: transform;
    animation: frecciaMove 1s ease-in-out infinite alternate;
}

.link-pagine {
    float: right;
    margin-right: 100px;
    margin-top: 30px;
    text-decoration: none;
    color: black;
    font-family: 'CutiveRegular';
    font-size: 1.5rem;
}


.card-servizi, .card-blog {
    background-color: #fffdfb;
    /* #ffffff; */
    /* Sfondo bianco del riquadro */
    border-radius: 14px;
    /* Angoli stondati */
    max-width: 1284px;
    /* Larghezza massima */
    /* width: 18%; */
    /* Adatta alla larghezza del contenitore */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    /* Ombra */
    padding: 20px;
    margin: 1%;
}

.card-servizi
{
    width: 18%;
}


.card-blog
{
    padding: 0px;
    width: 31%;
    min-height:400px; 
    overflow:hidden; 
    /* border: 1px solid #e6e0d6; */
    box-shadow:0 6px 18px rgba(0,0,0,0.08);
    transform: scale(1);
    transform-origin: center center;
    transition: transform 0.3s ease;
    will-change: transform;
}

.card-blog:hover
{
    transform: scale(1.03);
}


.div-img-card-blog
{
    height:200px; overflow:hidden; 
}

.img-card-blog
{
    width:100%; height:auto; display:block; object-fit:cover;
}

.card-tag,
.card-tag-storia,
.card-tag-eventi,
.card-tag-laboratori,
.card-tag-news,
.card-tag-generale
{
    padding:6px 12px;
    height:40px; 
    margin-left: 20px;
    border-radius: 8px;
    color:#fff;  

    font-family: "CutiveRegular", monospace;
    /* font-weight:600;  */
    font-size:1.1rem;
}

.card-tag-storia
{
    background-color: #c08d5f;
}

.card-tag-eventi
{
    background-color:#7a7e5a;
}

.card-tag-laboratori
{
    background-color:#4f7f8b;
}

.card-tag-news
{
    background-color:#6b5a7a;
}

.card-tag-generale
{
    background-color:#7c756e;
}

.div-card-tag
{
    margin-top:-20px;
}

.titolo-card-blog
{
    margin:0 0 10px; font-family: 'CutiveRegular', monospace; font-size:1.35rem; text-align:center; color:#3e4438; padding:0 20px;
}

.data-card-blog
{
    margin:0 0 5px !important; color:#7a7a6f !important; padding:0 20px; font-size: 1.1rem !important;
}

.link-blog
{
    background:#c27655; color:#fff; padding:10px 28px; border-radius:24px; text-decoration:none; font-family: "CutiveRegular"; font-size: 1.1rem; display:inline-block;
}

.descrizione-card-blog
{
    margin:0 0 16px;
    min-height: 120px; 
    color:#5b5b52; line-height:1.5 !important; padding:0 20px;
    text-align: center !important;
}

.linea-divisoria-card-blog
{
    border:none; border-top:1px solid #7e7971; margin:0 0 16px;
}

.div-btn-card-blog
{
    text-align:center; padding-bottom:16px;
}

#blog .blog-cards-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 16px;
}

#blog .blog-cards-row .card-blog {
    width: calc((100% / 3) - 2%);
    max-width: 420px;
    margin: 1%;
}

@media (max-width: 991px) {
    #blog .blog-cards-row .card-blog {
        width: 48%;
        margin: 1%;
    }
}

@media (max-width: 767px) {
    #blog .blog-cards-row .card-blog {
        width: 96%;
        margin: 2%;
    }
}


.contentitore-img-card, .contenitore-img-servizi {
    margin-bottom: 20px;
}

.contentitore-img-card {
    width: 100%;
    height: 100px;
}

.contenitore-img-servizi{
    width: auto;
    height: 160px;
}

.icona-card-servizi {
    display: block;
    margin: auto;
    max-width: 100%;
    max-height: 100%;
}

.icona-pag-servizi{
    display: block;
    margin: auto;
    width: auto;
    max-height:160px;
    max-width: 300px;
}

.sfondo-icona-servizi{
    background-color: #fffdfb;
}

.titolo-card-servizi {
    font-family: 'CutiveRegular', monospace;
    font-size: 1.25rem;
    text-align: center;
    margin-top: 10px;
}

.sottotitolo-card-servizi {
    font-family: 'CutiveRegular', monospace;
    font-size: 1.0rem;
    text-align: center;
    margin-top: 10px;
    color: #555;
}

.descrizione-card-servizi {
    text-align: center !important;
    margin-top: 20px;
}

.video-home
{
    display: block;
    margin: 20px auto;
    width: 1400px;
    max-width:100%; 
    height:auto;
    border-radius: 14px;
}


.nav-link-selected {
    font-weight: bold;
    color: #78acaf !important; /* cadetblue */
    text-decoration: underline;
}


.ombre-generali
{
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}


/* // --------------------------- */
/* Language bar as a full-width row above the navbar. The inner .lang-inner aligns with the site's .container */
#langBarRow {
    position: relative;
    width: 100%;
    z-index: 1065;
    transition: opacity 0.25s ease, transform 0.25s ease;
    -webkit-transition: opacity 0.25s ease, transform 0.25s ease;
    background: transparent;
}

#langBarRow.hidden {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    height: 0;
    overflow: hidden;
}

#langBarRow .lang-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 6px 14px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #222;
    padding: 6px 10px;
    margin-left: 6px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.lang-btn:first-child {
    margin-left: 0;
}

.lang-btn.active {
    background: #78acaf;
    color: #fff;
    border-color: #78acaf;
}
/* // --------------------------- */






@keyframes frecciaMove {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(30px);
    }
}

/* Rispetta preferenze di movimento ridotte */
@media (prefers-reduced-motion: reduce) {
    .freccia-animata {
        animation: none;
        transition: transform 0.15s ease-out;
    }
}


/* --------------------------- */
@media (max-width: 480px) {
    .btn-lang-dropdown {
        padding: 4px 8px;
        font-size: 0.82rem;
    }
}

/* --------------------------- */


/* --------------------------- */
/* Media Queries per dispositivi mobili */
@media (max-width: 840px) {

    #servizi .row{
        margin: auto !important;
    }
    .hero-section {
        /*align-items: center !important; */
        padding-bottom: 4rem !important;
    }

    /* .container {
        padding: 5px !important;
    } */

    .hero-section h1 {
        font-size: 1.5rem;
        /* Dimensione del font per dispositivi mobili */
        text-shadow: 0px 0px 14px rgb(0, 0, 0);
        /* Ombra del testo */
    }

    .area-descrizione-servizi {
        display: block !important;
    }

    .me-3 {
        margin-right: 0px !important;
        margin-bottom: 6px;
    }


    .col-sm-6{
        width: 100% !important;
    }





    #bio p {
        text-align: center;
    }

    #servizi {
        padding: 0px;
    }

    #servizi p {
        text-align: center;
    }

    #servizi h5 {
        font-size: 1.2rem;
    }

    #servizi h2,
    #bio h2,
    #collaborazioni h2 {
        font-size: 1.8rem;

    }

    #collaborazioni p {
        text-align: center;
    }

    ;




    .p-4 {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .d-flex.align-items-start {
        margin-right: 0px;
        margin-bottom: 20px;
        align-items: center !important;
        flex-direction: column;
    }

    .distanza-testi-servizi {
        margin-left: 0px;
    }

    .row>* {
        padding: 0px !important;
    }

    .icon-bio {
        display: none;
    }

    #contatti .form-control {
        width: 100%;
        /* Larghezza al 100% */
    }

    .contact-box {
        padding: 0.5rem !important;
    }

    .img-50 {
        width: 100%;
        max-width: 100%;
    }

    .btn-secondary,
    .btn-primary {
        font-size: 1.5rem !important;
    }


    .card-servizi, .card-blog {
        width: 96%;
        margin: 2%;
        padding: 1% !important;
    }

    .link-pagine {
        margin-right: 24px;
        font-size: 1.4rem;
    }

}

/* --------------------------- */



@media (min-width: 1600px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1540px;
    }
}

/* Stile per la sezione Login */
#login {
    background-color: #f9f5ee;
    padding: 60px 0;
}

#login .login-box {
    max-width: 620px;
    width: 100%;
}

#login h2 {
    font-family: 'CutiveRegular', monospace;
    font-size: 2.5rem;
    color: #472a09;
    text-decoration: underline;
}

#login p {
    font-family: 'CutiveRegular';
    font-size: 1.05rem;
    color: #607475;
}

#login .login-form {
    max-width: 460px;
    margin: 0 auto;
}

#login .form-label {
    font-family: 'CutiveMono', monospace;
    font-size: 1rem;
    color: #4b4e63;
}

#login .form-control {
    font-family: 'CutiveRegular';
    border: none;
    border-bottom: 2px solid #4b4e63;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
    padding: 6px 0;
}

#login .form-control:focus {
    outline: none;
    border-bottom-color: #78acaf;
}

#login .btn-primary {
    font-family: 'CutiveMono', monospace;
    font-size: 1.1rem;
    background-color: #78acaf;
    border: none;
    border-radius: 40px;
    padding: 10px 32px;
    transition: all 0.3s ease;
}

#login .btn-primary:hover {
    background-color: #5e999c;
    transform: scale(1.03);
}

/* Footer ancorato in basso solo nella pagina login */
body.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.login-page .login-main {
    flex: 1 0 auto;
    display: flex;
}

body.login-page .login-main #login {
    width: 100%;
}

/* Area riservata */
.hidden {
    display: none !important;
}

body.area-riservata-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.area-riservata-page .area-riservata-main {
    flex: 1 0 auto;
}

#area-riservata,
#dettaglio-news {
    background-color: #f9f5ee;
}

.area-riservata-box h2 {
    font-family: 'CutiveRegular', monospace;
    font-size: 2.5rem;
    color: #472a09;
    text-decoration: underline;
}

.area-riservata-intro {
    font-family: 'CutiveRegular';
    color: #607475;
}

.area-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.08);
    padding: 22px;
    margin-bottom: 20px;
}

.area-card h3,
.area-card h4,
.news-detail-card h1 {
    font-family: 'CutiveRegular', monospace;
    color: #4b4e63;
}

.admin-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.admin-form {
    display: grid;
    gap: 14px;
}

.admin-form label {
    display: grid;
    gap: 6px;
    font-family: 'CutiveMono', monospace;
    color: #4b4e63;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    padding: 10px 12px;
    font-family: 'CutiveRegular';
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.admin-form textarea {
    min-height: 120px;
    resize: vertical;
}

.admin-form .tox {
    border-radius: 10px;
}

.admin-form .tox .tox-editor-container {
    border-radius: 10px;
    overflow: hidden;
}

.admin-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.form-feedback {
    margin-top: 6px;
    margin-bottom: 0;
    font-family: 'CutiveRegular';
    color: #4b4e63;
}

.password-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.password-input-wrap .form-control {
    flex: 1 1 auto;
    min-width: 0;
}

.btn-password-toggle {
    border: 1px solid #607475;
    background-color: transparent;
    color: #607475;
    border-radius: 20px;
    font-family: 'CutiveMono', monospace;
    font-size: 0.9rem;
    line-height: 1;
    padding: 8px 14px;
    white-space: nowrap;
}

.btn-password-toggle:hover {
    background-color: #eef4f4;
}

.btn-password-toggle:focus-visible {
    outline: 2px solid #78acaf;
    outline-offset: 2px;
}

.btn.btn-ghost {
    border: 1px solid #607475;
    background-color: transparent;
    color: #607475;
    border-radius: 28px;
    font-family: 'CutiveMono', monospace;
    padding: 8px 16px;
}

.btn.btn-ghost:hover {
    background-color: #eef4f4;
    color: #3e5b5d;
}

.btn.btn-danger {
    border-radius: 28px;
    font-family: 'CutiveMono', monospace;
    background-color: #b74646;
    border: none;
    color: #fff;
    padding: 8px 16px;
}

.btn.btn-danger:hover {
    background-color: #9d3333;
    color: #fff;
}

.admin-image-preview-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 250px));
    gap: 12px;
    justify-content: flex-start;
}

.admin-image-preview-item {
    border: 1px solid #e7e7e7;
    border-radius: 10px;
    padding: 10px;
    display: grid;
    gap: 10px;
    width: min(100%, 250px);
}

.admin-image-preview-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

.admin-image-preview-item.is-primary {
    border-color: #78acaf;
    box-shadow: 0px 0px 0px 1px rgba(120, 172, 175, 0.35);
}

.admin-image-preview-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-image-preview-actions .btn {
    width: 100%;
}

.admin-news-preview-list {
    display: grid;
    gap: 12px;
}

.admin-news-item {
    border: 1px solid #e9e9e9;
    border-radius: 10px;
    padding: 12px;
}

.admin-news-item.is-editing {
    border-color: #78acaf;
    box-shadow: 0px 0px 0px 1px rgba(120, 172, 175, 0.35);
}

.admin-news-item-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.admin-news-item-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

@media (max-width: 767px) {
    .area-card {
        padding: 16px;
    }

    .admin-head {
        flex-direction: column;
        align-items: stretch;
    }

    .password-input-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .password-input-wrap .btn-password-toggle {
        width: 100%;
    }
}

.news-preview-tag {
    display: inline-block;
    border-radius: 20px;
    background-color: #edf3f3;
    color: #3b4d66;
    border: 1px solid #d6e4e5;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-family: 'CutiveMono', monospace;
}

.text-link {
    color: #4b4e63;
    text-decoration: underline;
    font-family: 'CutiveMono', monospace;
}

.news-detail-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.news-detail-text {
    font-family: 'CutiveRegular';
    color: #4b4e63;
    line-height: 1.8;
}

.news-detail-text::after {
    content: '';
    display: block;
    clear: both;
}

.news-detail-text img {
    max-width: 100%;
    height: auto;
}

.news-detail-text figure.image {
    display: table;
    max-width: 100%;
    margin: 0.4rem 0 1rem;
}

.news-detail-text figure.image img {
    display: block;
}

.news-detail-text figure.image.image-style-align-left,
.news-detail-text img[style*="float: left"],
.news-detail-text img.alignleft {
    float: left;
    margin: 0.2rem 1rem 0.8rem 0;
    max-width: min(52%, 360px);
}

.news-detail-text figure.image.image-style-align-right,
.news-detail-text img[style*="float: right"],
.news-detail-text img.alignright {
    float: right;
    margin: 0.2rem 0 0.8rem 1rem;
    max-width: min(52%, 360px);
}

.news-detail-text figure.image.image-style-align-center,
.news-detail-text img[style*="margin-left: auto"][style*="margin-right: auto"],
.news-detail-text img.aligncenter {
    float: none;
    display: table;
    margin: 0.4rem auto 1rem;
}

.news-detail-text p,
.news-detail-text ul,
.news-detail-text ol,
.news-detail-text blockquote {
    margin-bottom: 0.9rem;
}

.news-detail-text h2,
.news-detail-text h3,
.news-detail-text h4 {
    margin-top: 1rem;
    margin-bottom: 0.6rem;
}

.news-detail-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    margin: 18px 0;
}

.news-detail-gallery-item {
    border: 0;
    padding: 0;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: zoom-in;
    background: #f0ebe2;
    width: min(100%, 300px);
    max-width: 300px;
    aspect-ratio: 1 / 1;
    flex: 0 1 300px;
}

.news-detail-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-detail-share {
    border-top: 1px solid #e5ddcf;
    margin-top: 10px;
    padding-top: 14px;
}

.news-detail-share-title {
    font-family: 'CutiveRegular', monospace;
    font-size: 1.2rem;
    color: #4b4e63;
    margin: 0 0 10px;
}

.news-detail-share .titolo-card-servizi {
    text-align: left;
}

.news-detail-share-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.news-share-icon-link {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid #d8d8d8;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-share-icon-link:hover,
.news-share-icon-link:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0px 6px 14px rgba(0, 0, 0, 0.12);
    outline: none;
}

.news-share-icon {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f4efe7;
    color: #2f2f2f;
}

.news-share-icon svg {
    width: 22px;
    height: 22px;
    display: block;
    fill: currentColor;
}

.news-detail-share-note {
    margin-top: 8px;
    margin-bottom: 0;
    font-family: 'CutiveRegular';
    color: #5f5f5f;
    font-size: 0.86rem;
}

.news-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.86);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.news-image-lightbox img {
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 48px);
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0px 12px 26px rgba(0, 0, 0, 0.35);
}

.news-image-lightbox-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
}

.news-image-lightbox-close:hover,
.news-image-lightbox-close:focus-visible {
    background: rgba(255, 255, 255, 0.3);
    outline: none;
}

.news-item-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.news-detail-actions {
    margin-top: 18px;
}
