/* McGuffin Media Agency — foglio di stile unico del sito */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/inter.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 500 600; font-display: swap; src: url("/fonts/playfair-display.woff2") format("woff2"); }

:root {
  --bg: #1b1a17;
  --surface: #292825;
  --line: rgba(255, 255, 255, 0.12);
  --text: #fcfcfb;
  --text-soft: #d2d2ca;
  --text-muted: #8d8d86;
  --accent: #fac800;
  --accent-hover: #ebbb00;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(64px, 9vw, 128px);
  --radius: 6px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
h3 { font-size: 1.375rem; font-weight: 600; line-height: 1.25; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--line { border-top: 1px solid var(--line); }

.eyebrow {
  display: block;
  margin-bottom: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.lead { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--text-soft); max-width: 62ch; }
.intro { max-width: 760px; }
.intro h2 + .lead { margin-top: 24px; }
.intro--center { margin-inline: auto; text-align: center; }
.intro--center .lead { margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--accent); color: #000; border-radius: var(--radius);
}
.skip:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Pulsanti */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.intro--center .actions, .hero .actions { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px;
  border: 1px solid var(--accent); border-radius: var(--radius);
  background: var(--accent); color: #000;
  font: 600 0.9375rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--ghost { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, 0.45); }
.btn--ghost:hover { background: var(--text); border-color: var(--text); color: #000; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(27, 26, 23, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.brand { font-weight: 700; font-size: 1.0625rem; line-height: 1.15; text-decoration: none; letter-spacing: -0.01em; }
.brand span { display: block; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 26px; margin: 0; padding: 0; list-style: none; }
.nav a { font-size: 0.875rem; font-weight: 600; text-decoration: none; padding-block: 8px; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.social { display: flex; gap: 10px; }
.social a {
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid var(--line); border-radius: 50%;
}
.social a:hover { border-color: var(--accent); color: var(--accent); }
.social svg { width: 17px; height: 17px; fill: currentColor; }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; padding: 0;
  background: none; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; margin-inline: auto; background: currentColor; content: ""; position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* Hero */
.hero { position: relative; display: grid; place-items: center; min-height: min(88vh, 860px); padding-block: 96px; text-align: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27, 26, 23, 0.55), rgba(27, 26, 23, 0.72) 60%, var(--bg)); }
.hero .wrap { position: relative; z-index: 1; max-width: 980px; }
.hero__kicker { margin-bottom: 28px; font-size: 0.9375rem; font-weight: 600; color: var(--text-soft); }

/* Servizi */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; margin-top: 64px; }
.card { text-decoration: none; }
.card__img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: var(--radius); background: var(--surface); }
.card h3 { margin-top: 22px; }
.card p { margin-top: 8px; color: var(--text-soft); font-size: 0.9688rem; }
.after-grid { justify-content: center; margin-top: 56px; }

/* Blocchi testo + immagine */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.prose { max-width: 880px; }
.prose .lead { margin-top: 28px; max-width: 70ch; }

/* Fascia con immagine di sfondo */
.band { position: relative; display: grid; align-items: end; min-height: 560px; overflow: hidden; }
.band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27, 26, 23, 0.9), rgba(27, 26, 23, 0.35)); }
.band .wrap { position: relative; z-index: 1; padding-block: 72px; }

/* Numeri */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin: 0; padding: 0; }
.stat { padding-top: 24px; border-top: 1px solid var(--line); }
.stat dt { font-family: var(--serif); font-size: clamp(2.5rem, 4.6vw, 3.75rem); font-weight: 600; line-height: 1; color: var(--accent); font-variant-numeric: lining-nums; }
.stat dd { margin: 16px 0 0; color: var(--text-soft); font-size: 0.9375rem; }
.stat dd strong { display: block; margin-bottom: 4px; color: var(--text); font-size: 1.0625rem; }

/* Loghi */
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 56px 0 0; padding: 0; list-style: none; }
.logos li { display: grid; place-items: center; height: 132px; padding: 24px; background: var(--surface); border-radius: var(--radius); }
.logos img { width: 100%; height: 84px; object-fit: contain; }

/* Team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 64px; }
.member__img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); background: var(--surface); }
.member__role { display: block; margin-top: 20px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.member h3 { margin-top: 6px; }
.member h3 a { text-decoration: none; }
.member h3 a:hover { text-decoration: underline; }
.member p { margin-top: 8px; color: var(--text-soft); font-size: 0.9375rem; }

/* Contatti */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.contact__list { display: grid; gap: 14px; margin: 40px 0 0; padding: 0; list-style: none; font-size: 1.0625rem; }
.contact__list a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact__list a:hover { border-bottom-color: var(--accent); }
.form { display: grid; gap: 20px; padding: clamp(24px, 3.4vw, 40px); background: var(--surface); border-radius: var(--radius); }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.875rem; font-weight: 600; }
.field input, .field textarea {
  width: 100%; padding: 13px 14px;
  background: transparent; color: var(--text);
  border: 1px solid rgba(243, 243, 235, 0.55); border-radius: var(--radius);
  font: inherit;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.form__note { font-size: 0.8125rem; color: var(--text-muted); }
.form__note a { color: var(--text-soft); }
.form__status { font-size: 0.9375rem; color: var(--accent); }
.form__status:empty { display: none; }

/* FAQ */
.faq { max-width: 880px; margin: 56px auto 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-size: 1.125rem; font-weight: 600; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--accent); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 26px 0; color: var(--text-soft); }
.cta-box { max-width: 880px; margin: 64px auto 0; padding: clamp(28px, 4vw, 48px); background: var(--surface); border-radius: var(--radius); text-align: center; }
.cta-box p { margin-top: 10px; color: var(--text-soft); }
.cta-box .actions { justify-content: center; margin-top: 26px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 40px; font-size: 0.9063rem; color: var(--text-soft); }
.site-footer .wrap { display: grid; gap: 36px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; align-items: center; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; padding: 0; list-style: none; }
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { color: var(--text); text-decoration: underline; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 48px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 0.8438rem; color: var(--text-muted); }
.footer__bottom .footer__nav a { color: var(--text-muted); }

/* Responsive */
@media (max-width: 1080px) {
  .team { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    margin: 0; padding: 12px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { display: block; padding: 14px 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .site-header .social { display: none; }
}
@media (max-width: 860px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .split, .contact { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .band { min-height: 440px; }
}
@media (max-width: 540px) {
  .cards, .team { grid-template-columns: 1fr; }
  .card__img { aspect-ratio: 4 / 3; }
  .actions .btn { width: 100%; }
  .faq details p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Su schermi stretti il soggetto dell'hero resta visibile */
@media (max-width: 860px) {
  .hero__bg { object-position: 68% center; }
}

/* Logo */
.brand img { height: 52px; width: auto; }
.brand--footer img { height: 72px; }

/* Metodo */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin: 64px 0 0; padding: 0; list-style: none; }
.step { padding-top: 24px; border-top: 1px solid var(--line); }
.step__n { display: block; margin-bottom: 18px; font-family: var(--serif); font-size: 2.25rem; font-weight: 600; line-height: 1; color: var(--accent); font-variant-numeric: lining-nums; }
.step p { margin-top: 10px; color: var(--text-soft); font-size: 0.9688rem; }
@media (max-width: 1080px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

.more { max-width: 880px; margin: 28px auto 0; text-align: center; }
.more a { color: var(--text-soft); text-underline-offset: 4px; }
.more a:hover { color: var(--accent); }

/* Pagine interne */
.hero--page { min-height: min(64vh, 620px); }
.hero--plain { min-height: 0; padding-block: clamp(72px, 10vw, 128px) clamp(40px, 6vw, 72px); text-align: left; place-items: start; }
.hero--plain::after { display: none; }
.hero--plain .wrap { max-width: var(--wrap); }
.hero--plain h1 { max-width: 18ch; }
.hero--plain .actions { justify-content: flex-start; }
.hero--legal h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.hero .lead { margin: 28px auto 0; }
.hero--plain .lead { margin-inline: 0; }
.hero--page h1 { font-size: clamp(2.25rem, 5.4vw, 4.25rem); }

.split--reverse > .split__img { order: 2; }
.split .intro .lead, .contact .intro .lead, .prose .lead + .lead, .intro .lead + .lead { margin-top: 24px; }
.split + .features, .split + .cards { margin-top: 64px; }
.intro + .features { margin-top: 56px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
.feature { padding-top: 24px; border-top: 1px solid var(--line); }
.feature p { margin-top: 10px; color: var(--text-soft); font-size: 0.9688rem; }
.card h3 a, .feature h3 a { text-decoration: none; border-bottom: 1px solid var(--accent); }
.card h3 a:hover, .feature h3 a:hover { color: var(--accent); }
.card p + p { margin-top: 12px; }
.cards--wide { grid-template-columns: repeat(2, 1fr); }
.team--page .member p { font-size: 0.9375rem; }

.cta-band { background: var(--surface); border-top: 0; }
.faq--page { margin-top: 0; }
.faq details p a, .legal a, .lead a { color: var(--text); text-underline-offset: 3px; }
.optional { font-weight: 400; color: var(--text-muted); }

.legal { max-width: 760px; color: var(--text-soft); }
.legal h2 { margin: 48px 0 14px; font-family: var(--sans); font-size: 1.25rem; font-weight: 600; line-height: 1.3; letter-spacing: 0; color: var(--text); }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal ul, .legal address { margin: 0 0 14px; }
.legal ul { padding-left: 1.25em; }
.legal li { margin-bottom: 6px; }
.legal address { font-style: normal; line-height: 1.7; }

@media (max-width: 860px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .cards--wide { grid-template-columns: 1fr; }
  .split--reverse > .split__img { order: 0; }
}
@media (max-width: 540px) {
  .features { grid-template-columns: 1fr; }
}
.features--two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 540px) { .features--two { grid-template-columns: 1fr; } }
.split__img--portrait { aspect-ratio: 4 / 5; object-position: 50% 20%; max-width: 460px; }

/* Banner cookie */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  max-width: 560px; margin-inline: auto; padding: 22px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); font-size: 0.9063rem; color: var(--text-soft);
}
.cookie[hidden] { display: none; }
.cookie strong { display: block; margin-bottom: 6px; color: var(--text); font-size: 1rem; }
.cookie a { color: var(--text); }
.cookie__actions { display: flex; gap: 10px; margin-top: 16px; }
.cookie__actions .btn { flex: 1; min-height: 44px; padding: 10px 16px; }
.link-btn { padding: 0; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
.link-btn:hover { color: var(--text); text-decoration: underline; }

.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn:disabled { opacity: 0.6; cursor: progress; }
