/* ──────────────────────────────────────────────
   SAF — MARKETING AND MEDIA SOLUTIONS
   Sistema visivo ispirato allo stile editoriale del sito Taverna Est
────────────────────────────────────────────── */
@font-face {
  font-family: "Proxima Nova";
  src: url("assets/fonts/ProximaNova-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Proxima Nova";
  src: url("assets/fonts/ProximaNova-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Proxima Nova";
  src: url("assets/fonts/ProximaNova-Semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Proxima Nova";
  src: url("assets/fonts/ProximaNova-Extrabold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #f7f7f5;
  --paper: #ffffff;
  --ink: #1f3740;
  --muted: #647177;
  --line: #e2e4e1;
  --accent: #db2e2e;
  --accent-soft: #f8e6e6;
  --dark: #13272f;
  --dark-2: #0c1d23;
  --grey-soft: #f0f1ee;

  --container: 1180px;
  --space-x: clamp(1.25rem, 4vw, 4rem);
  --space-y: clamp(4rem, 8vw, 7rem);

--font-title: "Proxima Nova", Arial, Helvetica, sans-serif;
--font-text: "Proxima Nova", Arial, Helvetica, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  overflow-x: hidden;
}

img,
video {
  display: block;
  width: 100%;
}

a {
  color: inherit;
}

/* HEADER */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;

  min-height: 74px;
  padding: 0.9rem var(--space-x);

  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(14px);
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.site-logo-img {
  width: 138px;
  height: auto;
  display: block;
}

.footer-logo .site-logo-img {
  width: 150px;
  filter: brightness(0) invert(1);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.62;
  transition: opacity 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav a.is-active {
  opacity: 1;
  color: var(--accent);
}

.site-cta {
  min-height: 38px;
  padding: 0.55rem 1rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  text-decoration: none;

  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  transition: background 0.2s, color 0.2s;
}

.site-cta:hover {
  background: var(--accent);
  color: #fff;
}

.site-menu-toggle,
.site-mobile-nav {
  display: none;
}

.site-menu-toggle {
  width: 46px;
  height: 46px;
  padding: 0;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.site-menu-bars {
  width: 22px;
  height: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.site-menu-bars span {
  width: 100%;
  height: 2px;
  display: block;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.2s, opacity 0.2s;
}

.menu-open .site-menu-toggle {
  background: var(--accent);
  border-color: var(--accent);
}

.menu-open .site-menu-bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .site-menu-bars span:nth-child(2) {
  opacity: 0;
}

.menu-open .site-menu-bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-mobile-nav {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  right: 0;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  padding: 0.85rem var(--space-x) 1rem;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.08);
}

.site-mobile-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-mobile-nav a::after {
  content: ">";
  color: var(--accent);
  font-size: 1rem;
  line-height: 1;
}

.site-mobile-nav a:last-child {
  border-bottom: 0;
  color: var(--accent);
}

/* LAYOUT */

.page {
  padding-top: 74px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-x);
}

.section {
  padding: var(--space-y) 0;
  border-bottom: 1px solid var(--line);
}

.section.white {
  background: var(--paper);
}

.section.dark {
  background: var(--dark);
  color: #fff;
}

.section-header {
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.split-header {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
}

.eyebrow {
  display: block;
  margin-bottom: 0.75rem;

  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.title {
  color: var(--ink);
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.title.small {
  font-size: clamp(2rem, 5vw, 4.2rem);
}

.title span {
  color: var(--accent);
}

.text {
  max-width: 680px;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.85;
}

.header-text {
  margin-top: 0;
}

.section.dark .eyebrow {
  color: #fff;
}

.section.dark .title {
  color: #fff;
}

.section.dark .title span {
  color: var(--accent);
}

.section.dark .text {
  color: rgba(255, 255, 255, 0.78);
}

/* BUTTONS */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.btn {
  min-height: 44px;
  padding: 0.75rem 1.25rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  text-decoration: none;

  font-family: var(--font-text);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn.primary:hover {
  background: var(--dark);
  border-color: var(--dark);
  transform: translateY(-2px);
}

.btn.secondary:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}

/* GRIDS / CARDS */

.grid {
  display: grid;
  gap: 1rem;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  min-height: 260px;
  padding: 1.25rem;

  display: flex;
  flex-direction: column;

  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;

  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(219, 46, 46, 0.35);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.07);
}

.card-label {
  margin-bottom: 0.85rem;
  color: var(--accent);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card h3 {
  margin-bottom: 0.85rem;
  font-family: var(--font-title);
  font-size: clamp(1.08rem, 1.7vw, 1.45rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.card p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.68;
}

.card-meta {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);

  display: flex;
  justify-content: space-between;
  gap: 1rem;

  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* HERO */

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  padding: clamp(5rem, 9vw, 8rem) 0;

  display: flex;
  align-items: flex-end;

  overflow: hidden;
  border-bottom: 1px solid var(--line);

  background:
    linear-gradient(90deg, rgba(247, 247, 245, 0.98) 0%, rgba(247, 247, 245, 0.88) 45%, rgba(247, 247, 245, 0.64) 100%),
    radial-gradient(circle at 82% 18%, rgba(219, 46, 46, 0.09), transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-text {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
}

.saf-hero-bg {
  position: absolute;
  inset: 96px var(--space-x) 4rem 45%;
  z-index: 0;

  display: grid;
  grid-template-columns: 1fr 0.76fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
}

.saf-hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 1.25rem;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  background: var(--paper);
  border: 1px solid var(--line);
}

.saf-hero-panel::before {
  content: "";
  position: absolute;
  inset: auto auto -30% -30%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(31, 55, 64, 0.08);
}

.saf-hero-panel.is-large {
  grid-row: span 2;
  background: var(--dark);
  color: #fff;
}

.saf-hero-panel.is-red {
  background: var(--accent);
  color: #fff;
}

.saf-hero-panel span {
  position: relative;
  z-index: 1;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.saf-hero-panel strong {
  position: relative;
  z-index: 1;
  font-family: var(--font-title);
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.8;
  letter-spacing: -0.08em;
  opacity: 0.16;
}

.saf-hero-panel.is-large strong,
.saf-hero-panel.is-red strong {
  opacity: 0.22;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.5rem;
}

.hero-tags span {
  padding: 0.48rem 0.7rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ABOUT */

.about-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.about-panel {
  position: sticky;
  top: 100px;
  padding: 1.4rem;
  background: var(--bg);
  border: 1px solid var(--line);
}

.about-panel img {
  max-width: 240px;
  margin-bottom: 1.4rem;
}

.about-panel-line {
  width: 100%;
  height: 3px;
  margin-bottom: 1.2rem;
  background: var(--accent);
}

.about-panel p,
.about-content p {
  color: var(--muted);
  font-size: clamp(0.94rem, 1.4vw, 1.08rem);
  line-height: 1.9;
}

.about-content p + p {
  margin-top: 1.2rem;
}

.about-numbers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.about-numbers div {
  padding-top: 1rem;
  border-top: 3px solid var(--accent);
}

.about-numbers strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 1.4rem;
  line-height: 1;
  letter-spacing: -0.06em;
}

.about-numbers span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.5;
}

/* SERVICES */

.services-grid {
  align-items: stretch;
}

.service-card ul {
  margin: 1.1rem 0 1rem;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.75;
}

.service-card li::marker {
  color: var(--accent);
}

/* EDITORIAL */

.editorial-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 247, 245, 1)),
    radial-gradient(circle at 18% 24%, rgba(219, 46, 46, 0.07), transparent 34%);
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.editorial-media {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  min-height: 520px;
}

.editorial-card {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--paper);
  border: 1px solid var(--line);
}

.editorial-card.is-dark {
  grid-row: span 2;
  background: var(--dark);
  color: #fff;
}

.editorial-card span {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.editorial-card strong {
  font-family: var(--font-title);
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.8;
  letter-spacing: -0.08em;
  opacity: 0.2;
}

.editorial-card:not(.is-dark) strong {
  color: var(--accent);
}

/* WHY */

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.why-item {
  min-height: 260px;
  padding: 1.2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.why-item:last-child {
  border-right: 0;
}

.why-item span {
  display: block;
  margin-bottom: 3rem;
  color: var(--accent);
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.why-item h3 {
  margin-bottom: 0.75rem;
  font-family: var(--font-title);
  font-size: 1.15rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.why-item p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  line-height: 1.7;
}

/* CONTACT */

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

.contact-card {
  min-height: 240px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(219, 46, 46, 0.35);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.07);
}

.contact-card h3 {
  margin-bottom: 1rem;
  font-family: var(--font-title);
  font-size: clamp(1.1rem, 2vw, 1.65rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
  word-break: break-word;
}

.contact-card p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.contact-card p + p {
  margin-top: 0.8rem;
}

/* FOOTER */

.site-footer {
  background: var(--dark-2);
  color: #fff;
  padding: 4rem var(--space-x) 2rem;
}

.footer-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto 3rem;

  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
}

.footer-brand p {
  max-width: 390px;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  line-height: 1.8;
}

.footer-col h4 {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.46);
  font-family: var(--font-title);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  margin-bottom: 0.65rem;
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  font-size: 0.74rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 1.5rem;

  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;

  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.65rem;
}

/* REVEAL */

.reveal-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .site-nav,
  .site-cta {
    display: none;
  }

  .site-menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .menu-open .site-mobile-nav {
    display: block;
  }

  .split-header,
  .about-grid,
  .editorial-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-panel {
    position: static;
  }

  .grid.three,
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .saf-hero-bg {
    inset: auto var(--space-x) 3rem 46%;
    height: 46vh;
    opacity: 0.32;
  }

  .editorial-media {
    min-height: 360px;
  }
}

@media (max-width: 680px) {
  .page {
    padding-top: 70px;
  }

  .site-header {
    min-height: 70px;
  }

  .site-logo-img {
    width: 112px;
  }

  .hero {
    min-height: calc(100vh - 70px);
    align-items: center;
  }

  .saf-hero-bg {
    display: none;
  }

  .grid.three,
  .why-grid,
  .about-numbers,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .editorial-media {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .editorial-card,
  .editorial-card.is-dark {
    min-height: 220px;
    grid-row: auto;
  }

  .why-item {
    border-right: 0;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
.hero-logo-mark {
  width: min(360px, 72vw);
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.hero-logo-mark img {
  width: 100%;
  height: auto;
  display: block;
}

.saf-hero .container {
  position: relative;
  z-index: 2;
}

.saf-hero .hero-content {
  max-width: 900px;
}

.hero-text strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--ink);
  font-weight: 800;
}

.service-card p strong,
.about-content p strong,
.header-text strong {
  color: var(--ink);
  font-weight: 800;
}

.section.dark .header-text strong {
  color: #fff;
}

.service-card ul {
  margin-top: 0.85rem;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.75;
}

.service-card li {
  margin-bottom: 0.28rem;
}

.service-card li::marker {
  color: var(--accent);
}

@media (max-width: 760px) {
  .hero-logo-mark {
    width: min(260px, 78vw);
    margin-bottom: 2rem;
  }
}