/*
Theme Name: STANDUP Agency
Theme URI: https://standupagency.it
Author: STANDUP Agency
Description: Tema custom per il sito dell'agenzia di comunicazione STANDUP Agency. Genera i contenuti demo da STANDUP → Contenuti demo dopo l'attivazione (richiede i plugin gratuiti Advanced Custom Fields e Contact Form 7).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: standup-agency
*/

/* ==========================================================================
   STANDUP Agency — design tokens
   Palette:
     --bordeaux   #5E1515  brand primary, CTAs, hero fields
     --bordeaux-d #3B0D0D  deep shadow / stroke
     --ink        #1C1712  text on paper
     --paper      #F3ECDD  warm background
     --mustard    #E8A93B  accent — energy
     --teal       #2A6963  accent — contrast
     --coral      #E2622B  accent — tags / links
   Type:
     display  "Gill Sans Condensed" — bold condensed, poster-loud headlines
     body     "Gill Sans"           — body copy, principal typeface
     mono     "Times CG"            — eyebrows, labels, meta data, secondary accent
   Signature:
     "il cartello" — a paper placard card with a rotated stake-line behind it,
     used for portfolio pieces, service cards and quotes. A literal nod to
     the name STANDUP: things you print, hold up, and plant in the ground.
   ========================================================================== */

@font-face { font-family: "Gill Sans"; src: url("assets/fonts/Gill-Sans-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Gill Sans"; src: url("assets/fonts/Gill-Sans-Light-Italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Gill Sans"; src: url("assets/fonts/Gill-Sans.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Gill Sans"; src: url("assets/fonts/Gill-Sans-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Gill Sans"; src: url("assets/fonts/Gill-Sans-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Gill Sans"; src: url("assets/fonts/Gill-Sans-Medium-Italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Gill Sans"; src: url("assets/fonts/Gill-Sans-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Gill Sans"; src: url("assets/fonts/Gill-Sans-Bold-Italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Gill Sans"; src: url("assets/fonts/Gill-Sans-Heavy.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Gill Sans"; src: url("assets/fonts/Gill-Sans-Heavy-Italic.woff2") format("woff2"); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Gill Sans Condensed"; src: url("assets/fonts/GillSans-Condensed.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Gill Sans Condensed"; src: url("assets/fonts/GillSans-Condensed-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Times CG"; src: url("assets/fonts/Times-CG.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Times CG"; src: url("assets/fonts/Times-CG-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Times CG"; src: url("assets/fonts/Times-CG-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Times CG"; src: url("assets/fonts/Times-CG-Bold-Italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }

:root {
  --bordeaux: #5E1515;
  --bordeaux-d: #3B0D0D;
  --ink: #1C1712;
  --paper: #F3ECDD;
  --paper-2: #EAE0CB;
  --mustard: #E8A93B;
  --teal: #2A6963;
  --coral: #E2622B;

  --display: "Gill Sans Condensed", "Gill Sans", sans-serif;
  --body: "Gill Sans", sans-serif;
  --mono: "Times CG", serif;

  --max: 1180px;
  --pad: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin: 0;
  text-transform: uppercase;
}

p { margin: 0 0 1em; }
a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}

/* ---------- header / nav ---------- */
.site-header {
  background: var(--bordeaux);
  color: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--bordeaux-d);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand img { height: 28px; display: block; }
.brand { display: flex; align-items: center; }

nav.main-nav { display: flex; gap: 6px; }
nav.main-nav a {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  padding: 10px 14px;
  border-radius: 3px;
  transition: background 0.15s ease, color 0.15s ease;
}
nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  background: var(--paper);
  color: var(--bordeaux);
}
nav.main-nav a:focus-visible,
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--paper);
  color: var(--paper);
  width: 44px;
  height: 40px;
  border-radius: 4px;
  font-family: var(--mono);
  cursor: pointer;
}

@media (max-width: 760px) {
  nav.main-nav {
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--bordeaux);
    flex-direction: column;
    padding: 8px var(--pad) 20px;
    display: none;
    border-bottom: 3px solid var(--bordeaux-d);
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 12px 0; }
  .nav-toggle { display: block; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 3px;
  border: 2px solid currentColor;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-solid:hover { background: var(--coral); border-color: var(--coral); color: var(--paper); }
.btn-outline { color: var(--paper); }
.btn-outline:hover { background: var(--paper); color: var(--bordeaux); }
.btn-outline-dark { color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: var(--paper); }

/* ---------- hero ---------- */
.hero {
  background: var(--bordeaux);
  color: var(--paper);
  padding: clamp(56px, 10vw, 120px) 0 clamp(48px, 8vw, 90px);
  position: relative;
  overflow: hidden;
}
.hero .eyebrow { color: var(--mustard); margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(48px, 9vw, 118px);
  max-width: 14ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--mustard);
}
.hero .lede {
  font-size: clamp(17px, 2vw, 21px);
  max-width: 46ch;
  margin: 26px 0 34px;
  color: var(--paper-2);
}
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stripes {
  position: absolute;
  right: -60px; top: -40px;
  width: 340px; height: 340px;
  border: 2px solid rgba(243,236,221,0.18);
  border-radius: 50%;
  pointer-events: none;
}
.hero-stripes::after {
  content: "";
  position: absolute;
  inset: 40px;
  border: 2px solid rgba(232,169,59,0.35);
  border-radius: 50%;
}

/* ---------- sections ---------- */
section { padding: clamp(52px, 8vw, 96px) 0; }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark .eyebrow { color: var(--mustard); }
.section-teal { background: var(--teal); color: var(--paper); }
.section-teal .eyebrow { color: var(--mustard); }
.section-paper2 { background: var(--paper-2); }

.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(32px, 5vw, 54px); margin-top: 14px; }

/* ---------- il cartello (signature card) ---------- */
.cartello {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 2px;
  padding: 28px 26px 26px;
  transform: rotate(var(--tilt, -1.2deg));
}
.cartello::before {
  content: "";
  position: absolute;
  left: 24px;
  bottom: -34px;
  width: 3px;
  height: 34px;
  background: var(--ink);
  transform: rotate(8deg);
}
.cartello::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(28,23,18,0.25);
  pointer-events: none;
}
.cartello .tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 14px;
}
.cartello h3 { font-size: 24px; margin-bottom: 10px; }
.cartello p { font-size: 15px; color: #4a4238; }

/* ---------- grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 46px 34px;
  margin-top: 10px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; gap: 56px; }
  .grid-2 { grid-template-columns: 1fr; gap: 36px; }
}

/* number list (real sequence: our process steps) */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-top: 2px solid rgba(28,23,18,0.15);
}
.step:last-child { border-bottom: 2px solid rgba(28,23,18,0.15); }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 15px;
  color: var(--coral);
  padding-top: 4px;
}
.step h3 { font-size: 21px; text-transform: none; font-family: var(--body); font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 15px; color: #4a4238; max-width: 56ch; }

/* stat row */
.stats { display: flex; flex-wrap: wrap; gap: 40px; }
.stat .num { font-family: var(--display); font-weight: 700; font-size: clamp(38px, 5vw, 58px); color: var(--mustard); display: block; }
.stat .label { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--paper-2); }

/* tags */
.tag-mustard { background: var(--mustard); color: var(--bordeaux-d); }
.tag-teal { background: var(--teal); color: var(--paper); }
.tag-coral { background: var(--coral); color: var(--paper); }
.tag-bordeaux { background: var(--bordeaux); color: var(--paper); }

/* portfolio piece image placeholder block */
.piece-visual {
  height: 200px;
  border-radius: 2px;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* quote */
.quote-block {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.quote-block p {
  font-family: var(--display);
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1.15;
  text-transform: none;
  margin-bottom: 20px;
}
.quote-block .who { font-family: var(--mono); font-size: 13px; color: var(--mustard); text-transform: uppercase; letter-spacing: 0.08em; }

/* team */
.team-card { text-align: left; }
.team-card .role { font-family: var(--mono); font-size: 12px; color: var(--coral); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.team-card h3 { font-family: var(--body); font-weight: 700; text-transform: none; font-size: 19px; }

/* form */
.form-field { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-field input, .form-field textarea, .form-field select {
  font-family: var(--body);
  font-size: 16px;
  padding: 13px 14px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: 3px solid var(--mustard);
  outline-offset: 1px;
}
.form-note { font-size: 14px; color: #4a4238; margin-top: -6px; }

/* contact info list */
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.info-list .k { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mustard); display: block; margin-bottom: 4px; }
.info-list .v { font-size: 19px; }
.info-list a { text-decoration: none; border-bottom: 2px solid var(--coral); }

/* footer */
.site-footer {
  background: var(--bordeaux-d);
  color: var(--paper-2);
  padding: 50px 0 30px;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 30px;
}
.site-footer .brand img { height: 24px; margin-bottom: 14px; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer nav a { font-family: var(--mono); font-size: 13px; text-decoration: none; text-transform: uppercase; letter-spacing: 0.06em; color: var(--paper-2); }
.site-footer nav a:hover { color: var(--mustard); }
.foot-bottom {
  max-width: var(--max);
  margin: 30px auto 0;
  padding: 20px var(--pad) 0;
  border-top: 1px solid rgba(243,236,221,0.15);
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(243,236,221,0.5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* page hero (interior pages, shorter) */
.page-hero { padding: clamp(48px, 8vw, 84px) 0 clamp(36px, 6vw, 60px); }
.page-hero h1 { font-size: clamp(40px, 7vw, 80px); }
.page-hero .lede { max-width: 56ch; margin-top: 20px; font-size: 18px; color: var(--paper-2); }

/* ---------- WordPress nav menu current-item fallback ---------- */
nav.main-nav .current-menu-item > a,
nav.main-nav .current_page_item > a,
.site-footer nav .current-menu-item > a,
.site-footer nav .current_page_item > a {
  background: var(--paper);
  color: var(--bordeaux);
}
.site-footer nav .current-menu-item > a,
.site-footer nav .current_page_item > a {
  background: none;
  color: var(--mustard);
}

/* ---------- Contact Form 7 — allineamento allo stile .contact-form ---------- */
.contact-form .wpcf7-form-control-wrap { display: block; margin-bottom: 20px; }
.contact-form p { margin-bottom: 0; }
.contact-form label {
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 8px;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  font-family: var(--body);
  font-size: 16px;
  padding: 13px 14px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid var(--mustard);
  outline-offset: 1px;
}
.contact-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 24px;
  border-radius: 3px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.contact-form input[type="submit"]:hover { background: var(--coral); border-color: var(--coral); transform: translateY(-2px); }
.contact-form .wpcf7-not-valid-tip { color: var(--coral); font-size: 13px; margin-top: 6px; display: block; }
.contact-form .wpcf7-response-output { font-family: var(--mono); font-size: 14px; border-radius: 3px; margin: 16px 0 0 !important; }
