/* ==========================================================
   Home · giorgiacampus.it
   ========================================================== */

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 10;
  padding: 24px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 72, "SOFT" 100, "WONK" 1;
}

.wordmark img { width: 30px; height: auto; transition: transform 0.3s ease; }
.wordmark:hover img { transform: rotate(-14deg); }

.wordmark .tld { color: var(--cherry); }

.nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 600;
}

.nav a {
  text-decoration: none;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 2px;
  background: var(--cherry);
  transition: right 0.25s ease;
}

.nav a:hover::after { right: 0; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(48px, 9vw, 120px) 0 clamp(64px, 10vw, 140px);
}

.hero .eyebrow { margin-bottom: 28px; }

.hero h1 {
  font-size: clamp(52px, 10.5vw, 168px);
  max-width: 9.5ch;
}

.hero h1 .strike {
  position: relative;
  white-space: nowrap;
}

.hero h1 .strike::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  top: 54%;
  height: 0.09em;
  background: var(--cherry);
  transform: rotate(-3deg);
  border-radius: 4px;
}

.hero-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: clamp(40px, 6vw, 72px);
}

.hero-lede {
  max-width: 34ch;
  margin: 0;
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--cream-dim);
}

.hero-lede strong { color: var(--cream); font-weight: 700; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Ciliegie che penzolano */
.hero-cherry {
  position: absolute;
  top: clamp(8px, 4vw, 56px);
  right: var(--gutter);
  width: clamp(110px, 18vw, 250px);
  transform-origin: 53% 8%;
  animation: swing 5s ease-in-out infinite;
}

@keyframes swing {
  0%, 100% { transform: rotate(-6deg); }
  50%      { transform: rotate(5deg); }
}

/* Bollino rotante */
.sticker {
  position: absolute;
  right: calc(var(--gutter) + clamp(20px, 4vw, 60px));
  top: clamp(240px, 30vw, 420px);
  width: clamp(110px, 12vw, 150px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  display: grid;
  place-items: center;
  transform: rotate(12deg);
}

.sticker svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 16s linear infinite; }
.sticker text {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  fill: var(--ink);
}

.sticker .core {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(26px, 3vw, 36px);
  color: var(--cherry);
  font-variation-settings: "opsz" 72, "SOFT" 100, "WONK" 1;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Nastro ---------- */

.ribbon {
  background: var(--cherry);
  color: var(--cream);
  transform: rotate(-1.6deg);
  margin: 0 -2vw;
  padding: 18px 0;
  overflow: hidden;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.ribbon-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.ribbon-track span {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: -0.02em;
  padding-right: 0.6em;
  white-space: nowrap;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}

.ribbon-track .leaf {
  display: inline-block;
  width: 0.5em;
  height: 0.28em;
  margin: 0 0.5em 0 0;
  border-radius: 0 100% 0 100%;
  background: var(--stem);
  vertical-align: 0.2em;
}

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Landing (sottodomini) ---------- */

.landings {
  padding: clamp(96px, 12vw, 160px) 0 clamp(64px, 8vw, 120px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head h2 {
  font-size: clamp(44px, 7vw, 104px);
  max-width: 12ch;
}

.section-head p {
  max-width: 30ch;
  margin: 0;
  color: var(--cream-dim);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  padding: 28px;
  border-radius: 28px;
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1.2), background 0.3s ease, border-color 0.3s ease;
}

.card:nth-child(1):hover { transform: rotate(-2.5deg) translateY(-8px); }
.card:nth-child(2):hover { transform: rotate(2deg) translateY(-8px); }
.card:nth-child(3):hover { transform: rotate(-1.5deg) translateY(-8px); }

.card:hover { background: var(--cherry); border-color: var(--cherry); }

.card-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 96px;
  line-height: 0.8;
  color: var(--ink-3);
  font-variation-settings: "opsz" 144;
  transition: color 0.3s ease;
}

.card:hover .card-num { color: var(--cherry-deep); }

.card-sub {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--stem);
  transition: color 0.3s ease;
}

.card:hover .card-sub { color: var(--cream); }

.card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 2.8vw, 40px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
}

.card p { margin: 0; color: var(--cream-dim); transition: color 0.3s ease; }
.card:hover p { color: var(--cream); }

.card-go {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--cream);
  display: grid;
  place-items: center;
  font-size: 22px;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.card:hover .card-go { transform: rotate(-45deg); background: var(--cream); color: var(--cherry); }

/* ---------- Citazione ---------- */

.manifesto {
  padding: clamp(72px, 10vw, 140px) 0;
  border-top: 1px solid var(--ink-3);
}

.manifesto blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(34px, 5.4vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 18ch;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}

.manifesto blockquote .hl {
  font-style: normal;
  font-weight: 800;
  color: var(--cherry);
}

.manifesto cite {
  display: block;
  margin-top: 32px;
  font-style: normal;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  padding: clamp(72px, 10vw, 120px) 0 40px;
  background: var(--cherry);
  color: var(--cream);
  overflow: hidden;
}

.site-footer .big {
  font-size: clamp(88px, 22vw, 340px);
  line-height: 0.8;
  color: var(--ink);
}

.site-footer .big em { color: var(--cream); }

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.footer-row a { text-decoration: none; }
.footer-row a:hover { text-decoration: underline; }

.footer-cherry {
  position: absolute;
  right: var(--gutter);
  top: 48px;
  width: clamp(70px, 10vw, 140px);
  transform: rotate(18deg);
  filter: drop-shadow(0 10px 0 rgba(24, 21, 19, 0.35));
}

.site-footer .btn--ghost { border-color: var(--ink); color: var(--ink); }
.site-footer .btn--ghost:hover { background: var(--ink); color: var(--cream); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 280px; }
  .sticker { display: none; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .hero-cherry { top: 0; width: 92px; }
  .hero h1 { padding-right: 0; }
  .footer-cherry { top: 24px; }
}
