/* ===== Happybeet — Landing Page Styles ===== */

/* ===== Design Tokens ===== */
:root {
  /* Colors */
  --color-crema: #FFF8ED;
  --color-crema-alt: #F6F1E9;
  --color-foglia-tint: #F5FAF3;
  --color-bosco: #235A3F;
  --color-bosco-dark: #123824;
  --color-foglia: #D3E7CF;
  --color-foglia-btn: #79B06E;
  --color-terracotta: #FEE4CD;
  --color-terracotta-dark: #A8480F;
  --color-terracotta-btn: #F9A163;
  --color-sabbia: #E9DCCA;
  --color-inchiostro: #3B4A40;
  --color-inchiostro-dark: #2E3E34;
  --color-testo-verde: #E8F1E4;
  --color-grigio: #6B756D;
  --color-grigio-dark: #5A675D;
  --color-bordo: #D9CDB8;
  --color-bianco: #FFFFFF;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Spacing scale — single source of truth, use these instead of raw px */
  --space-2xs: 0.5rem;   /*  8px */
  --space-xs: 0.75rem;   /* 12px */
  --space-sm: 1rem;      /* 16px */
  --space-md: 1.5rem;    /* 24px */
  --space-lg: 2rem;      /* 32px */
  --space-xl: 3rem;      /* 48px */
  --space-2xl: 4rem;     /* 64px */

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-soft: 0 10px 30px rgba(35, 90, 63, .08);
  --shadow-medium: 0 14px 34px rgba(35, 90, 63, .08);
  --shadow-strong: 0 18px 44px rgba(35, 90, 63, .1);
  --shadow-btn: 0 10px 24px rgba(35, 90, 63, .28);
  --shadow-btn-owner: 0 8px 20px rgba(121, 176, 110, .4);
  --shadow-btn-farmer: 0 8px 20px rgba(249, 161, 99, .45);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;

  /* Layout */
  --max-width: 1120px;
  --max-width-wide: 1560px;
  --max-width-prose: 680px;
  --max-width-read: 760px;

  /* Rhythm — the few values used to keep every gap on the page identical */
  --gutter: 1.5rem;          /* page side padding */
  --gutter-sm: 1rem;         /* page side padding (mobile) */
  --section-space: 3rem;     /* vertical padding of every section (48px) */
  --section-space-sm: 2.5rem; /* vertical padding of every section (mobile, 40px) */
  --content-gap: 2.5rem;     /* gap between a heading and the content below it (40px) */
  --card-gap: 1.5rem;        /* gap between sibling cards */
  --stack-gap: 1rem;         /* gap between elements stacked inside a card */
  --card-pad: 2rem;          /* padding inside a card */
  --btn-pad: 1.5rem;         /* horizontal padding of a button */
  --btn-pad-lg: 3rem;        /* horizontal padding of a large button */
  --header-offset: 5rem;     /* height of the sticky header, used by anchor links */
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-inchiostro);
  background-color: var(--color-crema);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

/* ===== Utilities ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.section {
  padding: var(--section-space) var(--gutter);
  scroll-margin-top: var(--header-offset);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.625rem);
  font-weight: 700;
  color: var(--color-bosco);
  line-height: 1.1;
  text-align: center;
  margin-bottom: var(--content-gap);
}

.eyebrow {
  display: block;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-terracotta-dark);
  margin-bottom: 0;
}

.eyebrow-dark {
  color: #8A3A0A;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1875rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-normal);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--color-bosco);
  outline-offset: 3px;
}

.btn-hero {
  background: var(--color-bosco);
  color: var(--color-crema);
  font-size: 1.1875rem;
  padding: 0 var(--btn-pad-lg);
  min-height: 56px;
  border-radius: 56% 44% 50% 50% / 60% 55% 45% 40%;
  box-shadow: var(--shadow-btn);
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(35, 90, 63, .35);
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 237, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(35, 90, 63, .14);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xs) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 52px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--color-bosco);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-link {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-bosco);
  padding: var(--space-xs) var(--space-2xs);
}

.nav-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.nav-cta {
  text-decoration: none;
  background: var(--color-bosco);
  color: var(--color-crema);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: var(--space-xs) var(--space-md);
  border-radius: 56% 44% 50% 50% / 60% 55% 45% 40%;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  transition: transform var(--transition-fast);
}

.nav-cta:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2xs);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-bosco);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* ===== Hero ===== */
.hero {
  padding: var(--space-xl) var(--gutter) 0;
}
.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 1.05;
  color: var(--color-bosco);
  text-wrap: balance;
  text-align: center;
  margin-bottom: 0;
}

.hero-instagram {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  text-decoration: none;
  width: 165px;
}

.hero-instagram img {
  width: 24px;
  height: 24px;
  object-fit: cover;
}

.hero-instagram span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--color-bosco);
  background-color: rgba(255, 248, 237, .94);
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--color-inchiostro);
  max-width: 620px;
  text-wrap: pretty;
}

.hero-image-wrap {
  max-width: var(--max-width);
  margin: var(--space-lg) auto 0;
}

.hero-image-wrap picture {
  display: block;
}

.hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 50% / 90px;
}

/* ===== Come funziona ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--card-gap);
  margin-top: var(--content-gap);
}

.step-card {
  border-radius: 52% 48% 55% 45% / 40% 44% 56% 60%;
  padding: var(--space-xl) var(--card-pad);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--stack-gap);
  box-shadow: var(--shadow-medium);
}

.step-1 { background: var(--color-foglia); }
.step-2 { background: var(--color-terracotta); border-radius: 46% 54% 44% 56% / 44% 40% 60% 56%; }
.step-3 { background: var(--color-bosco); border-radius: 56% 44% 50% 50% / 42% 46% 54% 58%; }

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-bosco);
  color: var(--color-crema);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-2 .step-number {
  background: var(--color-terracotta-dark);
}

.step-3 .step-number {
  background: var(--color-crema);
  color: var(--color-bosco);
}

.step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5625rem;
  line-height: 1.15;
  color: var(--color-bosco);
  margin-bottom: 0;
}

.step-3 .step-title {
  color: var(--color-crema);
}

.step-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-inchiostro-dark);
}

.step-3 .step-text {
  color: var(--color-testo-verde);
}

/* ===== Ti riconosci ===== */
.ti-riconosci {
  text-align: center;
  background: var(--color-crema-alt);
  border-radius: 0 0 56px 56px / 0 0 40px 40px;
}

.pills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--content-gap);
}

.pill {
  font-weight: 500;
  font-size: 1.0625rem;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-pill);
}

.pill-green { background: var(--color-foglia); color: var(--color-bosco-dark); }
.pill-orange { background: var(--color-terracotta); color: var(--color-bosco-dark); }
.pill-sand { background: var(--color-sabbia); color: var(--color-bosco-dark); }
.pill-green-dark { background: var(--color-bosco); color: var(--color-crema); }

.ti-riconosci-cta {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-bosco);
  margin-top: var(--content-gap);
}

/* ===== Digital Detox ===== */
.digital-detox {
  background: linear-gradient(180deg, var(--color-foglia-tint) 0%, var(--color-crema) 100%);
  border-radius: 40px / 28px;
}
.detox-header,
.timeline-header {
  max-width: var(--max-width-prose);
  margin: 0 auto var(--content-gap);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
}

/* The header blocks use flex `gap`, so the heading must not add its own margin */
.detox-header .section-title,
.timeline-header .section-title {
  margin-bottom: 0;
}

.detox-intro {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--color-inchiostro);
  text-wrap: pretty;
}

.detox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--card-gap);
}

.detox-card {
  background: var(--color-bianco);
  border-radius: 44px 28px 40px 24px / 36px 44px 28px 40px;
  padding: 0 var(--card-pad) var(--card-pad);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap);
  box-shadow: var(--shadow-soft);
}

/* The image bleeds to the card edges via the negative margin, so it fills 100% */
.detox-card-image {
  margin: 0 calc(var(--card-pad) * -1);
}

.detox-card-image img {
  width: 100%;
  max-width: none;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.detox-card-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4375rem;
  line-height: 1.2;
  color: var(--color-bosco);
  margin-bottom: var(--space-sm);
}

.detox-card-body p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-inchiostro);
}

/* ===== Iscrizione ===== */
.iscrizione-sub {
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-inchiostro);
  max-width: 560px;
  margin: 0 auto var(--content-gap);
}

.iscrizione-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: var(--card-gap);
  align-items: stretch;
  max-width: var(--max-width);
  margin: var(--content-gap) auto 0;
}

.signup-card {
  background: var(--color-bianco);
  padding: var(--space-xl) var(--card-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--stack-gap);
  box-shadow: var(--shadow-strong);
}

.signup-owner {
  border-radius: 190px 130px 130px 80px / 170px 120px 120px 90px;
}

.signup-farmer {
  border-radius: 130px 190px 80px 130px / 120px 170px 90px 120px;
}

.signup-icon {
  width: 150px;
  height: auto;
}

.signup-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.625rem;
  color: var(--color-bosco);
}

.signup-desc {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-inchiostro);
  max-width: 400px;
}

.signup-call {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.35;
}

.signup-owner .signup-call {
  color: #2F6B2B;
}

.signup-farmer .signup-call {
  color: var(--color-terracotta-dark);
}

/* ===== Forms ===== */
.signup-form {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap);
  margin-top: 0;
}

.signup-form input[type="email"],
.signup-form input[type="text"] {
  box-sizing: border-box;
  width: 100%;
  height: 56px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-bordo);
  background: var(--color-crema);
  padding: 0 var(--space-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-bosco-dark);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.signup-form input::placeholder {
  color: var(--color-grigio);
  opacity: 1;
}

.signup-form input:focus {
  outline: none;
  border-color: var(--color-bosco);
  box-shadow: 0 0 0 3px rgba(35, 90, 63, .15);
}

.form-row {
  display: flex;
  gap: var(--stack-gap);
}

.form-row input[type="text"] {
  width: 181px;
  flex: none;
}

.btn-owner {
  flex: 1 1 auto;
  height: 56px;
  padding: 0 var(--btn-pad);
  background: var(--color-foglia-btn);
  color: var(--color-bosco-dark);
  font-size: 1.0625rem;
  border-radius: 56% 44% 50% 50% / 60% 55% 45% 40%;
  box-shadow: var(--shadow-btn-owner);
}

.btn-farmer {
  flex: 1 1 auto;
  height: 56px;
  padding: 0 var(--btn-pad);
  background: var(--color-terracotta-btn);
  color: var(--color-bosco-dark);
  font-size: 1.0625rem;
  border-radius: 46% 54% 52% 48% / 42% 58% 42% 58%;
  box-shadow: var(--shadow-btn-farmer);
}

.form-note {
  font-size: 0.84375rem;
  line-height: 1.5;
  color: var(--color-grigio-dark);
  max-width: 420px;
  margin-top: 0;
}

/* ===== Liste d'attesa ===== */
.liste-attesa {
  background: var(--color-foglia-tint);
  border-radius: 40px / 28px;
}

.liste-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: var(--space-xl);
  align-items: center;
}

.liste-content .section-title {
  text-align: left;
}

.liste-text {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--color-inchiostro);
  text-wrap: pretty;
  margin-bottom: var(--content-gap);
}

.liste-items {
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap);
  margin-top: 0;
}

.liste-item {
  border-radius: var(--radius-pill);
  padding: var(--space-sm) var(--space-md);
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-bosco-dark);
}

.liste-item-green { background: var(--color-foglia); }
.liste-item-orange { background: var(--color-terracotta); }

.liste-item-cta {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--color-bosco);
  padding: var(--space-2xs) var(--space-md) 0;
  background: none;
}

.liste-image {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.liste-image img {
  width: 280px;
  max-width: 80%;
  height: auto;
  margin-top: 0;
}

/* ===== Cosa aspettarsi ===== */
.cosa-aspettarsi {
  background: var(--color-crema-alt);
  border-radius: 56px 56px 0 0 / 40px 40px 0 0;
}

.timeline-intro {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--color-inchiostro);
  text-wrap: pretty;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--card-gap);
}

.timeline-card {
  background: var(--color-bianco);
  border-radius: 44px 28px 40px 24px / 36px 44px 28px 40px;
  padding: var(--card-pad);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--stack-gap);
  box-shadow: var(--shadow-soft);
}

.timeline-card-dark {
  background: var(--color-bosco);
  border-radius: 40px 24px 46px 30px / 28px 40px 32px 44px;
  box-shadow: 0 14px 34px rgba(35, 90, 63, .25);
}

.timeline-badge {
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: .04em;
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-pill);
}

.timeline-card:nth-child(1) .timeline-badge {
  background: var(--color-foglia);
  color: var(--color-bosco-dark);
}

.timeline-card:nth-child(2) .timeline-badge {
  background: var(--color-terracotta);
  color: #7A340A;
}

.timeline-card-dark .timeline-badge {
  background: var(--color-crema);
  color: var(--color-bosco);
}

.timeline-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.625rem;
  line-height: 1.15;
  color: var(--color-bosco);
  margin-bottom: 0;
}

.timeline-card-dark h3 {
  color: var(--color-crema);
}

.timeline-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-inchiostro);
}

.timeline-card-dark p {
  color: var(--color-testo-verde);
}

/* ===== Il Progetto ===== */
/* A section like the others, only with a coloured background and rounded corners */
.progetto {
  background: var(--color-sabbia);
  border-radius: 50% / 80px;
}

.progetto-header {
  max-width: var(--max-width-prose);
  margin: 0 auto var(--content-gap);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
}

.progetto-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.2;
  color: var(--color-bosco);
  text-wrap: balance;
  margin-bottom: 0;
}

.progetto-text {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--color-inchiostro-dark);
  text-wrap: pretty;
}

.progetto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: var(--card-gap);
  width: 100%;
  margin-top: 0;
  text-align: left;
}

.progetto-card {
  background: var(--color-crema);
  border-radius: 36px 24px 34px 22px / 30px 36px 24px 34px;
  padding: var(--card-pad);
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap);
}

.progetto-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3125rem;
  color: var(--color-bosco);
  margin-bottom: 0;
}

.progetto-card p {
  font-size: 0.96875rem;
  line-height: 1.55;
  color: var(--color-inchiostro);
}

.progetto-footer {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--color-inchiostro-dark);
  text-wrap: pretty;
  max-width: var(--max-width-read);
  margin: var(--content-gap) auto 0;
  text-align: center;
}

.progetto .btn-hero {
  display: flex;
  width: fit-content;
  margin: var(--space-lg) auto 0;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: var(--max-width-read);
  margin: var(--content-gap) auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap);
}

.faq-item {
  background: var(--color-bianco);
  border-radius: 28px;
  padding: var(--card-pad);
  box-shadow: 0 6px 20px rgba(35, 90, 63, .06);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-bosco);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--color-terracotta-dark);
  flex: none;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-answer p {
  margin-top: var(--space-sm);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-inchiostro);
}

/* ===== Footer ===== */
.footer {
  margin-top: 0;
  border-top: 1px solid rgba(35, 90, 63, .14);
  padding: var(--section-space) var(--gutter);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--stack-gap);
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--color-bosco);
}

.footer-tagline {
  font-size: 0.9375rem;
  color: var(--color-grigio-dark);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2xs) var(--space-md);
  margin-top: 0;
  font-size: 0.875rem;
}

.footer-nav a {
  color: var(--color-bosco);
  text-decoration: none;
}

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

.footer-instagram {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  text-decoration: none;
  margin-top: 0;
}

.footer-instagram img {
  width: 20px;
  height: 20px;
  object-fit: cover;
}

.footer-instagram span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--color-bosco);
  background-color: rgba(255, 248, 237, .94);
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-bosco);
  color: var(--color-crema);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .15);
  font-size: 0.9375rem;
  z-index: 1000;
  opacity: 0;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.success {
  background: var(--color-foglia-btn);
  color: var(--color-bosco-dark);
}

.toast.error {
  background: var(--color-terracotta-dark);
  color: var(--color-crema);
}

/* ===== Form States ===== */
.signup-form.submitting .btn {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ===== Responsive ===== */
@media (max-width: 760px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-crema);
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-sm);
    border-bottom: 1px solid rgba(35, 90, 63, .14);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav {
    padding: var(--space-xs) var(--gutter-sm);
  }

  .hero {
    padding: var(--space-xl) var(--gutter-sm) 0;
  }

  .hero-image-wrap {
    max-width: 430px;
    margin-top: var(--space-lg);
  }

  .hero-image {
    aspect-ratio: 4 / 5;
    border-radius: 32px;
  }

  .section {
    padding: var(--section-space-sm) var(--gutter-sm);
  }

  .footer {
    padding: var(--section-space-sm) var(--gutter-sm);
  }

  .step-card {
    padding: var(--space-xl) var(--card-pad);
    min-height: auto;
  }

  .signup-card {
    padding: var(--space-xl) var(--card-pad);
  }

  .form-row {
    flex-direction: column;
  }

  .form-row input[type="text"] {
    width: 100%;
  }

  .liste-grid {
    grid-template-columns: 1fr;
  }

  .liste-content .section-title {
    text-align: center;
  }

  .progetto {
    border-radius: 40px / 60px;
    margin-left: var(--gutter-sm);
    margin-right: var(--gutter-sm);
  }

  .pills-grid {
    gap: var(--space-xs);
  }

  .pill {
    font-size: 0.9375rem;
    padding: var(--space-xs) var(--space-sm);
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
