/* ==========================================================================
   Studio Pellitta – landing page
   Palette ripresa dal design originale: fondo scuro + giallo burro.
   ========================================================================== */

:root {
  --ink: #141414;          /* fondo pagina */
  --ink-raised: #1c1c1c;   /* fasce alternate */
  --ink-deep: #000000;     /* modulo di contatto */
  --line: #3a3a3a;         /* filetti e bordi */
  --text: #f4f1ea;         /* testo principale */
  --text-muted: #bdb8ad;   /* testo secondario */
  --accent: #ffe08f;       /* giallo burro */
  --accent-strong: #ffd15c;

  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --radius: 8px;
  --container: 1120px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-space: clamp(4rem, 9vw, 7.5rem);
}

/* Reset essenziale ------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3, p, dl, dd, ul, figure, address { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Contenitore ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Titoli di sezione ------------------------------------------------------ */
.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 22ch;
  text-wrap: balance;
}

.section {
  padding-block: var(--section-space);
}

.section--raised {
  background: var(--ink-raised);
}

/* Bottone ---------------------------------------------------------------- */
.button {
  display: inline-block;
  padding: 1rem 1.75rem;
  background: var(--accent);
  color: var(--ink);
  font: 600 1.0625rem/1.2 var(--font-body);
  text-align: center;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.button:hover { background: var(--accent-strong); }

.button--block {
  display: block;
  width: 100%;
}

/* ==========================================================================
   Apertura
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: stretch;
  max-width: 1400px;
  margin-inline: auto;
}

.hero__media {
  position: relative;
  min-height: 420px;
}

.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% center;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
  padding: clamp(2.5rem, 6vw, 5.5rem) var(--gutter);
  max-width: 44rem;
}

/* L'unica animazione della pagina: il blocco di testo entra al caricamento */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy {
    animation: hero-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  width: 100%;
}

.brand__name {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1;
  color: var(--accent);
}

.brand__role {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}

.pillars li {
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
}

.lead {
  max-width: 34rem;
  font-size: 1.25rem;
  line-height: 1.6;
}

.hero__note {
  max-width: 34rem;
  color: var(--text-muted);
}

.hero__copy .button { margin-top: 0.5rem; }

/* ==========================================================================
   Servizi
   ========================================================================== */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.service {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 3px solid var(--accent);
}

.service__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.15;
  color: var(--accent);
}

.service p { color: var(--text); }
.service p + p { color: var(--text-muted); }

/* ==========================================================================
   Vantaggi
   ========================================================================== */
.benefits {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.benefits__title {
  position: sticky;
  top: 2rem;
}

.benefit {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.4rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--line);
}

.benefit:first-child { padding-top: 0; border-top: 0; }
.benefit:last-child  { padding-bottom: 0; }

.benefit dt {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.15;
  color: var(--accent);
}

.benefit dd {
  max-width: 38rem;
}

/* ==========================================================================
   Chi sono
   ========================================================================== */
.about {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}

.about__photo img {
  width: 100%;
  border-radius: var(--radius);
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 38rem;
}

.about__text .section__title { margin-bottom: 0.5rem; }

/* ==========================================================================
   Ufficio
   ========================================================================== */
.office__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

.office__details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 1.375rem;
  font-weight: 600;
}

.office__details a {
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.office__details a:hover { color: var(--accent); }

/* ==========================================================================
   Modulo di contatto
   ========================================================================== */
.contact {
  background: var(--ink-deep);
  padding-block: var(--section-space);
  padding-inline: var(--gutter);
}

.contact__inner {
  max-width: 44rem;
  margin-inline: auto;
}

.contact__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.05;
  margin-bottom: 2rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field label {
  font-weight: 500;
  font-size: 1.0625rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: #0b0b0b;
  color: var(--text);
  font: inherit;
  border: 1px solid #5a5a5a;
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input:hover,
.field textarea:hover { border-color: #8a8a8a; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 224, 143, 0.28);
}

.form .button { margin-top: 0.5rem; }

/* ==========================================================================
   Piè di pagina
   ========================================================================== */
.footer {
  padding: 1.5rem var(--gutter);
  background: var(--ink-deep);
  border-top: 1px solid #222;
  color: var(--text-muted);
  font-size: 0.9375rem;
  text-align: center;
}

/* ==========================================================================
   Tablet e mobile
   ========================================================================== */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__media {
    min-height: 0;
    aspect-ratio: 4 / 3;
    max-height: 420px;
  }

  .hero__copy {
    max-width: none;
  }

  .services {
    grid-template-columns: minmax(0, 1fr);
  }

  .service {
    max-width: 40rem;
  }

  .benefits {
    grid-template-columns: minmax(0, 1fr);
  }

  .benefits__title {
    position: static;
  }

  .about {
    grid-template-columns: minmax(0, 1fr);
  }

  .about__photo {
    max-width: 22rem;
  }
}

@media (max-width: 520px) {
  body { font-size: 1.0625rem; }

  .lead { font-size: 1.125rem; }

  .hero__copy .button {
    width: 100%;
  }

  .office__details { font-size: 1.1875rem; }
}
