/* RESET */

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

/* ROOT VARIABLES */

:root {
  --red:   #e44316;
  --black: #100f11;
  --white: #fbfafa;
  --grey:  #5a5b61;
  --max:   1600px;
}

/* BASE */

html,
body {
  height: 100%;
  overflow: hidden;

  font-family: 'Outfit', sans-serif;
  background: var(--white);
  color: var(--black);

  cursor: none;
}

/* CUSTOM CURSOR */

#cur,
#cur-ring {
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
}

#cur {
  width: 8px;
  height: 8px;
  z-index: 9999;

  background: var(--black);
  border-radius: 50%;

  transition: background .3s, opacity .3s;
}

#cur-ring {
  width: 32px;
  height: 32px;
  z-index: 9998;

  border: 1px solid rgba(16, 15, 17, .2);
  border-radius: 50%;

  transition:
    width .35s ease,
    height .35s ease,
    border-color .3s,
    opacity .3s;
}

#cur.visible,
#cur-ring.visible {
  opacity: 1;
}

body:has(a:hover) #cur-ring {
  width: 52px;
  height: 52px;
  border-color: var(--red);
}

body:has(a:hover) #cur {
  background: var(--red);
}

/* LAYOUT */

.shell {
  display: flex;
  justify-content: center;

  height: 100vh;
  padding: 0 52px;
}

.page {
  display: grid;
  grid-template-rows: auto 1fr auto;

  width: 100%;
  max-width: var(--max);
  height: 100vh;
  padding: 36px 0;
}

main {
  display: grid;
  grid-template-columns: 60% 40%;
  align-items: center;
  gap: 0;
}

/* Left column */
.main-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* HEADER */

header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;

  opacity: 0;
  animation: fadeDown .7s .05s ease forwards;
}

.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  font-size: 11px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey);
}

.logo {
  display: block;
  text-decoration: none;
}

.logo svg,
.logo img {
  display: block;
  width: auto;
  height: 26px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;

  font-size: 11px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey);
}

.dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;

  background: #22c55e;
  border-radius: 50%;

  animation: greenPulse 2s ease-in-out infinite;
}

/* TYPOGRAPHY & CONTENT */

.eyebrow {
  margin-bottom: 16px;

  opacity: 0;
  animation: fadeUp .7s .25s ease forwards;
}

.eyebrow-line {
  display: flex;
  align-items: center;
  gap: 9px;

  font-size: 11px;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--grey);
}

.eyebrow-sym {
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--red);
}

h1 {
  font-weight: 700;
  line-height: .95;
  letter-spacing: -0.04em;
  color: var(--black);

  opacity: 0;
  animation: fadeUp .8s .4s ease forwards;
}

.h1-main {
  display: block;
  font-size: clamp(52px, 7.5vw, 108px);
  letter-spacing: -0.04em;
}

.h1-sub {
  display: block;
  margin-top: 12px;

  font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;

  color: rgba(90, 91, 97, .55);
}

.h1-sub em {
  font-style: normal;
  font-weight: 400;
  color: var(--grey);
}

.body-text {
  max-width: 600px;
  margin-top: 40px;

  font-size: clamp(16px, 1.4vw, 18px);
  font-weight: 300;
  line-height: 1.75;
  color: #6b6c73;

  opacity: 0;
  animation: fadeUp .7s .6s ease forwards;
}

/* BUTTONS & LINKS */

.cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;

  margin-top: 40px;

  opacity: 0;
  animation: fadeUp .7s .78s ease forwards;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 16px 30px;
  border-radius: 100px;
  overflow: hidden;

  background: var(--red);
  color: var(--white);
  text-decoration: none;

  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;

  background: var(--black);
  border-radius: 100px;

  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.76, 0, .24, 1);
}

.btn:hover::before {
  transform: scaleX(1);
}

.btn span,
.btn svg {
  position: relative;
  z-index: 1;
}

.btn svg {
  transition: transform .3s;
}

.btn:hover svg {
  transform: translateX(4px);
}

.link {
  padding-bottom: 2px;
  white-space: nowrap;

  font-size: 11px;
  font-weight: 400;
  letter-spacing: .13em;
  text-transform: uppercase;

  color: var(--grey);
  text-decoration: none;
  border-bottom: 1px solid rgba(90, 91, 97, .2);

  transition: color .25s, border-color .25s;
}

.link:hover {
  color: var(--red);
  border-color: var(--red);
}

/* FOOTER */

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding-top: 20px;
  border-top: 1px solid rgba(90, 91, 97, .1);

  opacity: 0;
  animation: fadeUp .7s 1s ease forwards;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;

  color: var(--grey);
  text-decoration: none;

  transition: color .25s;
}

.footer-links a:hover {
  color: var(--red);
}

.footer-copy {
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--grey);
}

/* ── PILLS ── */

/*
  Tecnica: ogni .pill-anchor ruota attorno al centro di .pills-col
  con @keyframes orbit. La pill dentro viene contro-rotata per restare
  sempre leggibile. Le tre ancore partono a 0°, 120°, 240°.
*/

.pills-col {
  position: relative;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: fadeIn 1s 1s ease forwards;
}

/* Anchor — perno invisibile che orbita */
.pill-anchor {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform-origin: 0 0;
}

.pill-anchor:nth-child(1) { animation: orbit 18s linear infinite 0s; }
.pill-anchor:nth-child(2) { animation: orbit 18s linear infinite -6s; }
.pill-anchor:nth-child(3) { animation: orbit 18s linear infinite -12s; }

@keyframes orbit {
  from { transform: rotate(0deg)   translateX(var(--orbit-r)); }
  to   { transform: rotate(360deg) translateX(var(--orbit-r)); }
}

/* Raggio orbita — aggiustato via JS in base alla colonna */
.pills-col { --orbit-r: 120px; }

.pill {
  position: absolute;
  top: 0; left: 0;
  transform: translateX(-50%) translateY(-50%);

  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 100px;

  background: rgba(251,250,250,0.82);
  border: 1px solid rgba(90,91,97,.10);
  box-shadow: 0 2px 16px rgba(16,15,17,.05), 0 1px 0 rgba(255,255,255,.95) inset;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  cursor: default;
  white-space: nowrap;

  /* Contro-rotazione: la pill resta sempre dritta */
  animation: counter-orbit 18s linear infinite;
  transition: box-shadow .35s ease, border-color .35s ease, transform .35s ease;
}

.pill-anchor:nth-child(1) .pill { animation-delay:  0s;  }
.pill-anchor:nth-child(2) .pill { animation-delay: -6s;  }
.pill-anchor:nth-child(3) .pill { animation-delay: -12s; }

@keyframes counter-orbit {
  from { transform: translateX(-50%) translateY(-50%) rotate(0deg);    }
  to   { transform: translateX(-50%) translateY(-50%) rotate(-360deg); }
}

.pill:hover {
  border-color: rgba(228,67,22,.25);
  box-shadow: 0 6px 28px rgba(228,67,22,.10), 0 1px 0 rgba(255,255,255,.95) inset;
}

.pill-num {
  font-size: clamp(14px, 1.4vw, 22px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--black);
}

.pill-plus {
  font-size: 0.55em;
  font-weight: 300;
  color: var(--red);
  vertical-align: super;
  margin-left: 1px;
}

.pill-label {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(90,91,97,.5);
  line-height: 1.5;
}

/* ANIMATIONS */

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

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

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

@keyframes greenPulse {
  0%   { box-shadow: 0 0 0 0   rgba(34, 197, 94, .55); }
  70%  { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0   rgba(34, 197, 94, 0); }
}

/* RESPONSIVE */

/* ≤ 1100px */
@media (max-width: 1100px) {
  .shell {
    padding: 0 40px;
  }
}

/* ≤ 768px */
@media (max-width: 768px) {
  .shell {
    padding: 0 28px;
  }

  .page {
    padding: 28px 0 32px;
  }
}

/* ≤ 600px */
@media (max-width: 600px) {

  html,
  body {
    height: auto;
    overflow: auto;
  }

  body {
    cursor: auto;
  }

  .shell {
    height: auto;
    padding: 0 24px;
  }

  .page {
    height: auto;
    min-height: 100svh;
    padding: 32px 0 40px;
    gap: 0;
  }

  #cur,
  #cur-ring {
    display: none;
  }

  /* Header */
  header {
    flex-wrap: wrap;
    row-gap: 20px;
    justify-content: space-between;
  }

  .header-center {
    position: static !important;
    left: auto !important;
    transform: none !important;

    order: 3;
    width: 100%;
    text-align: center;

    font-size: 10px;
    letter-spacing: .18em;
  }

  .header-right {
    font-size: 10px;
    letter-spacing: .1em;
  }

  /* Main */
  main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 0 40px;
  }

  .main-content {
    width: 100%;
  }

  /* Eyebrow */
  .eyebrow {
    margin-bottom: 20px;
  }

  /* Titolo */
  .h1-main {
    font-size: clamp(38px, 10.5vw, 52px);
  }

  .h1-sub {
    margin-top: 10px;
    font-size: clamp(18px, 5.2vw, 24px);
    line-height: 1.3;
  }

  /* Body text */
  .body-text {
    max-width: 100%;
    margin-top: 32px;
    font-size: 16px;
    line-height: 1.7;
  }

  /* CTA */
  .cta-row {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 36px;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 18px 24px;
  }

  /* Pills */
  .pills-col {
    display: none;
  }

  /* Footer */
  footer {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
  }

  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
    text-align: center;
    width: 100%;
    justify-items: center;
  }

  .footer-links a {
    font-size: 10px;
  }

  .footer-copy {
    font-size: 11px;
  }

  /* Disponibile su due righe */
  .header-right {
    font-size: 10px;
    letter-spacing: .1em;
    max-width: 120px;
    line-height: 1.5;
    text-align: right;
  }
}