/* Import del font da Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Jua&display=swap');

:root{
  /* Sfondo con gradiente rosa → viola */
  --bg: linear-gradient(to right, #ec4899, #a855f7);
  --text: #ffffff;
  --muted: #ffffff;
  --btn-bg: #0b0c0f;
  --btn-fg: #fff;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, -apple-system, system-ui, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color:var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
.container{
  max-width:1200px; margin:0 auto; padding: clamp(24px, 4vw, 48px);
  display:grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 6vw, 80px);
  align-items:center; min-height: 100dvh;
}
@media (max-width: 980px){
  .container{ grid-template-columns: 1fr; padding-top:64px; padding-bottom:64px; }
}

.brand-row {
  display: flex;
  align-items: center; /* allinea verticalmente */
  gap: 16px;           /* spazio tra icona e testo */
  margin-bottom: 20px;
}
.brand-row img {
  width: 25%;   /* dimensione icona */
  height: auto;
}

.title{
  font-family: 'Jua', sans-serif; /* font da Google Fonts */
  font-weight: 800;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing:-0.02em;
  margin: 0;
}
.subtitle{ font-size: clamp(18px, 2.2vw, 28px); opacity:.9; margin: 4px 0 0; }
.text{ max-width: 56ch; font-size:18px; color:var(--muted); line-height:1.6; }
.text p{ margin: 0 0 10px; }
.cta-row{ display:flex; align-items:center; gap:20px; margin: 24px 0 28px; }
.cta-row img { width: 160px; height: auto; }
.readmore {
  position: relative;
  font-weight: 600;
  text-decoration: none;
  color: #0b0c0f;
}

.readmore::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;        /* spessore sottolineatura */
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.readmore:hover::after {
  width: 100%;
}

/* Carosello immagini (solo pallini) */
.carousel {
  position: relative;
  max-width: 420px;
  margin:auto;
  overflow: hidden;
  background: transparent;
}
.carousel input[type=radio]{ position:absolute; opacity:0; }
.slides{ display:flex; width:500%; transition:transform .5s ease; }
.slide{ width:20%; display:grid; place-items:center; }
.slide img{
  width: 100%;
  height: auto;
  max-height: 75vh;
  display:block;
  object-fit: contain;
}

/* Navigazione tramite radio */
#s1:checked ~ .slides{ transform: translateX(0%); }
#s2:checked ~ .slides{ transform: translateX(-20%); }
#s3:checked ~ .slides{ transform: translateX(-40%); }
#s4:checked ~ .slides{ transform: translateX(-60%); }
#s5:checked ~ .slides{ transform: translateX(-80%); }

/* Dots */
.dots{ position:absolute; bottom:2px; left:50%; transform:translateX(-50%); display:flex; gap:8px; }
.dots .dot{ width:8px; height:8px; border-radius:50%; background:#ced7de; cursor:pointer; }
#s1:checked ~ .dots .dot:nth-child(1),
#s2:checked ~ .dots .dot:nth-child(2),
#s3:checked ~ .dots .dot:nth-child(3),
#s4:checked ~ .dots .dot:nth-child(4),
#s5:checked ~ .dots .dot:nth-child(5){
  width:10px; height:10px; background:#7aa6a0;
}

/* Footer centrato come pillola */
.footer {
  position: fixed;
  bottom: 14px;     
  width: auto;          /* si adatta al contenuto */
  left: 50%;            /* centrato */
  transform: translateX(-50%); /* centratura corretta */
  display: flex;
  justify-content: center;
}

/* Stile pillola link */
.links {
  display: flex;
  flex-wrap: nowrap;     /* evita che vadano a capo */
  white-space: nowrap;   /* forza il testo su una sola riga */
  gap: 18px;
  font-size: 14px;
  color: #0b0c0f;
  background: rgba(255,255,255,.45);
  padding: 8px 14px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.links a{
  color:inherit;
  text-decoration:none;
  opacity:.9;
  padding: 4px 10px;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}
.links a:hover{
  background: rgba(0,0,0,0.08);
  opacity:1;
}
.links .nolink{
    padding: 4px 10px;
    border-radius:999px;
    opacity:.8;
    cursor: default;
    user-select: none;
}

/* Adattamento mobile */
@media (max-width: 600px) {
  .links {
    font-size: 11px;     /* testo ridotto del 25% */
    padding: 6px 10px;   /* pillola più compatta */
    gap: 12px;           /* meno spazio tra i link */
    max-width: 90vw;     /* margine minimo dai bordi */
  }
}