/* =========================================
   MARIAGRAZIA TURANI — Landing Page
   style.css — versione 1.0
   ========================================= */

/* ---- RESET & BASE ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Palette */
  --ink:       #1a1612;
  --paper:     #f5f0e8;
  --warm:      #e8dfd0;
  --accent:    #c4502a;
  --accent-2:  #8a3d20;
  --muted:     #7a7068;
  --light:     #faf7f2;

  /* Typography */
  --serif: 'Fraunces', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --gap:    clamp(1.5rem, 4vw, 3rem);
  --pad-x:  clamp(1.25rem, 6vw, 6rem);
  --section-pad: clamp(4rem, 10vw, 8rem);

  /* Radius */
  --r-sm: 4px;
  --r-md: 12px;
  --r-lg: 24px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--pad-x);
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(26, 22, 18, 0.08);
}

.nav__logo {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: 0.05em;
}

.nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--accent);
  text-decoration: none;
}

.nav__cta {
  background: var(--ink) !important;
  color: var(--paper) !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--r-sm);
  font-weight: 500 !important;
  transition: background 0.2s !important;
}

.nav__cta:hover {
  background: var(--accent) !important;
}

/* ---- HERO ---- */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 7rem var(--pad-x) 4rem;
  gap: 3rem;
  position: relative;
  overflow: hidden;
}

.hero__bg-text {
  position: absolute;
  bottom: -0.15em;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: clamp(8rem, 20vw, 18rem);
  font-weight: 600;
  color: transparent;
  -webkit-text-stroke: 1px rgba(26, 22, 18, 0.06);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  line-height: 1;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.hero__name {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.hero__name em {
  font-style: italic;
  color: var(--accent);
}

.hero__title {
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 1.5rem;
  border-left: 2px solid var(--accent);
  padding-left: 0.75rem;
}

.hero__intro {
  max-width: 50ch;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero visual — foto */
.hero__visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero__photo-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.hero__photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  object-fit: cover;
  object-position: top center;
  max-height: 75vh;
  filter: grayscale(8%);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.hero__tag {
  position: absolute;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  animation: float 5s ease-in-out infinite;
  white-space: nowrap;
}

.hero__tag:nth-child(2)  { top: 12%;  right: -1rem;  animation-delay: 0s; }
.hero__tag--2            { top: 35%;  left: -1.5rem; animation-delay: 1.2s; }
.hero__tag--3            { bottom: 28%; right: -1rem; animation-delay: 0.7s; }
.hero__tag--4            { bottom: 12%; left: -0.5rem; animation-delay: 1.8s; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  border-radius: var(--r-sm);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none !important;
}

.btn--primary {
  background: var(--accent);
  color: var(--paper);
}

.btn--primary:hover {
  background: var(--accent-2);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(26, 22, 18, 0.3);
}

.btn--ghost:hover {
  border-color: var(--ink);
}

.btn--submit {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

/* ---- STRIP ---- */
.strip {
  background: var(--ink);
  color: var(--paper);
  padding: 0.9rem var(--pad-x);
  display: flex;
  gap: 2.5rem;
  overflow-x: auto;
  white-space: nowrap;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  font-weight: 300;
  scrollbar-width: none;
}

.strip::-webkit-scrollbar { display: none; }

.strip span { opacity: 0.85; }

/* ---- SECTIONS ---- */
.section {
  padding: var(--section-pad) var(--pad-x);
}

.section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section__header {
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.section__label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--ink);
}

.section__title em {
  font-style: italic;
  color: var(--accent);
}

/* ---- CARDS ---- */
.competenze { background: var(--light); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-bottom: 4rem;
}

.card {
  background: var(--paper);
  border: 1px solid rgba(26, 22, 18, 0.1);
  border-radius: var(--r-md);
  padding: 2rem 1.75rem;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26, 22, 18, 0.1);
}

.card__num {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--accent);
  opacity: 0.25;
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  line-height: 1;
}

.card__title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.875rem;
  padding-right: 3rem;
}

.card__text {
  font-size: 0.925rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.card__list {
  list-style: none;
  font-size: 0.875rem;
}

.card__list li {
  padding: 0.3rem 0;
  padding-left: 1rem;
  position: relative;
  color: var(--ink);
}

.card__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}

/* ---- SOFTWARE GRID ---- */
.software__title {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.software__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.software__item {
  background: var(--warm);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* ---- NUMERI ---- */
.numeri {
  background: var(--ink);
  color: var(--paper);
}

.numeri .section__title { color: var(--paper); }
.numeri .section__label { color: var(--accent); }
.numeri .section__header--light .section__title { color: var(--paper); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin-bottom: 3rem;
}

.stat {
  text-align: center;
}

.stat__num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat__label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.6);
}

.quote {
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
  max-width: 55ch;
  margin: 0 auto;
}

.quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(245, 240, 232, 0.85);
  line-height: 1.6;
}

/* ---- PER CHI ---- */
.targets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

.target {
  padding: 2rem;
  border: 1px solid rgba(26, 22, 18, 0.1);
  border-radius: var(--r-md);
  background: var(--light);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.target:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(196, 80, 42, 0.08);
}

.target__icon {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

.target h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.625rem;
}

.target p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ---- CONTATTI ---- */
.contatti { background: var(--warm); }

.contatti__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.contatti__text .section__title { margin-bottom: 1.25rem; }

.contatti__text > p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contatti__info {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.info-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.info-label {
  font-weight: 500;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
}

/* ---- FORM ---- */
.form {
  background: var(--paper);
  border: 1px solid rgba(26, 22, 18, 0.1);
  border-radius: var(--r-lg);
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form__group--full {
  grid-column: 1 / -1;
}

.form__label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.form__label span[aria-label] {
  color: var(--accent);
  margin-left: 2px;
}

.form__input,
.form__textarea {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--light);
  border: 1.5px solid rgba(26, 22, 18, 0.15);
  border-radius: var(--r-sm);
  padding: 0.65rem 0.875rem;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 80, 42, 0.12);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.form__input--error {
  border-color: #c0392b !important;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12) !important;
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__gdpr {
  padding-top: 0.25rem;
}

.form__check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.form__check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 0.15rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.form__note {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  margin-top: -0.25rem;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 3rem var(--pad-x);
  text-align: center;
}

.footer__inner {
  max-width: 700px;
  margin: 0 auto;
}

.footer__name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.footer__copy {
  font-size: 0.875rem;
  color: rgba(245, 240, 232, 0.6);
  margin-bottom: 1.5rem;
}

.footer__copy a {
  color: rgba(245, 240, 232, 0.8);
}

.footer__gdpr {
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.4);
  line-height: 1.6;
  max-width: 60ch;
  margin: 0 auto;
}

/* ---- REVEAL ANIMATION ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.card:nth-child(2).reveal { transition-delay: 0.1s; }
.card:nth-child(3).reveal { transition-delay: 0.2s; }
.stat:nth-child(2).reveal  { transition-delay: 0.08s; }
.stat:nth-child(3).reveal  { transition-delay: 0.16s; }
.stat:nth-child(4).reveal  { transition-delay: 0.24s; }
.target:nth-child(2).reveal { transition-delay: 0.1s; }
.target:nth-child(3).reveal { transition-delay: 0.05s; }
.target:nth-child(4).reveal { transition-delay: 0.15s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding-bottom: 3rem;
  }

  .hero__visual { justify-content: center; }
  .hero__photo-wrap { max-width: 280px; }
  .hero__photo { max-height: 50vh; border-radius: var(--r-md) var(--r-md) 0 0; }

  .hero__intro { margin: 0 auto 2rem; }

  .hero__actions { justify-content: center; }

  .hero__title { border-left: none; padding-left: 0; text-align: center; }

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

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

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

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

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

  .form__group--full {
    grid-column: 1;
  }
}

@media (max-width: 640px) {
  .nav__links {
    gap: 1rem;
  }

  .nav__links li:not(:last-child) {
    display: none;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__bg-text { display: none; }

  .form {
    padding: 1.75rem 1.25rem;
  }

  .info-item {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
