/*
Theme Name: Grafiche Tumminello
Theme URI: https://grafichetumminello.com
Author: Grafiche Tumminello
Author URI: https://grafichetumminello.com
Description: Tema professionale per Grafiche Tumminello - Tipografia e Stampa a Gavardo (Brescia). Stampa digitale piccolo e grande formato, offset, legatoria, editoria, adesivizzazione, cartotecnica e packaging.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietario
License URI: https://grafichetumminello.com
Text Domain: grafiche-tumminello
Tags: business, tipografia, stampa, packaging, brescia
*/

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

:root {
  --ink:        #0f1a0e;
  --paper:      #f4f7f0;
  --cream:      #e8f0e2;
  --green:      #2d6a2a;
  --green-mid:  #3b8c37;
  --green-light:#7dba79;
  --gold:       #8aab3a;
  --muted:      #5a6857;
  --serif:      'Playfair Display', Georgia, serif;
  --sans:       'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  line-height: 1.15;
}

/* === SKIP LINK (accessibilità) === */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--green-mid);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 9999;
  font-size: 0.9rem;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* === NAVIGATION === */
.site-header {
  position: fixed;
  top: 0; width: 100%; z-index: 100;
  background: var(--ink);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3rem;
  height: 64px;
  border-bottom: 2px solid var(--green-mid);
}
.site-branding a {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--paper);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-branding span { color: var(--gold); }

.main-navigation ul {
  display: flex; gap: 2rem;
  list-style: none; align-items: center;
}
.main-navigation a {
  font-family: var(--sans);
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(244,247,240,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a { color: var(--gold); }

.nav-cta {
  font-size: 0.78rem !important;
  color: var(--green-light) !important;
  border: 1px solid rgba(125,186,121,0.35) !important;
  padding: 0.35rem 0.85rem;
  border-radius: 2px;
  transition: color 0.2s, border-color 0.2s !important;
  letter-spacing: 0.04em !important;
}
.nav-cta:hover { color: var(--gold) !important; border-color: var(--gold) !important; }

/* Hamburger mobile */
.menu-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer; padding: 0.5rem;
  flex-direction: column; gap: 5px;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--paper); transition: all 0.3s;
}

/* === HERO === */
#hero {
  min-height: 100vh;
  background: var(--ink);
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-top: 64px;
  overflow: hidden; position: relative;
}
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 39px,
    rgba(255,255,255,0.018) 39px, rgba(255,255,255,0.018) 40px
  );
  pointer-events: none;
}
.hero-text { padding: 5rem 4rem 5rem 5rem; position: relative; z-index: 2; }
.hero-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--green-light); margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.hero-eyebrow::before {
  content: ''; display: inline-block; width: 32px; height: 1px;
  background: var(--green-light);
}
.hero-title {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 900; line-height: 1.05;
  color: var(--paper); margin-bottom: 1rem;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-subtitle {
  font-size: 1.05rem; color: rgba(244,247,240,0.5);
  max-width: 380px; line-height: 1.75; margin-bottom: 2.5rem; font-weight: 300;
}
.hero-visual {
  height: 100vh; background: var(--cream);
  position: relative; overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 3px;
}
.hg-cell { display: flex; align-items: center; justify-content: center; padding: 2rem; }
.hg-1 { background: #0f1a0e; }
.hg-2 { background: var(--green-mid); }
.hg-3 { background: var(--gold); }
.hg-4 { background: #1a2e19; }
.hg-label { font-family: var(--serif); text-align: center; }
.hg-label .hg-big { font-size: 2.5rem; font-weight: 700; line-height: 1; display: block; }
.hg-label .hg-small {
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  display: block; margin-top: 0.4rem; font-family: var(--sans); font-weight: 400;
}
.hg-1 .hg-label, .hg-2 .hg-label, .hg-4 .hg-label { color: var(--paper); }
.hg-3 .hg-label { color: var(--ink); }

/* === BUTTONS === */
.btn-primary {
  display: inline-block; background: var(--green-mid); color: var(--paper);
  padding: 0.85rem 2.2rem; font-family: var(--sans);
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--green); transform: translateY(-1px); color: var(--paper); }
.btn-outline {
  display: inline-block; border: 1.5px solid rgba(244,247,240,0.2);
  color: rgba(244,247,240,0.65); padding: 0.85rem 2.2rem;
  font-family: var(--sans); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  margin-left: 1rem; transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* === SECTION BASE === */
.gt-section { padding: 6rem 5rem; }
.section-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--green-mid); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.section-eyebrow::before {
  content: ''; display: inline-block; width: 28px; height: 1px; background: var(--green-mid);
}
.section-eyebrow.light { color: var(--green-light); }
.section-eyebrow.light::before { background: var(--green-light); }
.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 700;
  line-height: 1.15; margin-bottom: 1rem; color: var(--ink);
}
.section-title.light { color: var(--paper); }
.section-lead { font-size: 1.05rem; color: var(--muted); max-width: 560px; line-height: 1.75; font-weight: 300; }
.section-lead.light { color: rgba(244,247,240,0.55); }

/* === CHI SIAMO === */
#chi-siamo {
  background: var(--ink); color: var(--paper);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.5rem; }
.stat { border-left: 2px solid var(--green-mid); padding-left: 1rem; }
.stat .stat-num { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; color: var(--gold); line-height: 1; display: block; }
.stat .stat-label { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(244,247,240,0.4); margin-top: 0.3rem; display: block; }
.about-deco {
  position: relative; height: 420px;
  display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px;
}
.ad-1 { background: var(--green-mid); grid-row: 1 / 3; display: flex; align-items: flex-end; padding: 1.5rem; }
.ad-2 { background: #1a2e19; display: flex; align-items: center; justify-content: center; }
.ad-3 { background: var(--gold); display: flex; align-items: center; justify-content: center; }
.ad-quote { font-family: var(--serif); font-size: 1.3rem; font-style: italic; color: var(--paper); line-height: 1.3; }
.ad-badge { font-family: var(--serif); text-align: center; }
.ad-badge .badge-main { font-size: 2rem; font-weight: 900; color: var(--gold); display: block; }
.ad-badge .badge-sub { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(244,247,240,0.35); display: block; margin-top: 0.3rem; font-family: var(--sans); font-weight: 400; }
.ad-icon { font-family: var(--serif); text-align: center; }
.ad-icon .icon-star { font-size: 2.2rem; color: var(--ink); display: block; }
.ad-icon .icon-label { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: #1a2e19; margin-top: 0.3rem; display: block; font-family: var(--sans); }

/* === SERVIZI === */
#servizi { background: var(--cream); }
.services-intro { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3.5rem; gap: 3rem; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(15,26,14,0.12); }
.service-card { background: var(--paper); padding: 2.5rem 2rem; position: relative; transition: background 0.3s; }
.service-card:hover { background: var(--ink); }
.service-card:hover .sc-title { color: var(--paper); }
.service-card:hover .sc-desc { color: rgba(244,247,240,0.5); }
.service-card:hover .sc-num { color: rgba(244,247,240,0.06); }
.service-card:hover .sc-icon { color: var(--gold); }
.sc-num { font-family: var(--serif); font-size: 4rem; font-weight: 900; color: rgba(15,26,14,0.05); position: absolute; top: 1rem; right: 1.5rem; line-height: 1; transition: color 0.3s; }
.sc-icon { font-size: 1.8rem; color: var(--green-mid); margin-bottom: 1.2rem; transition: color 0.3s; }
.sc-title { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--ink); margin-bottom: 0.75rem; transition: color 0.3s; line-height: 1.2; }
.sc-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.65; transition: color 0.3s; font-weight: 300; }
.sc-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.2rem; }
.sc-tag { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.25rem 0.6rem; background: rgba(15,26,14,0.07); color: var(--green); border-radius: 2px; transition: background 0.3s, color 0.3s; }
.service-card:hover .sc-tag { background: rgba(244,247,240,0.08); color: rgba(244,247,240,0.5); }
.service-card.full { grid-column: 1 / 3; }

/* === FINITURE === */
#finiture { background: var(--green); padding: 4rem 5rem; display: flex; align-items: center; gap: 4rem; }
.spec-headline { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; font-style: italic; color: var(--paper); min-width: 280px; line-height: 1.2; }
.spec-list { display: flex; flex-wrap: wrap; gap: 1rem; flex: 1; }
.spec-item { background: rgba(244,247,240,0.1); color: var(--paper); padding: 0.6rem 1.2rem; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; border: 1px solid rgba(244,247,240,0.2); border-radius: 2px; white-space: nowrap; }

/* === PROCESSO === */
#processo { background: var(--paper); }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 3.5rem; position: relative; }
.process-steps::before { content: ''; position: absolute; top: 1.75rem; left: 2rem; right: 2rem; height: 1px; background: repeating-linear-gradient(90deg, var(--green-mid) 0, var(--green-mid) 6px, transparent 6px, transparent 14px); }
.process-step { position: relative; padding-top: 4rem; }
.step-circle { width: 3.5rem; height: 3.5rem; background: var(--ink); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.1rem; font-weight: 700; color: var(--gold); position: absolute; top: 0; z-index: 2; }
.step-title { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.step-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.6; font-weight: 300; }

/* === CONTATTI === */
#contatti { background: var(--ink); display: grid; grid-template-columns: 1fr 1fr; min-height: 500px; padding: 0; }
.contact-text { padding: 6rem 4rem 6rem 5rem; }
.contact-details { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.2rem; }
.cd-item { display: flex; align-items: flex-start; gap: 1rem; }
.cd-icon { color: var(--gold); margin-top: 0.15rem; flex-shrink: 0; }
.cd-label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-light); margin-bottom: 0.2rem; }
.cd-value { font-size: 0.95rem; color: rgba(244,247,240,0.7); }
.cd-value a { color: var(--green-light); text-decoration: none; border-bottom: 1px solid rgba(125,186,121,0.35); transition: color 0.2s, border-color 0.2s; }
.cd-value a:hover { color: var(--gold); border-color: var(--gold); }
.contact-form-wrap { background: #0a1209; padding: 6rem 5rem 6rem 4rem; display: flex; flex-direction: column; gap: 1.2rem; justify-content: center; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(244,247,240,0.35); font-family: var(--sans); }
.form-field input,
.form-field textarea,
.form-field select {
  background: rgba(244,247,240,0.04); border: 1px solid rgba(244,247,240,0.1);
  color: var(--paper); padding: 0.75rem 1rem;
  font-family: var(--sans); font-size: 0.9rem;
  outline: none; border-radius: 0; transition: border-color 0.2s; width: 100%;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--green-light); }
.form-field textarea { resize: vertical; min-height: 100px; }
.form-field select { appearance: none; cursor: pointer; color: rgba(244,247,240,0.5); }
.form-field select option { background: #0f1a0e; }
.form-submit { background: var(--green-mid); color: var(--paper); border: none; padding: 1rem 2.5rem; font-family: var(--sans); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; align-self: flex-start; transition: background 0.2s; }
.form-submit:hover { background: var(--green); }
.wpcf7-spinner { display: none !important; }

/* === FOOTER === */
.site-footer { background: #080f07; padding: 3rem 5rem; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(244,247,240,0.05); flex-wrap: wrap; gap: 1rem; }
.footer-logo { font-family: var(--serif); font-size: 1rem; color: var(--paper); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; }
.footer-logo span { color: var(--gold); }
.footer-copy { font-size: 0.78rem; color: rgba(244,247,240,0.22); }
.footer-nav { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; }
.footer-nav a { font-size: 0.78rem; color: rgba(244,247,240,0.28); text-decoration: none; letter-spacing: 0.06em; text-transform: uppercase; transition: color 0.2s; }
.footer-nav a:hover { color: var(--gold); }
.footer-mail { font-size: 0.82rem !important; color: var(--green-light) !important; border-bottom: 1px solid rgba(125,186,121,0.3); letter-spacing: 0.02em !important; text-transform: none !important; }
.footer-mail:hover { color: var(--gold) !important; border-color: var(--gold) !important; }

/* === SCHEMA ORG breadcrumb === */
.breadcrumbs { padding: 1rem 5rem; font-size: 0.82rem; color: var(--muted); margin-top: 64px; }
.breadcrumbs a { color: var(--green-mid); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .gt-section { padding: 5rem 2rem; }
  #finiture { padding: 3rem 2rem; flex-direction: column; gap: 2rem; }
  .spec-headline { min-width: unset; }
}
@media (max-width: 768px) {
  .site-header { padding: 0 1.5rem; }
  .main-navigation { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--ink); padding: 1.5rem; flex-direction: column; }
  .main-navigation.is-open { display: flex; }
  .main-navigation ul { flex-direction: column; gap: 1rem; }
  .menu-toggle { display: flex; }
  #hero { grid-template-columns: 1fr; }
  .hero-text { padding: 3rem 1.5rem; }
  .hero-visual { height: 60vw; }
  #chi-siamo { grid-template-columns: 1fr; gap: 3rem; padding: 4rem 1.5rem; }
  .about-deco { height: 280px; }
  .services-intro { flex-direction: column; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card.full { grid-column: 1; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-steps::before { display: none; }
  #contatti { grid-template-columns: 1fr; }
  .contact-text { padding: 4rem 1.5rem 2rem; }
  .contact-form-wrap { padding: 2rem 1.5rem 4rem; }
  .form-row { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
  .breadcrumbs { padding: 1rem 1.5rem; }
}
@media (max-width: 480px) {
  .gt-section { padding: 3rem 1rem; }
  .hero-title { font-size: 2.4rem; }
  .process-steps { grid-template-columns: 1fr; }
}
