@font-face {
  font-family: 'Cambria';
  src: local('Cambria'),
       local('Cambria Math'),
       /* Fallback per sistemi che non hanno Cambria */
       local('Georgia');
  font-weight: normal;
  font-style: normal;
}


:root {
  --verde-petrolio:#275456;
  --verde-chiaro:#6EA89E;
  --terra-rossa:#C67B53;
  --arancione:#EDBE92;
  --white:#F6F6F6; 
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  /*background-color: #242424;*/
  background-color: var(--white);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
 
}

a {
  font-weight: 500;
  /*color: #646cff;*/
  text-decoration: inherit;
  text-decoration: none;
  
}


body {
  margin: 0;
  display: flex;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
}

h1 {
  font-size: clamp(2em, 5vw + 1em, 3.2em); /* Rende il testo responsivo utilizzando clamp */
  line-height: 1.1;
  color: #1a1a1a;
  font-family: 'Cambria', Georgia, serif;
}

#background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 1s ease-in-out;
  pointer-events: none; /* Ensures user interaction doesn't block video */
}

.left-image {
  position: fixed;
  opacity: 0.8;
  top: 0;
  left: -4%;
  /* width: 20vw; */
  height: 100dvh;
  z-index: -2;
  object-fit: fill;
  overflow: hidden;
}

.right-image {
  position: fixed;
  opacity: 0.8;
  bottom: 0;
  right: -5%;
  /* width: 20vw; */
  height: 100dvh;
  z-index: -2;
  object-fit: fill;
  overflow: hidden;
  transform: scaleX(-1);
}

.slide-out {
  transform: translateY(-100%);
}

#app {
  max-width: 1280px;
  margin: 0 auto 10rem auto;
  padding: 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
  overflow-x: hidden;
  overflow: visible;
}

.logo {
  /*height: 6em;*/
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
/*.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}*/

.card {
  padding: 2em;
}

.read-the-docs {
  color: #888;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}

button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }

  button {
    background-color: #f9f9f9;
  }
}
 
#app {
  max-width: 1280px;
  margin: 0 auto 10rem auto;
    padding: 2rem;
    text-align: center;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    /*align-content: center;*/
    align-items: center;
}

/* Custom styles for the tab system */
.tabs-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80%;
  margin: 0 auto;
  overflow: visible;
}
.pesce:hover{
  background-color: var(--verde-chiaro)!important;
  color: var(--verde-petrolio)!important;
}
.pizza:hover{
  background-color: var(--arancione)!important;
  color: var(--terra-rossa)!important;
}
.tab-button {
  max-width: 100%;
  width: 80dvw;
  padding: 10px;
  background-color: white;
  color: black;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 1rem;
  font-family: 'Cambria', Georgia, serif;
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.07),
    0 2px 4px rgba(0, 0, 0, 0.07),
    0 4px 8px rgba(0, 0, 0, 0.07),
    0 8px 16px rgba(0, 0, 0, 0.07);
  position: relative;
  overflow: hidden;
}
.tab-button:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.08),
    0 4px 8px rgba(0, 0, 0, 0.08),
    0 8px 16px rgba(0, 0, 0, 0.08),
    0 16px 32px rgba(0, 0, 0, 0.08);
}
.tab-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 30%,
    rgba(255,255,255,0.2) 50%,
    rgba(255,255,255,0) 70%
  );
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.tab-button:hover::after {
  transform: translateX(100%);
}

.tab-content {
  display: none;
  width: 100%;
  padding: 20px;
  color: white;
}
.tab-content.active {
  display: block;
}

.tab-item {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: white;
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.07),
    0 2px 4px rgba(0, 0, 0, 0.07),
    0 4px 8px rgba(0, 0, 0, 0.07),
    0 8px 16px rgba(0, 0, 0, 0.07);
  margin-bottom: 10px;
  border-radius: 5px;
  height: 30vh;
  min-height: 15rem;
  max-height: 30rem;
}

.tab-item-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.overlay-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
  height: 100%;
   background-color: rgba(0, 0, 0, 0.15); /*Sfondo semi-trasparente */
}

.logo-class {
  width: 40%;
  height: auto;
  /*max-height: 40%;*/
  object-fit: contain;
}

.content-container {
  text-align: center;
}

.content-container h2 {
  margin: 0;
  font-size: 1.5em;
  color: white;
}

.content-container p {
  margin: 0.5em 0 0;
  color: white;
}

/* Responsive styles */

@media (max-width: 425px) {
  /*.left-image,.right-image{
    display: none;
  }*/

}

@media (max-width: 768px) {
  .tabs-container {
    width: 90%;
  }

  #app{
    padding: 1rem;
    margin: 0 auto 10rem auto;
  }

  .left-image,
  .right-image {
    display: none;
  }
}

/* Ensure a minimum width of 40rem (640px) on larger screens */
@media (min-width: 1024px) {
  .tabs-container {
    width: 40rem;
  }
}

/* New styles for the logo container and overlay logo */
.logo-container {
 /* position: absolute;
  top: 5vh;
  left: 50%;
  transform: translateX(-50%);*/
  position: relative;
  z-index: 10;
  width: 100%;
  text-align: center;
  margin-top: 1.5rem;
  max-width: 40rem;
}

.overlay-logo {
  /*width: clamp(125px, 15vw, 200px);  Usa clamp per una larghezza responsiva */
  max-width: 100%;
  width: clamp(125px, 15vw, 200px); /* Usa clamp per una larghezza responsiva */
  height: auto;
}

/* Effetto di base */
.overlay-logo {
  mix-blend-mode: difference;
}

/* Effetto alternativo per sfondi più chiari */
.light-background .overlay-logo {
  mix-blend-mode: multiply;
}

@media only screen 
    and (device-width: 430px) 
    and (device-height: 932px) 
    and (-webkit-device-pixel-ratio: 3) {


   
}

.flex-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-inline: auto;
    gap: 1.5rem;
}
/*
.tab-button.active {
    
}*/

.tab-content {
    opacity: 0;
    width: 100%;
    padding: 20px;
}

.tab-content.active {
    opacity: 1;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.bottom-left{
  display: none;
}

.bottom-right{
  display: none;
}

.top-left{
  display: none;
} 

.top-right{
  display: none;
} 

/* Media query per telefoni */
@media screen and (max-width: 767px) {

  .icon {
    position: absolute;
    width: clamp(2rem, 3vw + 1rem, 3rem)!important;
    height: clamp(2rem, 3vw + 1rem, 3rem)!important;
}

.icon svg{
    width: 100%;
    height: 100%;
}
   
  .logo{
      padding: 0;
  }

  .top-right{
    transform: rotate(90deg);
  }

  .bottom-right{
    transform: rotate(180deg);
  }

  .bottom-left{
    transform: rotate(270deg);
  }

 

  .top-left, .top-right {
    display: block;
    position: fixed; 
      top: 0.3125rem;
  }

  .bottom-left, .bottom-right {
    display: block;
    position: fixed; 
      bottom: 0.3125rem;
  }

  .top-left, .bottom-left {
    display: block;
    position: fixed; 
      left: 0.3125rem;
  }

  .top-right, .bottom-right {
    display: block;
    position: fixed; 
      right: 0.3125rem;
  }

  h1 {
      font-size: 1.5rem;
  }

  .flex-container {
      width: 100%;
  }

  /* Aggiungi qui altre modifiche specifiche per i telefoni */
}

/* Cornici mobili - nascoste di default per desktop */
.cornice-mobile-dx,
.cornice-mobile-sx {
  display: none; /* Nasconde le cornici su desktop */
}

/* Media query per mostrare le cornici solo su mobile */
@media screen and (max-width: 767px) {
  .cornice-mobile-dx,
  .cornice-mobile-sx {
    display: block;
    position: fixed;
    top: 0;
    height: 100vh;
    z-index: 1000;
  }

  .cornice-mobile-dx {
    right: 0;
  }

  .cornice-mobile-sx {
    left: 0;
  }

  .cornice-mobile-dx svg,
  .cornice-mobile-sx svg {
    height: 100%;
    width: auto;
  }
}

.tab-content {
    opacity: 0;
    width: 100%;
    padding: 20px;
}

@media screen and (max-width: 767px) {
    .tab-content {
        width: 80dvw;
    }
}

.nome-attivita {
    font-family: 'Cambria', Georgia, serif;
    text-align: center;
    margin-top: 1rem;
    font-size: 1.5rem;
    color: #000000;
    text-transform: uppercase;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.macro-categories {
  display: grid;
  justify-items: center;
  grid-template-columns: repeat(3, 10rem);
  column-gap: 2rem;
  justify-content: center;
  width: fit-content;
  margin: 0 auto;
  padding: 1rem; /* Aggiungiamo padding per dare spazio alle ombre */
  overflow: visible; /* Assicuriamoci che l'overflow sia visibile */
}

.macro-button {
  transform: translateY(0);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: calc(var(--button-index) * 0.1s);
  width: 10rem;
  height: 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.07),
    0 2px 4px rgba(0, 0, 0, 0.07),
    0 4px 8px rgba(0, 0, 0, 0.07),
    0 8px 16px rgba(0, 0, 0, 0.07);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.macro-button:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.08),
    0 4px 8px rgba(0, 0, 0, 0.08),
    0 8px 16px rgba(0, 0, 0, 0.08),
    0 16px 32px rgba(0, 0, 0, 0.08);
}

.macro-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 30%,
    rgba(255,255,255,0.2) 50%,
    rgba(255,255,255,0) 70%
  );
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.macro-button:hover::after {
  transform: translateX(100%);
}

.macro-button.hide {
    transform: translateY(-100vh);
}

.macro-categories.hiding .macro-button {
    transition-delay: calc(var(--button-index) * 0.1s);
}

.subcategories .tab-button {
    transform: translateY(100vh);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.subcategories.show .tab-button {
    transform: translateY(0);
    transition-delay: calc(var(--button-index) * 0.1s);
}

/* Aggiungi una media query per dispositivi mobili */
@media screen and (max-width: 767px) {
  
  #app{
    padding: 0;
  }

  .macro-categories{
    grid-template-columns: repeat(2, 10rem);
  }

  .macro-button{
    padding: 0!important;
  }
}

.btn {
  display: inline-block;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.07),
    0 2px 4px rgba(0, 0, 0, 0.07),
    0 4px 8px rgba(0, 0, 0, 0.07),
    0 8px 16px rgba(0, 0, 0, 0.07);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.08),
    0 4px 8px rgba(0, 0, 0, 0.08),
    0 8px 16px rgba(0, 0, 0, 0.08),
    0 16px 32px rgba(0, 0, 0, 0.08);
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 30%,
    rgba(255,255,255,0.2) 50%,
    rgba(255,255,255,0) 70%
  );
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn:hover::after {
  transform: translateX(100%);
}
.btn-colore-2 {
  background-color: var(--verde2);
  color: var(--white);
  border: 1px solid var(--verde2);
}

.btn-colore-2:hover, .btn-colore-2:focus {
  background-color: var(--white);
  border: 1px solid var(--verde2);
  color: var(--verde2);
}

/* Stili per il bottone info originale */
.info-button-original {
  width: 24px;
  height: 24px;
  border: 2px solid var(--verde-petrolio);
  background: white;
  color: var(--verde-petrolio);
  font-size: 1em;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  margin-left: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
  font-family: 'Times New Roman', serif;
}

/* Nasconde elementi su desktop */
@media screen and (min-width: 768px) {
  .mobile-only {
    display: none !important;
  }
}

/* Mostra elementi solo su mobile */
@media screen and (max-width: 767px) {
  .desktop-only {
    display: none !important;
  }
}

.emergency-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.emergency-modal.show {
    opacity: 1;
    visibility: visible;
}

.emergency-modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    width: 800px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.close-modal {
    position: absolute;
    top: 1.75rem;
    right: 2rem;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.close-modal:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.emergency-modal h2 {
    text-align: center;
    margin: 0.5rem 0 2rem 0;
    color: var(--verde-petrolio);
    font-size: 1.5rem;
    line-height: 2.5rem;
}

.emergency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.emergency-item {
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.emergency-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.emergency-number {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--verde-petrolio);
    margin-bottom: 0.5rem;
}

.emergency-description {
    font-size: 0.9rem;
    color: #666;
}

.emergency-contacts {
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

.emergency-contacts h3 {
    color: var(--verde-petrolio);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.contact-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.contact-list p {
    margin: 0;
    padding: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.contact-list strong {
    color: #333;
}

@media (max-width: 768px) {
    .emergency-modal-content {
        padding: 1rem;
        max-width: 95%;
        margin: 1rem;
    }
    
    .emergency-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-list {
        grid-template-columns: 1fr;
    }
    
    .emergency-modal h2 {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .emergency-number {
        font-size: 1.1rem;
    }
    
    .emergency-description {
        font-size: 0.85rem;
    }
    
    .contact-list p {
        font-size: 0.85rem;
    }
}



