@font-face {
    font-family: "Testi";
    src: url(font/delhi.ttf);
}

@font-face {
    font-family: "Corsivo";
    src: url(font/photograph-signature.ttf);
}

:root {
  --text-light: #ffffff;
  --text-dark: #2c2c2c;

  --primary: #48AED8aa;
  --secondary: #F6C846aa;
  --success: #51D8A4aa;
  --danger:  #F6786Baa;
  --tertiary: #aaaaaaaa;

  --card-bg: rgba(255, 255, 255, 0.6);

  --card-box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), inset 0 0 0.5px rgba(255, 255, 255, 0.25), inset 0 1px 6px rgba(255, 255, 255, 0.05);
  --form-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.4);  

  --card-backdrop-filter: 10px;

  --card-border-radius: 2em;
  --button-border-radius: 2em;
  --image-border-radius: 1em;

  --card-max-width: 480px;

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

  --button-padding: 1rem 1rem 1rem 1rem;
}

.p-5 {
  padding: 2.5rem !important;
}

/* --- Animazioni --- */
@keyframes slideFadeInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideFadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

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

@keyframes slideFadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-slide-up {
  animation: slideFadeInUp 0.4s ease-out forwards;
  opacity: 0;
}

.animate-slide-down {
  animation: slideFadeInDown 0.4s ease-out forwards;
  opacity: 0;
}

.animate-fade-in {
  animation: slideFadeIn 0.4s ease-in-out forwards;
  opacity: 0;
}

/* --- --- */

body {
  min-height: 100vh;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' version='1.1' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:svgjs='http://svgjs.dev/svgjs' width='1080' height='1920' preserveAspectRatio='none' viewBox='0 0 1080 1920'%3e%3cg mask='url(%26quot%3b%23SvgjsMask1002%26quot%3b)' fill='none'%3e%3crect width='1080' height='1920' x='0' y='0' fill='rgba(245%2c 245%2c 245%2c 1)'%3e%3c/rect%3e%3cpath d='M601.08 792.07 a237.35 237.35 0 1 0 474.7 0 a237.35 237.35 0 1 0 -474.7 0z' fill='rgba(255%2c 236%2c 201%2c 0.4)' class='triangle-float3'%3e%3c/path%3e%3cpath d='M22.98 66.55 a239.4 239.4 0 1 0 478.8 0 a239.4 239.4 0 1 0 -478.8 0z' fill='rgba(255%2c 236%2c 201%2c 0.4)' class='triangle-float3'%3e%3c/path%3e%3cpath d='M633.79 459.15 a329.92 329.92 0 1 0 659.84 0 a329.92 329.92 0 1 0 -659.84 0z' fill='rgba(255%2c 236%2c 201%2c 0.4)' class='triangle-float3'%3e%3c/path%3e%3cpath d='M240.63 1123.63 a341.25 341.25 0 1 0 682.5 0 a341.25 341.25 0 1 0 -682.5 0z' fill='rgba(255%2c 236%2c 201%2c 0.4)' class='triangle-float3'%3e%3c/path%3e%3cpath d='M214.89 1867.18 a312.47 312.47 0 1 0 624.94 0 a312.47 312.47 0 1 0 -624.94 0z' fill='rgba(255%2c 236%2c 201%2c 0.4)' class='triangle-float1'%3e%3c/path%3e%3c/g%3e%3cdefs%3e%3cmask id='SvgjsMask1002'%3e%3crect width='1080' height='1920' fill='white'%3e%3c/rect%3e%3c/mask%3e%3cstyle%3e %40keyframes float1 %7b 0%25%7btransform: translate(0%2c 0)%7d 50%25%7btransform: translate(-10px%2c 0)%7d 100%25%7btransform: translate(0%2c 0)%7d %7d .triangle-float1 %7b animation: float1 5s infinite%3b %7d %40keyframes float2 %7b 0%25%7btransform: translate(0%2c 0)%7d 50%25%7btransform: translate(-5px%2c -5px)%7d 100%25%7btransform: translate(0%2c 0)%7d %7d .triangle-float2 %7b animation: float2 4s infinite%3b %7d %40keyframes float3 %7b 0%25%7btransform: translate(0%2c 0)%7d 50%25%7btransform: translate(0%2c -10px)%7d 100%25%7btransform: translate(0%2c 0)%7d %7d .triangle-float3 %7b animation: float3 6s infinite%3b %7d %3c/style%3e%3c/defs%3e%3c/svg%3e");
  /* background-image: url(img/bg-.webp); */
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  font-family: "Testi";
  line-height: 1.75rem;
  /* overflow: hidden; */
}

h1 {
    font-size: 2.8em;
    letter-spacing: -0.5px;
    margin:0;
    line-height: 3rem;
}

h2 {
    font-size: 3.4em;
    letter-spacing: -0.5px;
    line-height: 3rem;
}

h3 {
  font-size: 1.8em;
  letter-spacing: -0.5px;
  margin:0;
}

p, span {
  letter-spacing: 0.1rem;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;  /* IE & Edge */
  scrollbar-width: none;     /* Firefox */
}

a {
  text-decoration: none;
}

.vh-25 {
  height: 25vh;
}

.vh-50 {
  height: 50vh;
}

.vh-75 {
  height: 75vh;
}

.logo {
  height: auto;
  width: 60px;
}

.logo-dashboard {
  height: auto;
}

.corsivo {
  font-family: "Corsivo";
}

hr {
  color: var(--tertiary);
}

.progress-label {
    font-size: 0.9rem;
    color: var(--tertiary);
    text-align: center;
    margin-bottom: 0.5rem;
}

.card {
    max-width: var(--card-max-width);
    width: 100%;
    border-radius: var(--card-border-radius);
    background-color: var(--card-bg);
    border: var(--border);
    backdrop-filter: blur(var(--card-backdrop-filter));
    -webkit-backdrop-filter: blur(var(--card-backdrop-filter));
    box-shadow: var(--card-box-shadow);  
}

.step {
    flex-grow: 1;
}

/* --- Pulsanti generali --- */
.button {
    color: var(--text-light);
    padding: var(--button-padding);
    border: var(--border);
    border-radius: var(--button-border-radius);
    text-align: center;
    transition: all 0.3s ease;
    /* font-size: 1.2rem; */
    margin-top: 1rem;
    letter-spacing: 0.1rem;
    box-shadow: var(--card-box-shadow);
    backdrop-filter: blur(var(--card-backdrop-filter));
    -webkit-backdrop-filter: blur(var(--card-backdrop-filter));
  }
  
  .primary {
    background-color: var(--primary);
  }
  
  .secondary {
    background-color: var(--secondary);
  }
  
  .btn-icon-circle {
    width: 3.5em;
    height: 3.5em;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(var(--card-backdrop-filter));
    -webkit-backdrop-filter: blur(var(--card-backdrop-filter));
    transition: all 0.2s ease;
    z-index: 999;
  }

  .btn-icon-circle i {
    font-size: 1.2em;
  }
  
  .animate-slide-right {
    animation: slideFadeInRight 0.3s ease-out;
  }
  
  .animate-slide-left {
    animation: slideFadeInLeft 0.3s ease-out;
  }
  
  /* --- Layout Form --- */
  .form-container {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  
  .step-content {
    flex: 1;
  }
  
  .step-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 1.5rem;
  }
  
  /* --- Label --- */
  .form-label {
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
    color: var(--text-dark);
    letter-spacing: 0.1rem;
  }
  
  /* --- Input / Select / Textarea (uniformati) --- */
  .form-control, .form-select, .form-textarea {
    background-color: var(--card-bg);
    border: 2px solid transparent !important;
    border-radius: 16px;
    padding: 1.2rem 1rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.3s ease-in-out;
    color: var(--text-dark);
    resize: none;
    box-shadow: var(--form-box-shadow);
  }
  
  .form-control::placeholder,
  .form-select:invalid,
  .form-textarea::placeholder {
    color: var(--tertiary);
    font-size: 0.85rem;
    letter-spacing: 0.1rem;
  }
  
  .form-control:focus,
  .form-select:focus,
  .form-textarea:focus {
    border-color: var(--primary);
    outline: none;
    background-color: var(--card-bg);
  }
  
  /* Textarea bloccata ma coerente */
  textarea[readonly] {
    pointer-events: none;
    background-color: var(--card-bg);
    opacity: 1;
    color: var(--text-dark);
  }
  
  /* --- Radio Button in forma di Card --- */
  .card-option {
    display: block;
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.05),                      /* ombra leggera */
    inset 0 1px 1px rgba(255, 255, 255, 0.4)            /* luce interna */
  }
  
  .card-option-inner {
    padding: 1.2rem 1rem;
    border-radius: 16px;
    background: var(--card-bg);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all 0.2s ease;
    text-align: center;
    color: var(--text-dark);
    letter-spacing: 0.1rem;
  }
  
  .card-option:hover .card-option-inner {
    background: var(--card-bg);
  }
  
  input[type="radio"]:checked + .card-option-inner {
    background: var(--secondary);
    font-weight: 700;
  }

.countdown-container {
  text-align: center;
  margin-top: 20px;
}

#days, #hours, #minutes, #seconds {
  font-size: 1.2rem;
  font-weight: bold;
}

.dashboard-logo {
  height: auto;
  width: 180px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.2rem;
  padding: 2rem 1rem;
}

.dashboard-card {
  text-align: center;
  background-color: var(--card-bg);
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-dark);
  transition: all 0.3s ease;
  box-shadow: var(--card-box-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 2rem 1rem;
}

.dashboard-img {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.sottotitolo {
  margin-bottom: 1rem;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  padding: 2rem 1rem;
}

.gallery-grid img,
.gallery-grid video {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.gallery-grid img:hover,
.gallery-grid video:hover {
  transform: scale(1.03);
}

.gallery-hero {
  width: 100%;
  max-height: 100vh;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-bottom-left-radius: 2rem;
  border-bottom-right-radius: 2rem;
}

.album-slider-container {
  padding: 2rem 1rem;
  background: var(--card-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 2rem;
  margin-top: -15rem;
  position: relative;
  z-index: 1;
}

.album-slider {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 1rem 1rem 2rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-padding: 1rem;
}

.album-slider::-webkit-scrollbar {
  display: none;
}

.album-card {
  flex: 0 0 50vw; /* circa 1.5 card visibili */
  scroll-snap-align: start;
  background-color: rgba(255, 255, 255, 0.75);
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(var(--card-backdrop-filter));
  -webkit-backdrop-filter: blur(var(--card-backdrop-filter));
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.1),
    inset 0 1px 4px rgba(255, 255, 255, 0.1);
  text-align: center;
  text-decoration: none;
  color: var(--text-dark);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.album-card:hover {
  transform: scale(1.03);
}

.album-card img {
  object-fit: cover;
  padding: 0.5rem;
  border-radius: 1.5rem;
}

.album-title {
  padding-bottom: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* sempre 2 per riga */
  gap: 0.4rem;
  padding: 1.5rem;
}

.media-tile {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 1rem;
  background: #f0f0f0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.media-tile img,
.media-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0.2rem;
}

.img-fluid {
  border-radius: 1rem;
}

#likeCount {
  position: relative;
  bottom: 2.5px;
}

.swiper {
  padding-bottom: 2rem;
}

.swiper-slide {
  display: flex;
  justify-content: center;
}

.menu-card {
  background: var(--card-bg);
  border-radius: var(--card-border-radius);
  backdrop-filter: blur(var(--card-backdrop-filter));
  -webkit-backdrop-filter: blur(var(--card-backdrop-filter));
  border: var(--border);
  padding: 2rem;
  width: 100%;
  min-height: 50vh;
  margin-bottom: 1rem;
  -webkit-box-shadow: 0px 10px 15px -10px rgba(0,0,0,0.2); 
box-shadow: 0px 10px 15px -10px rgba(0,0,0,0.2);
}

.menu-title {
  text-align: center;
  /* font-size: 2.2rem; */
  margin-bottom: 1.2rem;
  margin-left: -0.6rem;
}

.menu-img {
  width: 60px;
  height: 60px;
}

.menu-elenco p {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.sfida-img {
  width: 160px;
  height: auto;
  border-radius: var(--image-border-radius);
}

.toggle-switch {
  transform: scale(1.3);
}

.form-check-label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-dark);
  text-align: center;
}

.toggle-btn {
  cursor: pointer;
  transition: all 0.3s ease;
  border: var(--border);
  background: var(--card-bg);
  box-shadow: var(--card-box-shadow);
  backdrop-filter: blur(var(--card-backdrop-filter));
  border-radius: var(--button-border-radius);
  padding: 1.2em;
  color: var(--text-dark);
}

.toggle-btn.active {
  border: 2px solid var(--text-light);
  color: var(--text-light);
  /* box-shadow: 0 0 10px rgba(72, 174, 216, 0.4); */
}

.toggle-btn.active[data-menu="standard"] {
  background: var(--secondary);
}

.toggle-btn.active[data-menu="lactosefree"] {
  background: var(--primary);
}

.toggle-btn.active[data-menu="vegan"] {
  background: var(--success);
}

.toggle-btn.active[data-menu="glutenfree"] {
  background: var(--danger);
}


.swiper-slide-shadow-left,
.swiper-slide-shadow-right,
.swiper-slide-shadow-top,
.swiper-slide-shadow-bottom{
  background: none !important;
  opacity: 0 !important;
  display: none !important;
}

/* SCALETTA */

.timeline .line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  transform: translateX(-50%);
  background: var(--primary);
  z-index: 0;
  border-radius: 10px;
}

.timeline-item {
  position: relative;
  width: 100%;
  margin-bottom: 2.5em;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-dot {
  position: relative;
  z-index: 2;
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 4px rgba(246, 200, 70, 0.3);
  margin-bottom: 0.5em;
}

.timeline-card {
  width: 100%;
  background: var(--card-bg);
  backdrop-filter: blur(var(--card-backdrop-filter));
  border: var(--border);
  border-radius: var(--card-border-radius);
  box-shadow: var(--card-box-shadow);
  padding: 1.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

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