/*
==================
SEZIONE GLOBALE
==================
*/

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {                              /*Variabili globali*/ 
    --bgcolor: #f8f9fa;              
    --breadcolor: #000000; 
    --breadwordcolor: #ffffff;
    --logboxsfondo: rgba(107, 141, 193, 0.08);
    --messageboxsfondo: rgba(199, 217, 255, 0.816);
    --txtcolor: #2c3e50;
    --linkcolor: #ffffff;
    --currentlinkcolor: #e1e1e1;
    --visitedlinkcolor: #e80055;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.2);
    --border-radius: 8px;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
}

/* :link {
    color: #000000;
} */
/* 
:visited {
    color: #e80055;
} */


html{
    background-color: var(--bgcolor);
    scroll-behavior: smooth;
}

html, body{
    width: 100%;
    font-family: "Josefin Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1em;
    font-weight: 300;   /*100=light, 400=normal, 700=bold*/
    color: var(--txtcolor);
    margin:auto;
    display:flex;
    flex-direction: column;
    line-height: 1.6;
}

main{
    flex: 1;
    position:relative;
    z-index:2;
    min-height: 100vh;
    padding-bottom: 0px; /* Aggiunge spazio per il footer */
}

main h2{
    text-align: center;
    padding: 20px;
    font-size: 2em;
    font-weight: 400;
    margin-bottom: 1rem;
}

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index:-1;
}

.background-image.active {
    opacity: 1;
}

h3{
    text-align: center;
    padding: 0.2em;
    font-size: 1.5em;
}

.goback {                   /*Tasto "Torna su": è dopo tutti i contenuti di ogni pagina*/
    top:85%;
    left:79%;
    position:fixed;
    z-index: 1000;
}
  
.goback a {
    transition: all var(--transition-medium);
    cursor: pointer;
    align-items: center;
    border-radius: 50%;
    display: inline-flex;
    height: 3rem;
    width: 3rem;
    margin: 0.4rem;
    margin-bottom: 0.5em;
    justify-content: center;
    text-decoration: none;
    color: var(--breadwordcolor);
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: var(--breadcolor);
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(10px);
}

.goback a:hover {
    background: #fff;
    color: #000;
    border: 2px solid var(--breadcolor);
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.goback a:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.hideall{
    display: none;
}


/*
======================================
                HEADER
======================================
*/
header{
    text-align: center ;
    background-size: 20%, 20%;
    background-color: var(--logboxsfondo);
    backdrop-filter: blur(10px);
    position: sticky; 
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-light);
    margin-top: 0 !important; /* Assicura che non ci sia margine superiore */
}

#logo-container {
    background-color: var(--breadcolor);
    display: flex;
    flex-direction: row;
    height: 10vh;
    position: relative;
    box-shadow: var(--shadow-medium);
}

#logo_img {
    text-indent: -9999px;
    background-image: url(/media/logo/logo_solotesto.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    font-size: 7em;
    width: 20%; /* Imposta la larghezza del logo */
    height: 100%; /* Assicura che #logo si ridimensioni in altezza */
    z-index: 1;
    margin-left: 20%;
    margin-right: 40%;
    transition: transform var(--transition-medium);
}

#logo_img:hover {
    transform: scale(1.05);
}

#logo {
    text-indent: -9999px;
    background-image: url(/media/logo/TrameUniche_logo-nero.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left; /* Posiziona l'immagine a destra */
    font-size: 7em;
    width: 20%; /* Imposta la larghezza del logo */
    height: 100%; /* Assicura che #logo si ridimensioni in altezza */
    z-index: 2;
    transition: transform var(--transition-medium);
}

#logo:hover {
    transform: scale(1.05);
}

header img {
    width: 100%;
    height: auto;
}

.content{
    display: flex;
    justify-content: space-between;
    padding-top: 3%;
    padding-left: 2%;
    padding-right: 2%;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    position: static;
    left: auto;
}

.breadcrumb{
    background-color: var(--breadcolor);
    color: var(--breadwordcolor);
    padding: 0.75em 1em;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 50;
    width: 100%;
    display: block;
    font-size: 0.9em;
}

.breadcrumb a{
    color: var(--linkcolor);   
}

.breadcrumb a:visited{
    color: var(--visitedlinkcolor);
}

.log{
    width: 1.5%;
    height: auto;
}

.error{
    color: #950000;
    font-size: 0.8em;
}

/*
======================================
                MENU
======================================
*/

#menu {
    flex: 1;
    z-index: 1;
    position: sticky; /* Cambiato da relative a sticky per mantenere il menu visibile durante lo scroll */
    top: 12.8vh; /* Posiziona il menu sotto l'header */
    overflow: auto;
    display: flex; /* Aggiungi questa riga per utilizzare il layout flexbox */
    justify-content: center; /* Centra il menu orizzontalmente */
    margin-top: 0; /* Rimuovi il margine superiore */
    width: 100%;
    background-color: var(--breadcolor);
}

.menu {
    align-items: center;
    flex-wrap: nowrap;
    overflow: hidden;
    max-width: 100%; /* Imposta la larghezza al 100% */
    min-width: 30%;
    display: flex; /* Aggiungi questa riga per utilizzare il layout flexbox */
    justify-content: space-around; /* Distribuisci gli elementi del menu orizzontalmente */
    margin-top: 0; /* Rimuovi il margine superiore */
    text-transform: uppercase;
}

@media (max-width: 75em) {
    .menu{
        flex-wrap: wrap;
    }
}

.menu li{
    list-style-type: none;  
    border-right: var(--bgcolor) 1px solid;
    background: var(--breadcolor);
    color: var(--breadwordcolor);
    flex: 1; /* Aggiungi questa riga per far sì che gli elementi del menu si estendano in larghezza */
    text-align: center; /* Centra il testo all'interno degli elementi del menu */
    white-space: nowrap; /* Impedisce la rottura del testo su più righe */
    letter-spacing: 0.2em;
}

.menu li a {    
    padding-top:0.5em;
    padding-bottom:0.5em;
    padding-right: 1em;
    padding-left: 1em;
    display: block;
    height: 100%;
    width: 100%;
    text-decoration: none;
    color: var(--breadwordcolor);
}

.menu li a:hover {
    background: var(--breadwordcolor);
    color: var(--breadcolor);
}

/* .menu a:link{
    color: #000000;
} */

/* .menu li a:visited{
    color: #b34848;
} */

/* .menu li a:not(.currentmenu):hover{
    border: 2px solid #000000;
}

.menu a:not(.currentmenu):hover{
    border: 2px solid #000000;
} */

.currentmenu{
    padding-top:0.5em;
    padding-bottom:0.5em;
    padding-right: 1em;
    padding-left: 1em;
    color: var(--breadcolor);
    text-decoration: solid;
    text-shadow: 1px 3px 4px #ffffff;
    /* border: 2px solid rgba(255, 255, 255, 0.8); */
    box-shadow: inset 0 0 20px rgb(255, 255, 255); /* Ombra interna luminosa */
    border-radius: 3px;
}

/*impostazione icona instagram*/
.social img{
    width: 35px;
    height: auto;
    margin: 0;
    vertical-align: middle;
    padding-left: 1%;
    padding-right: 0.5%;
}

/* Spacer trasparente: regola l'altezza con la proprietà height */
.transparent-gap {
    width: 100%;
    height: 100vh;       /* altezza schermo (viewport height) */
    min-height: 100px;      /* garantisce uno spazio minimo */
    background: transparent;
    pointer-events: none;   /* evita interazioni accidentali */
    box-sizing: border-box;
    /* se vuoi nascondere anche eventuali bordi/margin ereditati: */
    margin: 0;
    padding: 0;
}
@media (max-width:1024px){
    .transparent-gap { height: 25vh; } /* esempio mobile */
}

/*
======================================
                CORPO
======================================
*/

p:not(.button_log, footer p, .breadcrumb p) {
    font-size: 16pt;
}


.product-list{
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-left: 4em;
    margin-right: auto;
}

.product-card {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 1em;
    width: calc(33.333% - 2em); /* Tre riquadri per riga con spazio */
    box-sizing: border-box;
    text-align: center;
    background-color: #d5e9ff;
}

.product-card li{
    list-style-type: none;
}

.product-info{
    word-break: break-word;
}

.product-info p{
    padding-bottom: 4%;
}

.product-image img{
    width: 100%;
    height: auto;
}

.messaggio{
    text-align: center;
    padding: 10px;
    margin-top: 2%;
    margin-bottom: 2%;
    background-color: var(--messageboxsfondo);
    font-weight: bold;
}

.messaggioerrore{
    text-align: center;
    padding: 10px;
    margin-top: 2%;
    margin-bottom: 2%;
    background-color: var(--messageboxsfondo);
    font-weight: bold;
    color: rgb(165, 0, 0);
}

/*---------PAGINA PRODOTTO SINGOLO----------*/

.nav-arrow {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 2em;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #333;
    z-index: 1;
    display:none;
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}
  
.main-photo {
    position: relative;
    width: 50em;
    height: 30em;
    border: 2px solid #ccc;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden; /* Assicurati che l'immagine non esca dal contenitore */
    background-color: #ffffff;
    margin-left: auto;
    margin-right: auto;
}

.main-photo:hover .nav-arrow {
    display: block;
}

.main-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Mantiene le proporzioni dell'immagine */
    object-position: center; /* Centra l'immagine nel contenitore */
}

  
.thumbnail-gallery {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: auto;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: transform 0.2s, border-color 0.2s;
}

.thumbnail img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

.thumbnail:hover {
    transform: scale(1.1);
    border-color: #007bff;
}

.thumbnail.selected {
    border-color: #007bff;
}

/*-------PAGINE EVENTI E FILATI--------*/

.image-list{
    /* gap: 16px; */
    width: 30%;
    height: 100%;
}

.description_filati, .description_eventi{
    width: 100%;
    background-color: rgba(255, 255, 255, 0.816);
    min-height: 100vh;
}

.description-eventi{
    width: 100%;
}

.separation{
    border: 0px;
    height: 2px;
    background: #000000;
    background-image: linear-gradient(to right, #ccc, #000, #ccc);
}

/*-------PAGINA LOGIN--------*/
#login_form{
    margin-top: 7%;
    margin-bottom: 7%;
    width: 30%;
}

.loginbtn{
    color: #ffffff;
    background-color: #3b3b3b;
    padding: 6px 15px;
    font-family: inherit;
    margin-bottom: 4%;
    margin-top:4%;
}

.loginbtn:hover, .loginbtn:focus{
    cursor: pointer;
}

.loginbtn a{
    text-decoration: none;
    display: block;
    height: 100%;
    width: 100%;
}

.loginbtn a:hover{
    cursor: pointer;
}

.form_box{
    text-align: center;
    padding: 15px;
    max-width: 37%;
    margin: auto;
    border: 6px solid #000000;
    margin-bottom: 2%;
    background-color: var(--logboxsfondo);
    padding-left: 10%;
    padding-right: 10%;
    padding-top: 5%;
    padding-bottom: 5%;
}

.form_box input{
    margin-bottom: 2%;
    margin-top:1.8%;
    border-top:none;
    border-left:none;
    border-right:none;
    border-bottom: 3px solid #8e8d8d;
    background-color: rgba(255,255,255,0.6);
    width: 100%;
}

.form_box textarea{
    width:100%;
}

.form_box input:hover{
    border-bottom: 3px solid #000000;
}

.deletebtn{
    color: #ffffff;
    background-color: #bd0101;
    padding: 6px 15px;
    font-family: inherit;
    margin-bottom: 4%;
    margin-top:4%;
}

.deletebtn:hover{
    cursor: pointer;
}

fieldset{
    border: none;
    /* display: flex;
    gap:1%; */
}

legend{
    text-indent: -9999px;
}

/*
======================================
                FOOTER
======================================
*/
footer {
    color: var(--breadwordcolor);
    background-color: var(--breadcolor);
    border-bottom: 0;
    position: relative;
    z-index: 10;
    margin-top: auto;
}

footer h2{
    margin-left: 0%;
    margin-bottom: 10px;
}

footer .contatti {
    text-align: center;
    padding: 0 10px;
    padding-top: 2%;
    padding-bottom: 2%;
}

footer p{                /*p: paragrafo*/   
    display: flex;
    font-style: italic;
    font-size: 0.8em;
    padding:10px;
    gap:0;
    justify-content: center;
}

footer li{
    list-style-type: none;
}

footer a{
    color: var(--linkcolor);
}

.imgValidCode{
    width: 80px;
}  

.copyright{
    padding-top:1%;
    padding-left: 1%;
    padding-right: 1%;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
    color: #000000;
    justify-content: center;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #fff;
    color: var(--white);
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #bcbcbc;
    transform: translateY(-2px);
}


/*
======================================
            COOKIE BANNER
======================================
*/

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(44, 62, 80, 0.95) 100%);
    color: var(--breadwordcolor);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-heavy);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform var(--transition-medium);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text h3 {
    font-size: 1.2em;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.cookie-banner-text p {
    font-size: 0.9em;
    line-height: 1.5;
    opacity: 0.9;
    margin: 0;
    padding: 0;
}

.cookie-banner-text a {
    color: #74b9ff;
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.cookie-banner-text a:hover {
    color: #0984e3;
}

.cookie-banner-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 0.9em;
    font-weight: 400;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 120px;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    color: white;
    box-shadow: var(--shadow-light);
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #00a085 0%, #008f76 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.cookie-btn-decline {
    background: transparent;
    color: var(--breadwordcolor);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.cookie-btn-settings {
    background: transparent;
    color: #74b9ff;
    border: 1px solid #74b9ff;
    font-size: 0.8em;
    padding: 0.5rem 1rem;
    min-width: auto;
}

.cookie-btn-settings:hover {
    background: #74b9ff;
    color: white;
}

/* Responsive design per il banner cookies */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-banner-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: auto;
    }
}

/* Overlay per le impostazioni cookies */
.cookie-settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.cookie-settings-overlay.show {
    display: flex;
}

.cookie-settings-modal {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-heavy);
    position: relative;
}

.cookie-settings-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color var(--transition-fast);
}

.cookie-settings-close:hover {
    color: #000;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cookie-category h4 {
    font-size: 1.1em;
    margin-bottom: 0.5rem;
    color: var(--txtcolor);
}

.cookie-category p {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 1rem;
    padding: 0;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: var(--transition-fast);
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition-fast);
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: #00b894;
}

input:checked + .cookie-slider:before {
    transform: translateX(26px);
}

.cookie-slider.disabled {
    background-color: #00b894;
    cursor: not-allowed;
}


/*
======================================
        MIGLIORAMENTI GRAFICI
======================================
*/

/* Sezioni con background decorativo */
.hero-section {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.05) 0%, rgba(107, 141, 193, 0.1) 100%);
    padding: 3rem 2rem;
    margin: 2rem 0;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(107, 141, 193, 0.05) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Miglioramento delle card prodotti */
.product-card {
    border: 1px solid rgba(107, 141, 193, 0.2);
    border-radius: var(--border-radius);
    padding: 1.5em;
    width: calc(33.333% - 2em);
    box-sizing: border-box;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    box-shadow: var(--shadow-light);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(107, 141, 193, 0.1), transparent);
    transition: left 0.5s;
}

.product-card:hover::before {
    left: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(107, 141, 193, 0.4);
}

/* Icone decorative per le sezioni */
.section-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--breadcolor) 0%, #2c3e50 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow-medium);
}

/* Separatori decorativi migliorati */
.separation {
    border: 0;
    height: 3px;
    background: linear-gradient(to right, transparent, rgba(107, 141, 193, 0.3), var(--breadcolor), rgba(107, 141, 193, 0.3), transparent);
    margin: 2rem 0;
    position: relative;
}

.separation::after {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bgcolor);
    color: var(--breadcolor);
    padding: 0 1rem;
    font-size: 1.2rem;
}

/* Miglioramento delle liste */
.lista {
    display: flex;
    flex-direction: row;
    padding: 2rem;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius);
    margin: 1rem 0;
    box-shadow: var(--shadow-light);
}

.eventi {
    background-color: rgba(215, 183, 0, 0.463);
}

.image-list {
    width: 35%;
    height: 100%;
    position: relative;
}

.image-list::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(107, 141, 193, 0.3), transparent);
}

/* Miglioramento dei titoli */
.page_title {
    position: relative;
    color: var(--breadcolor);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page_title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, transparent, rgba(107, 141, 193, 0.6), transparent);
    border-radius: 2px;
}

/* Miglioramento dei paragrafi */
p:not(.button_log, footer p, .breadcrumb p, .description-eventi p) {
    padding: 1.5em;
    font-size: 16pt;
    line-height: 1.7;
    text-align: justify;
    position: relative;
}

/* Citazioni decorative */
.quote-section {
    background: linear-gradient(135deg, rgba(107, 141, 193, 0.05) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-left: 4px solid rgba(107, 141, 193, 0.6);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
    font-size: 1.2rem;
    position: relative;
}

.quote-section::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 4rem;
    color: rgba(107, 141, 193, 0.3);
    font-family: serif;
}

/* Miglioramento dei social links */
.social {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 0.5rem 0;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.social:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(107, 141, 193, 0.3);
    transform: translateX(5px);
}

.social img {
    margin-right: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform var(--transition-fast);
}

.social:hover img {
    transform: scale(1.1);
}

/* Breadcrumb migliorata */
.breadcrumb {
    background-color: var(--breadcolor);
    color: var(--breadwordcolor);
    padding: 0.75em 1em;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.breadcrumb::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgb(0, 0, 0);
}

/* Animazioni per gli elementi */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Applicazione delle animazioni */
.product-card {
    animation: fadeInUp 0.6s ease-out;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }

/* Miglioramento del desktop content */
.desktop-content {
    width: 1024px;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 255, 0.9) 100%);
    min-height: 100vh;
    box-shadow: var(--shadow-light);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.desktop-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(107, 141, 193, 0.3), transparent);
}

/* Override solo per la homepage: rende desktop-content trasparente */
.desktop-content.home {
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.sezionehome{
    background-color: rgba(255, 255, 255, 0.816);
    backdrop-filter: blur(10px);
}

/* Miglioramento dei form */
.form_box {
    text-align: center;
    padding: 2rem;
    max-width: 400px;
    margin: 2rem auto;
    border: 2px solid rgba(107, 141, 193, 0.2);
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, rgba(107, 141, 193, 0.05) 0%, rgba(255, 255, 255, 0.9) 100%);
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(10px);
}

.form_box input, .form_box textarea {
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    border: none;
    border-bottom: 2px solid rgba(107, 141, 193, 0.3);
    background-color: rgba(255, 255, 255, 0.8);
    width: 100%;
    padding: 0.8rem 0.5rem;
    border-radius: 4px 4px 0 0;
    transition: all var(--transition-fast);
}

.form_box input:focus, .form_box textarea:focus {
    outline: none;
    border-bottom-color: rgba(107, 141, 193, 0.8);
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 8px rgba(107, 141, 193, 0.2);
}

/* Miglioramento dei pulsanti */
.loginbtn, .deletebtn {
    color: #ffffff;
    background: linear-gradient(135deg, #3b3b3b 0%, #2c3e50 100%);
    padding: 0.8rem 1.5rem;
    font-family: inherit;
    margin: 0.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-medium);
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.loginbtn::before, .deletebtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.loginbtn:hover::before, .deletebtn:hover::before {
    left: 100%;
}

.loginbtn:hover, .deletebtn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    scale: 1.08;
}

.deletebtn {
    background: linear-gradient(135deg, #bd0101 0%, #8b0000 100%);
}

/* Miglioramento del add-btn */
.add-btn {
    position: relative;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #023975 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    z-index: 1000;
    box-shadow: var(--shadow-heavy);
    transition: all var(--transition-medium);
    backdrop-filter: blur(10px);
}

.add-btn:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 12px 40px rgba(2, 57, 117, 0.4);
}

.add-btn:focus {
    outline: 2px solid #74b9ff;
    outline-offset: 4px;
}

/* Effetti di loading e micro-interazioni */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Miglioramento delle thumbnail */
.thumbnail {
    width: 80px;
    height: 80px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    transition: all var(--transition-medium);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    position: relative;
}

.thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.thumbnail:hover::after {
    opacity: 1;
}

.thumbnail:hover {
    transform: scale(1.1) rotate(2deg);
    border-color: rgba(107, 141, 193, 0.6);
    box-shadow: var(--shadow-medium);
}

.thumbnail.selected {
    border-color: rgba(107, 141, 193, 0.8);
    box-shadow: 0 0 20px rgba(107, 141, 193, 0.3);
}

