/* RESET */

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

/* ROOT VARIABLES */

:root {
  --red:   #D33E14;
  --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: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 860px;
}

/* 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: var(--grey);
}

.h1-sub em {
  font-style: normal;
  font-weight: 600;
  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);
}

/* ANIMATIONS */

@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 22px;
  }

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

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

  header {
    flex-wrap: wrap;
    row-gap: 32px;
    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;
  }

  .h1-main {
    font-size: clamp(40px, 11vw, 54px);
  }

  .h1-sub {
    margin-top: 8px;
    font-size: clamp(18px, 5.5vw, 26px);
  }

  .body-text {
    max-width: 100%;
    margin-top: 28px;
    font-size: 15px;
  }

  .cta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-top: 32px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 16px;
  }
}



/* =========================
   ACCESSIBILITY SAFE PATCH
   ========================= */

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 10px 14px;
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  border-radius: 8px;
}

.skip-link:focus-visible {
  left: 16px;
  top: 16px;
}

/* Focus keyboard visibile */
a:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 4px;
  border-radius: 8px;
}

/* Scroll desktop sicuro */
html,
body {
  overflow-x: hidden;
  overflow-y: auto;
}

/* Cursor custom solo su mouse preciso */
@media (pointer: fine) {
  body {
    cursor: none;
  }
}

/* Footer links più facili da cliccare */
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 2px;
  font-size: 12px;
}

/* Riduzione animazioni per utenti sensibili */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}