


/*     background-image: radial-gradient(at 50% 0%, #2c2c2c 0%, #0a0a0a 100%);
    background-attachment: fixed; */


:root.dark_theme {
  --body-background-color: #323232 ;
  --body-text-color: #ffffffdb ;
  --border-color: rgba(255, 255, 255, 0.2);;
  --panel-background-color: #2e2e2e ;
  --accent-color: #3498db;
}


:root.light_theme {
  --body-background-color: white ;
  --body-text-color: black ;
  --border-color: rgba(0, 0, 0, 0.1);
  --panel-background-color: white ;
  --accent-color: #3498db;
}

/* 1. Reset e Layout (Indipendenti dal tema) */
html {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

a
{
    text-decoration: none;
    color: inherit;
}

p
{
    margin: 0;
}

a.active
{
    font-weight: bold;
    color:var(--accent-color);
}

h1,h2,h3,h4,h5
{
  /*   padding: 0;

    margin-bottom: 12px; */
}


.hidden{ display:none !important; }



:root {
    /* Definiamo delle scale fluide */
    --font-size-h1: clamp(1.8rem, 2vw + 1rem, 2.5rem);
    --font-size-h2: clamp(1.5rem, 1.8vw + 0.5rem, 1.8rem);
    /* --font-size-p: clamp(1rem, 1vw + 0.5rem, 1.2rem); */
}

h1 { font-size: var(--font-size-h1); line-height: 1.2; }
h2 { font-size: var(--font-size-h2);  color:#999999 }
p  { font-size: var(--font-size-p);  line-height: 1.4; text-align: inherit; }


img{
    border-radius:16px;
}
body {
    margin: 0;
    padding: 0;
   /*  padding-top:60px; */

    background-color: var( --body-background-color );
    color: var( --body-text-color );

    display: flex;
    flex-direction: column;
    min-height: 100vh;

    text-align: center;
}

@media (max-width: 768px) {

  body {
    text-align: left;
  }
}


   body>header {
            flex: 1 0 auto;
        position: relative;
        text-align: center;
       
   }

/* body>header .content {
  display: flex;
  justify-content: space-between;

  align-items: center;


  padding: 0 20px;

  height: 60px;
  width: 100%;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  z-index: 1000;
  background-color: var(--body-background-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
} */

body>header .content {
display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
}



body>header nav ul {
  display: flex;
  list-style: none;
  gap: 0;
  margin: 0;
  padding: 0;
  justify-content: center;
  align-items: center;
}

body>header nav li {
  border-left: 1px solid var(--border-color);
  padding: 10px 20px;
}

body>header nav li:first-child {
  border-left: unset;
}


.material-symbols-outlined.main-menu-button {
  display: none;
  cursor: pointer;
}

.main-menu-button:hover+nav {
  right: 0;
}

.language-menu {
    position: absolute;
    right: 30px;
    top: 0;
    font-size: 12px;
}

   


@media (max-width: 768px) {

  nav.main-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 200px;
    height: 100vh;
    background: var(--body-background-color);
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
   /*  padding: 20px 0; */
    box-shadow: -2px 0 5px rgb(0 0 0 / 27%);
  }

    .language-menu {

        position: unset;
        border-bottom: 1px solid gray;
    }
      


  .material-symbols-outlined.main-menu-button {
    display: unset;

  }


  nav.main-menu:hover {
    right: 0;
  }


  /* Trasforma la lista in verticale */
  nav.main-menu ul {
    flex-direction: column;
    align-items: flex-start;
  }

  nav.main-menu ul li {
    margin: 10px 0;
  }

  .main-menu-button {
    display: unset;
  }

}
body>main {
   flex: 1 0 auto;
   position: relative;
   
   background-color: var(--body-background-color);
}



body>footer {
    
    text-align: left;
    background-color: #1e1e1e;
}

body>footer>.content{
    padding:40px;
}

@media (max-width: 768px) {

  body>footer>.content {
    
    display: block;
    
  }
}

.max-w-1320 {
    width: 100%;           /* Occupa tutto lo spazio sui dispositivi piccoli */
    max-width: 1320px;    /* Si ferma a questa larghezza sui monitor grandi */
    margin: 0 auto;       /* Centra il contenitore nella pagina */
    padding: 0 20px;      /* Evita che il contenuto tocchi i bordi su mobile */
}

.property { margin-bottom: 15px; }

.property input, .property textarea, .property select {
    width: 100%;
    padding: 8px; border: 1px solid var(--border-color); border-radius: 4px;
    background: transparent;
    color:inherit;
}

.property textarea {
    resize: vertical;
    font-family: inherit;
}

/* admin.css */
.property label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    text-transform: capitalize; /* Trasforma 'title' in 'Title' a video */
}

img.fit-in-parent
{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


 .card { background: rgba(255,255,255,0.05); padding: 30px; border-radius: 8px; text-align: left; }



 .card img{
     max-width: 100%;
    max-height: 230px;
    border-radius: 10px;
    margin: 20px auto;
 }
    

.button{
   
   border: 2px solid #3498dc;
    cursor: pointer;
    padding: 16px 50px;
    border-radius: 30px;
    font-weight: 800;
    display: inline-block;
 }


.grid-auto {
  display: grid;
  gap: 16px;
  padding: 20px 0;

  /* 1. Valore di default se non metti nulla nell'HTML */
  --cols-desktop: 4; 
  
  /* 2. Di base (Mobile) usiamo 1 colonna */
  --cols: 1;

  /* 3. La magia: usiamo il valore calcolato */
  grid-template-columns: repeat(var(--cols), 1fr);
}


/*  .grid-auto img
  {
      max-width: 400px;
      max-height: 400px;
  }
  */

@media (min-width: 600px) {
  .grid-auto {
    /* Su Tablet passiamo a 2 */
    --cols: 2;
  }
}

@media (min-width: 1000px) {
  .grid-auto {
    /* Su Desktop usiamo il valore "scelto" (quello dell'HTML o il default 4) */
    --cols: var(--cols-desktop);
  }
}




.text-in-columns {
    /* 1. Usiamo la variabile per determinare il numero di colonne */
    column-count: var(--cols);
    
    /* 2. Definiamo uno spazio tra le colonne per leggibilità */
    column-gap: 40px; 
    
    /* 3. Evitiamo che il testo sia troppo attaccato ai bordi */
    //text-align: justify; 
    
    /* Valore di default per la variabile personalizzata */
    --cols-desktop: 4; 
    
    /* Di base (Mobile, sotto i 600px) è sempre 1 */
    --cols: 1;
}

/* Questa scatta tra 600px e 999px */
@media (min-width: 600px) and (max-width: 999px) {
  .text-in-columns {
    /* Sceglie il valore minore tra 2 e il massimo del desktop.
       Se --cols-desktop è 1, min(2, 1) restituirà 1.
       Se --cols-desktop è 4, min(2, 4) restituirà 2. */
    --cols: min(2, var(--cols-desktop));
  }
}

/* Questa scatta dai 1000px in su */
@media (min-width: 1000px) {
  .text-in-columns {
    --cols: var(--cols-desktop);
  }
}
/* .title-subtitle {
  text-align: left;
  display: block;
  padding-bottom: 16px;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--border-color);
}

@media (min-width: 600px) {
  .title-subtitle {
     display: flex;
  }
}

@media (min-width: 1000px) {
  .title-subtitle {
      display: flex;
  }
} */


/* .image-gallery img {
   
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.image-gallery img:hover {
    transform: scale(1.10); 
    cursor: zoom-in;
} */



.zoomable img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.zoomable img:hover
{
    transform: scale(1.10); 
    cursor: zoom-in;
}

.full-screen-overlay
{
   
    display: flex;
    position: fixed;      /* Fondamentale: rimane sopra lo scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92); /* Quasi nero */
    z-index: 99999;       /* Sopra a tutto il CMS */
    cursor: zoom-out;     /* Icona lente che rimpicciolisce */
    
    /* Centratura perfetta dell'immagine */
    justify-content: center;
    align-items: center;
    
    /* Effetto sfocato opzionale per il fondo */
    backdrop-filter: blur(8px);
}






.full-screen-overlay > img {
    /* Rimuovi width: 100% e height: 100% */
    max-width: 90%;
    max-height: 90%;
    width: auto;      /* Lascia che il browser calcoli la larghezza */
    height: auto;     /* Lascia che il browser calcoli l'altezza */
    object-fit: contain;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease;
}



.xnode.selected {
    outline: 2px dashed var( --accent-color );
    outline-offset: -2px;
    cursor: pointer;
}


/* Definizione dell'animazione */
@keyframes blink {
    0%   { opacity: 1; }
    50%  { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Quando l'elemento ha la classe .selected */
.xnode.selected {
    /* Durata: 0.5s 
       Timing: ease-in-out (morbido all'inizio e alla fine)
       Iterazioni: 1 (un solo lampeggio completo)
    */
    animation: blink 0.5s ease-in-out 1;
    
    /* Colore di sfondo finale che rimane dopo il lampeggio */
    /* background-color: #e0f0ff;  */
}
/* .flex-x
{
   display:flex; align-items:center; justify-content:space-between;
} */


.flex-row
{
     display:flex; align-items:center;  gap: 4px; flex-direction: row; width: 100%;
     justify-content: space-between;
}

.flex-row input
{
    width:100%;
    flex:1;
}




