/*
Theme Name: Podagrosi Editorial
Theme URI: https://www.davidepodagrosi.it
Author: Davide Podagrosi
Author URI: https://www.davidepodagrosi.it
Description: Tema custom editorial luxury per il sito di Davide Podagrosi — Consulente di Web Marketing
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: podagrosi
*/

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

:root {
  --bg-dark: #0C0C0C;
  --bg-dark-2: #141414;
  --bg-dark-3: #1A1A1A;
  --text-light: #F5F1EB;
  --text-muted: #8A8680;
  --text-dim: #5A5754;
  --gold: #C9A96E;
  --gold-muted: #A08A58;
  --gold-light: #D4B97E;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --max-w: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ===== GRAIN OVERLAY ===== */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes lineGrow {
  from { width: 0; }
  to { width: 40px; }
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
.anim-up { animation: fadeUp 0.8s ease-out both; }
.d1 { animation-delay: 0.1s; }
.d2 { animation-delay: 0.2s; }
.d3 { animation-delay: 0.3s; }
.d4 { animation-delay: 0.4s; }

/* ===== NAVIGATION ===== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.4s, padding 0.4s;
}
.site-nav.scrolled {
  background: rgba(12,12,12,0.92);
  backdrop-filter: blur(12px);
  padding: 1rem 3rem;
  border-bottom: 1px solid rgba(201,169,110,0.1);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--text-light);
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--text-light); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-size: 12px !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase;
  color: var(--gold) !important;
  border: 1px solid var(--gold-muted);
  padding: 10px 24px;
  transition: background 0.3s, color 0.3s !important;
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--bg-dark) !important;
}
.nav-cta::after { display: none !important; }

.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 1.5px; background: var(--text-light); transition: 0.3s; }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(12,12,12,0.97);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--text-light);
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--gold); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 3rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-muted);
  margin-bottom: 1.25rem;
}
.hero-accent {
  width: 40px; height: 1px;
  background: var(--gold);
  margin-bottom: 2rem;
  animation: lineGrow 0.8s ease-out 0.3s both;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 5.2vw, 68px);
  font-weight: 400;
  line-height: 1.1;
  max-width: 820px;
  margin-bottom: 1.5rem;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid rgba(245,241,235,0.08);
  padding-top: 2rem;
}
.hero-stats { display: flex; gap: 4rem; }
.stat-num {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--text-light);
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-top: 6px;
}
.hero-scroll {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-scroll .arrow {
  display: inline-block;
  width: 1px; height: 30px;
  background: var(--gold-muted);
  animation: pulse 2s ease-in-out infinite;
}

/* ===== SECTIONS ===== */
section { padding: 6rem 3rem; }
.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-muted);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  max-width: 600px;
  margin-bottom: 1rem;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* ===== ABOUT ===== */
.about {
  background: var(--bg-dark-2);
  border-top: 1px solid rgba(245,241,235,0.05);
  border-bottom: 1px solid rgba(245,241,235,0.05);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  max-width: var(--max-w);
  margin: 0 auto;
  align-items: center;
}
.about-image {
  aspect-ratio: 4/5;
  background: var(--bg-dark-3);
  border: 1px solid rgba(245,241,235,0.06);
  overflow: hidden;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-list {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.5rem;
}
.about-list li {
  font-size: 12px; color: var(--gold);
  border: 1px solid var(--gold-muted);
  padding: 6px 14px; letter-spacing: 0.03em;
}
.about-signature {
  font-family: var(--serif);
  font-style: italic; font-size: 20px;
  color: var(--gold); margin-top: 2rem;
}

/* ===== SERVICES ===== */
.services { max-width: var(--max-w); margin: 0 auto; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(245,241,235,0.06);
  border: 1px solid rgba(245,241,235,0.06);
}
.service-card {
  background: var(--bg-dark);
  padding: 2.5rem 2rem;
  transition: background 0.4s;
  position: relative;
}
.service-card:hover { background: var(--bg-dark-2); }
.service-num {
  font-family: var(--serif); font-size: 14px;
  color: var(--gold-muted); margin-bottom: 1.5rem;
}
.service-card h3 {
  font-family: var(--serif); font-size: 24px;
  font-weight: 400; margin-bottom: 1rem; line-height: 1.2;
}
.service-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.service-card .service-arrow {
  position: absolute; bottom: 2rem; right: 2rem;
  color: var(--gold-muted); font-size: 18px;
  opacity: 0; transform: translateX(-8px);
  transition: opacity 0.3s, transform 0.3s;
}
.service-card:hover .service-arrow { opacity: 1; transform: translateX(0); }

/* ===== RESULTS ===== */
.results-banner {
  background: var(--bg-dark-2);
  border-top: 1px solid rgba(201,169,110,0.15);
  border-bottom: 1px solid rgba(201,169,110,0.15);
  padding: 4rem 3rem;
}
.results-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem; text-align: center;
}
.result-num { font-family: var(--serif); font-size: 48px; color: var(--gold); line-height: 1; }
.result-label { font-size: 13px; color: var(--text-muted); margin-top: 8px; }

/* ===== PROCESS ===== */
.process { max-width: var(--max-w); margin: 0 auto; }
.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  position: relative;
}
.process-steps::before {
  content: ''; position: absolute;
  top: 28px; left: 5%; right: 5%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-muted), transparent);
}
.process-step { text-align: center; padding: 0 1.5rem; position: relative; }
.step-dot {
  width: 12px; height: 12px;
  border: 1.5px solid var(--gold); border-radius: 50%;
  margin: 0 auto 1.5rem; background: var(--bg-dark);
  position: relative; z-index: 2;
}
.process-step:first-child .step-dot { background: var(--gold); }
.step-num { font-family: var(--serif); font-size: 13px; color: var(--gold-muted); margin-bottom: 8px; }
.process-step h4 { font-family: var(--serif); font-size: 20px; font-weight: 400; margin-bottom: 8px; }
.process-step p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ===== TESTIMONIALS ===== */
.testimonials {
  background: var(--bg-dark-2);
  border-top: 1px solid rgba(245,241,235,0.05);
}
.testimonials-inner { max-width: var(--max-w); margin: 0 auto; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial-card {
  border: 1px solid rgba(245,241,235,0.06);
  padding: 2rem; display: flex; flex-direction: column;
}
.testimonial-quote {
  font-family: var(--serif); font-size: 48px;
  color: var(--gold-muted); line-height: 1; opacity: 0.4; margin-bottom: 0.5rem;
}
.testimonial-stars { color: var(--gold); font-size: 12px; letter-spacing: 2px; margin-bottom: 1rem; }
.testimonial-card blockquote {
  font-size: 14px; color: var(--text-light); line-height: 1.7;
  font-style: italic; margin-bottom: 1.5rem; flex: 1;
}
.testimonial-author { font-size: 13px; font-weight: 500; }
.testimonial-role { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

/* ===== CERTIFICATIONS ===== */
.certifications { max-width: var(--max-w); margin: 0 auto; }
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; max-width: 700px; }
.cert-card {
  aspect-ratio: 16/11; background: var(--bg-dark-3);
  border: 1px solid rgba(245,241,235,0.06); overflow: hidden;
  transition: border-color 0.3s;
}
.cert-card:hover { border-color: rgba(201,169,110,0.3); }
.cert-card img { width: 100%; height: 100%; object-fit: cover; }

/* ===== BLOG ===== */
.blog-preview { max-width: var(--max-w); margin: 0 auto; }
.blog-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 3rem;
}
.blog-header a {
  font-size: 13px; color: var(--gold);
  border-bottom: 1px solid var(--gold-muted);
  padding-bottom: 2px; transition: opacity 0.3s;
}
.blog-header a:hover { opacity: 0.7; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.blog-card { cursor: pointer; }
.blog-card-image {
  aspect-ratio: 16/10; background: var(--bg-dark-3);
  border: 1px solid rgba(245,241,235,0.06);
  margin-bottom: 1.25rem; transition: border-color 0.3s;
  overflow: hidden;
}
.blog-card:hover .blog-card-image { border-color: rgba(201,169,110,0.3); }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-tag {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--gold-muted); margin-bottom: 8px;
}
.blog-card h3 {
  font-family: var(--serif); font-size: 20px; font-weight: 400;
  line-height: 1.3; margin-bottom: 8px; transition: color 0.3s;
}
.blog-card:hover h3 { color: var(--gold); }
.blog-card-date { font-size: 12px; color: var(--text-dim); }

/* ===== CTA ===== */
.cta-section {
  padding: 8rem 3rem; text-align: center; position: relative;
}
.cta-section::before {
  content: ''; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section .section-title {
  max-width: 700px; margin: 0 auto 1.5rem;
  font-size: clamp(36px, 4vw, 54px);
}
.cta-section .section-desc { max-width: 500px; margin: 0 auto 2.5rem; text-align: center; }
.cta-btn {
  display: inline-block; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--bg-dark); background: var(--gold);
  padding: 16px 40px; border: none; cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  font-family: var(--sans);
}
.cta-btn:hover { background: var(--gold-light); transform: translateY(-1px); }
.cta-contacts {
  margin-top: 2rem; font-size: 14px; color: var(--text-muted);
  display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap;
}
.cta-contacts a { color: var(--gold); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.cta-contacts a:hover { border-color: var(--gold); }

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid rgba(245,241,235,0.06);
  padding: 4rem 3rem 2rem;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand p { font-size: 14px; color: var(--text-muted); line-height: 1.7; max-width: 280px; margin-top: 1rem; }
.footer-col h4 {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 1.25rem;
}
.footer-col a { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 10px; transition: color 0.3s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto;
  border-top: 1px solid rgba(245,241,235,0.06);
  padding-top: 2rem; display: flex; justify-content: space-between;
  font-size: 12px; color: var(--text-dim);
}

/* ===== BLOG SINGLE & ARCHIVE ===== */
.blog-archive, .blog-single { max-width: 800px; margin: 0 auto; padding: 8rem 2rem 4rem; }
.blog-archive h1, .blog-single h1 {
  font-family: var(--serif); font-size: clamp(32px, 4vw, 48px);
  font-weight: 400; margin-bottom: 2rem;
}
.blog-single .entry-content {
  font-size: 16px; line-height: 1.8; color: var(--text-muted);
}
.blog-single .entry-content h2, .blog-single .entry-content h3 {
  font-family: var(--serif); color: var(--text-light);
  margin: 2rem 0 1rem; font-weight: 400;
}
.blog-single .entry-content p { margin-bottom: 1.5rem; }
.blog-single .entry-content a { color: var(--gold); border-bottom: 1px solid var(--gold-muted); }
.blog-single .entry-content img { border: 1px solid rgba(245,241,235,0.06); margin: 2rem 0; }
.blog-single .entry-content ul, .blog-single .entry-content ol {
  padding-left: 1.5rem; margin-bottom: 1.5rem;
}
.blog-single .entry-content li {
  margin-bottom: 0.5rem; list-style: disc; color: var(--text-muted);
}
.blog-single .entry-meta {
  font-size: 13px; color: var(--text-dim); margin-bottom: 2rem;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(245,241,235,0.08);
}

.archive-post {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(245,241,235,0.06);
}
.archive-post h2 { font-family: var(--serif); font-size: 24px; font-weight: 400; margin-bottom: 0.5rem; }
.archive-post h2 a { transition: color 0.3s; }
.archive-post h2 a:hover { color: var(--gold); }
.archive-post .entry-meta { font-size: 12px; color: var(--text-dim); margin-bottom: 0.75rem; }
.archive-post .entry-excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ===== PAGINATION ===== */
.pagination {
  display: flex; gap: 8px; margin-top: 3rem; justify-content: center;
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; font-size: 14px;
  border: 1px solid rgba(245,241,235,0.1); color: var(--text-muted);
  transition: all 0.3s;
}
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination .current { background: var(--gold); color: var(--bg-dark); border-color: var(--gold); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .process-steps::before { display: none; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  section { padding: 4rem 1.5rem; }
  .site-nav { padding: 1.25rem 1.5rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 0 1.5rem 3rem; }
  .hero-bottom { flex-direction: column; gap: 2rem; align-items: flex-start; }
  .hero-stats { gap: 2.5rem; flex-wrap: wrap; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .results-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .process-steps { grid-template-columns: 1fr; gap: 2rem; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .blog-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .cta-contacts { flex-direction: column; gap: 0.75rem; }
}

