/* =====================================================
   DR PUNTO G — Main Stylesheet
   Dott. George Jaar | drpuntog.it
   Pantone Blue Palette — Minimal Pop Fun Caldo
   Style direction inspired by editorial/"sticker" layouts:
   oversized type, layered photo blocks, rotated badges,
   bouncy hover states, generous whitespace.
   ===================================================== */

/* --- VARIABLES --- */
:root {
  --blue-dark:       #0F4C81;   /* Classic Blue */
  --blue-medium:     #0E87B4;   /* Spring Break */
  --blue-teal:       #2EC4C8;   /* Blue Curacao */
  --blue-light:      #5BC8E8;   /* Out of the Blue */
  --blue-pale:       #C5DFF0;   /* Saltwater Slide */
  --blue-very-pale:  #EEF8FC;
  --blue-periwinkle: #7B8FCC;   /* Coastline Blue */
  --white:           #FFFFFF;
  --dark:            #1A2740;
  --text:            #2C3E50;
  --text-muted:      #5A7A9A;
  --grad-hero:    linear-gradient(135deg, #0F4C81 0%, #0E87B4 55%, #2EC4C8 100%);
  --grad-accent:  linear-gradient(135deg, #0E87B4 0%, #2EC4C8 100%);
  --shadow-sm:  0 2px 12px rgba(15,76,129,0.10);
  --shadow-md:  0 8px 32px rgba(15,76,129,0.16);
  --shadow-lg:  0 20px 64px rgba(15,76,129,0.22);
  --r-sm:  12px;
  --r-md:  18px;
  --r-lg:  32px;
  --r-xl:  999px;
  --font:  'Poppins', sans-serif;
  --serif: 'Contrail One', sans-serif;
  --ease:     all 0.3s cubic-bezier(.4,0,.2,1);
  --ease-pop: all 0.45s cubic-bezier(.16,1,.3,1);
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.75; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--font); }

/* --- TYPOGRAPHY --- */
h1,h2 { font-family: var(--serif); line-height: 1.15; font-weight: 400; letter-spacing: -0.01em; }
h3,h4 { font-family: var(--font); line-height: 1.3; font-weight: 600; letter-spacing: -0.005em; }

/* --- LAYOUT --- */
.container { max-width: 1220px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 7.5rem 0; }
.section-light { background: var(--blue-very-pale); }
.section-gradient { background: var(--grad-hero); }
.section-dark { background: var(--dark); }
.section-dark .section-title { color: white; }
.section-dark .section-subtitle { color: rgba(255,255,255,0.65); }
.section-dark .hl { color: var(--blue-light); }
.section-dark .hl::after { opacity: 0.35; }

/* --- SECTION HEADER --- */
.section-header { text-align: center; margin-bottom: 4.5rem; }
.section-tag {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--blue-very-pale);
  color: var(--blue-dark);
  font-family: var(--font);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  padding: 0.5rem 1.3rem;
  border-radius: var(--r-xl);
  margin-bottom: 1.5rem;
}
.section-tag::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue-teal);
}
.section-tag.light { background: rgba(255,255,255,0.12); color: white; }
.section-tag.light::before { background: var(--blue-light); }
.section-title { font-size: clamp(2.4rem, 5vw, 4.2rem); color: var(--dark); margin-bottom: 0.85rem; }
.section-title.light { color: white; }
.section-subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 580px; margin: 0 auto; }
.section-subtitle.light { color: rgba(255,255,255,0.82); }
.hl {
  color: var(--blue-dark);
  position: relative; display: inline-block;
}
.hl::after {
  content: '';
  position: absolute; bottom: 2px; left: -2%;
  width: 104%; height: 8px;
  background: var(--grad-accent);
  border-radius: 4px; z-index: -1;
  opacity: 0.55;
  transform: rotate(-1.5deg);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 1.05rem 2.3rem;
  border-radius: var(--r-xl);
  font-family: var(--font); font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer; border: none;
  transition: var(--ease-pop);
}
.btn-primary { background: var(--white); color: var(--blue-dark); box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: transparent; color: white; border: 1.5px solid rgba(255,255,255,0.55); }
.btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: white; transform: translateY(-3px); }
.btn-outline { background: transparent; color: var(--blue-dark); border: 1.5px solid var(--blue-dark); }
.btn-outline:hover { background: var(--blue-dark); color: white; transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ===================== NAVBAR ===================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.2rem 0;
  transition: var(--ease);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
}
.nav-inner {
  max-width: 1220px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.7rem; font-weight: 400;
  color: white;
  transition: var(--ease);
  letter-spacing: -0.02em;
}
.navbar.scrolled .nav-logo { color: var(--blue-dark); }
.logo-g { color: var(--blue-teal); }
.navbar.scrolled .logo-g { color: var(--blue-teal); }
.nav-menu { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  color: rgba(255,255,255,0.88);
  font-weight: 500; font-size: 0.88rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--r-xl);
  transition: var(--ease);
}
.navbar.scrolled .nav-link { color: var(--text); }
.nav-link:hover { background: rgba(255,255,255,0.18); color: white; }
.navbar.scrolled .nav-link:hover { background: var(--blue-very-pale); color: var(--blue-dark); }
.nav-link.active { background: rgba(255,255,255,0.18); color: white; }
.navbar.scrolled .nav-link.active { background: var(--blue-very-pale); color: var(--blue-dark); }
.nav-cta {
  background: var(--blue-teal) !important;
  color: white !important;
  padding: 0.5rem 1.3rem !important;
  margin-left: 0.5rem;
}
.nav-cta:hover { background: var(--blue-dark) !important; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: white; border-radius: 2px; transition: var(--ease);
}
.navbar.scrolled .nav-hamburger span { background: var(--blue-dark); }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== HERO ===================== */
.hero {
  min-height: 100vh;
  background: var(--grad-hero);
  position: relative;
  display: flex; align-items: center;
  overflow: hidden;
  padding-top: 5rem;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 70% 40%, rgba(46,196,200,0.25) 0%, transparent 55%);
}
.hero-content {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: 5rem; align-items: center;
  padding: 4rem 2rem 6rem;
}
.hero-eyebrow {
  color: rgba(255,255,255,0.72);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.hero-title {
  font-size: clamp(3.6rem, 9vw, 7.5rem);
  color: white; line-height: 0.98; margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}
.hero-title-dot { color: var(--blue-teal); }
.hero-name {
  color: rgba(255,255,255,0.82);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 300; font-style: italic;
  margin-bottom: 1.5rem;
}
.hero-roles {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.hero-role {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  color: white;
  font-size: 0.82rem; font-weight: 500;
  padding: 0.35rem 1rem; border-radius: var(--r-xl);
  backdrop-filter: blur(6px);
}
.hero-tagline {
  color: var(--blue-light);
  font-size: 1.05rem; font-style: italic;
  margin-bottom: 2.5rem; display: block;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-social { display: flex; gap: 0.75rem; }
.hero-social a {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: white; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--ease-pop);
}
.hero-social a:hover { background: rgba(255,255,255,0.28); transform: translateY(-3px); }

/* Hero visual — layered photo block, refined */
.hero-visual {
  position: relative; display: flex;
  justify-content: center; align-items: center;
}
.hero-visual::before {
  content: '';
  position: absolute;
  width: 360px; height: 440px;
  background: var(--blue-teal);
  border-radius: var(--r-lg);
  transform: rotate(2deg) translate(10px, 10px);
  z-index: 0;
  opacity: 0.9;
}
.hero-photo {
  width: 360px; height: 440px;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative; z-index: 1;
  transform: rotate(-1.5deg);
  box-shadow: var(--shadow-lg);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-icon { font-size: 7rem; color: rgba(255,255,255,0.35); }
.hero-badge {
  position: absolute; z-index: 2;
  background: white; color: var(--blue-dark);
  font-family: var(--font); font-weight: 600;
  font-size: 0.85rem;
  padding: 0.65rem 1.3rem; border-radius: var(--r-xl);
  border: 1px solid var(--blue-pale);
  box-shadow: var(--shadow-md); white-space: nowrap;
}
.hb1 { top: -4%; left: -8%; animation: floatBadge1 5s ease-in-out infinite; }
.hb2 { top: 46%; right: -10%; animation: floatBadge2 5.5s ease-in-out infinite 0.8s; }
.hb3 { bottom: -3%; left: 4%; animation: floatBadge3 6s ease-in-out infinite 1.6s; }
@keyframes floatBadge1 {
  0%,100% { transform: rotate(-3deg) translateY(0); }
  50%     { transform: rotate(-3deg) translateY(-8px); }
}
@keyframes floatBadge2 {
  0%,100% { transform: rotate(2deg) translateY(0); }
  50%     { transform: rotate(2deg) translateY(-8px); }
}
@keyframes floatBadge3 {
  0%,100% { transform: rotate(-2deg) translateY(0); }
  50%     { transform: rotate(-2deg) translateY(-8px); }
}
.hero-wave {
  position: absolute; bottom: -1px; left: 0; right: 0;
}
.hero-wave svg { width: 100%; height: 80px; display: block; }

/* ===================== ABOUT ===================== */
.about-grid {
  display: grid; grid-template-columns: 3fr 2fr;
  gap: 6rem; align-items: start;
}
.about-lead {
  font-size: 1.18rem; font-weight: 500;
  color: var(--dark); margin-bottom: 1.5rem; line-height: 1.85;
}
.about-text p { margin-bottom: 1.1rem; color: var(--text); }
.about-langs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.75rem 0; }
.lang-pill {
  background: var(--blue-pale); color: var(--blue-dark);
  font-size: 0.82rem; font-weight: 600;
  padding: 0.3rem 0.9rem; border-radius: var(--r-xl);
}
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.stat-card {
  background: white; border-radius: var(--r-md);
  padding: 1.75rem 1.5rem; text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--blue-pale);
  transition: var(--ease-pop);
}
.stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--blue-teal); }
.stat-n { display: block; font-family: var(--serif); font-size: 2.6rem; font-weight: 400; color: var(--blue-dark); line-height: 1; margin-bottom: 0.5rem; }
.stat-l { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; line-height: 1.4; }

/* ===================== SERVICES ===================== */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 1.75rem;
}
.svc-card {
  background: white; border-radius: var(--r-md);
  padding: 2.25rem 1.85rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--blue-pale);
  transition: var(--ease-pop);
}
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--blue-teal); }
.svc-card.featured { background: var(--grad-hero); border: 1px solid transparent; }
.svc-card.featured h3, .svc-card.featured p { color: white; }
.svc-card.featured .svc-tag { background: rgba(255,255,255,0.22); color: white; }
.svc-icon { font-size: 3rem; margin-bottom: 1.2rem; }
.svc-card h3 { font-size: 1.35rem; color: var(--dark); margin-bottom: 0.7rem; }
.svc-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.75; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.svc-tag {
  background: var(--blue-pale); color: var(--blue-dark);
  font-size: 0.72rem; font-weight: 700;
  padding: 0.25rem 0.7rem; border-radius: var(--r-xl);
}

/* ===================== TIMELINE ===================== */
.timeline { position: relative; max-width: 680px; margin: 0 auto 2.5rem; }
.timeline::before {
  content: ''; position: absolute;
  left: 18px; top: 8px; bottom: 8px;
  width: 2px; background: var(--grad-accent); border-radius: 2px;
}
.tl-item { display: flex; gap: 2.5rem; padding-left: 3rem; position: relative; margin-bottom: 2rem; }
.tl-dot {
  position: absolute; left: 10px; top: 10px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--grad-accent); border: 3px solid white;
  box-shadow: var(--shadow-sm);
}
.tl-body {
  background: white; border-radius: var(--r-md);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--blue-pale);
  width: 100%;
  transition: var(--ease-pop);
}
.tl-body:hover { transform: translateX(6px); border-color: var(--blue-teal); box-shadow: var(--shadow-md); }
.tl-year {
  font-size: 0.72rem; font-weight: 700;
  color: var(--blue-teal); letter-spacing: 0.12em;
  text-transform: uppercase; display: block; margin-bottom: 0.25rem;
}
.tl-body h4 { font-size: 1.05rem; color: var(--dark); margin-bottom: 0.3rem; }
.tl-body p { font-size: 0.87rem; color: var(--text-muted); line-height: 1.6; }
.ordine-badge {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: var(--blue-very-pale); color: var(--blue-dark);
  font-weight: 600; font-size: 0.88rem;
  padding: 0.9rem 2rem; border-radius: var(--r-xl);
  margin: 0 auto; display: flex; justify-content: center; max-width: fit-content;
}

/* ===================== CONTACT ===================== */
.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-bottom: 4rem;
}
.contact-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--r-md); padding: 2.25rem 2rem;
  text-align: center; backdrop-filter: blur(10px);
  cursor: pointer; transition: var(--ease-pop);
}
.contact-card:hover { background: rgba(255,255,255,0.16); transform: translateY(-6px); border-color: rgba(255,255,255,0.45); }
.cc-icon { font-size: 2.8rem; color: white; margin-bottom: 1rem; display: block; }
.contact-card h3 { color: white; font-size: 1.2rem; margin-bottom: 0.5rem; }
.contact-card p { color: rgba(255,255,255,0.78); font-size: 0.88rem; margin-bottom: 1.1rem; line-height: 1.6; }
.cc-action { color: var(--blue-light); font-weight: 700; font-size: 0.88rem; }
.social-band { text-align: center; }
.social-band p { color: rgba(255,255,255,0.78); margin-bottom: 1.25rem; }
.social-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.social-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.72rem 1.5rem; border-radius: var(--r-xl);
  font-weight: 600; font-size: 0.9rem; color: white;
  border: 1px solid rgba(255,255,255,0.4);
  transition: var(--ease-pop);
}
.social-pill:hover { background: rgba(255,255,255,0.16); border-color: white; transform: translateY(-3px); }

/* ===================== FOOTER ===================== */
.footer { background: var(--dark); color: rgba(255,255,255,0.65); padding: 4rem 0 3rem; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.footer-logo { font-family: var(--serif); font-size: clamp(2.4rem, 7vw, 4.5rem); font-weight: 400; color: white; }
.footer-desc { font-size: 0.88rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 0.82rem; color: var(--blue-light); transition: var(--ease); }
.footer-links a:hover { color: white; }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.38); margin-top: 0.5rem; }

/* ===================== PAGE HERO (inner pages) ===================== */
.page-hero {
  background: var(--grad-hero);
  padding: 9.5rem 0 5.5rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(46,196,200,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); color: white; margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.82); font-size: 1.05rem; max-width: 520px; margin: 0 auto; }
.page-wave { position: absolute; bottom: -1px; left: 0; right: 0; }
.page-wave svg { width: 100%; height: 60px; display: block; }

/* ===================== BLOG ===================== */
.blog-bar {
  background: var(--blue-very-pale);
  padding: 2.5rem 0;
}
.search-wrap { max-width: 580px; margin: 0 auto; position: relative; }
.search-wrap i { position: absolute; left: 1.2rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.search-wrap input {
  width: 100%; padding: 1rem 1.5rem 1rem 3.4rem;
  border-radius: var(--r-xl); border: 2px solid var(--blue-pale);
  font-family: var(--font); font-size: 0.95rem;
  background: white; color: var(--text); outline: none;
  transition: var(--ease);
}
.search-wrap input:focus { border-color: var(--blue-medium); box-shadow: 0 0 0 4px rgba(14,135,180,0.12); }
.search-wrap input::placeholder { color: var(--text-muted); }
.blog-main { padding: 4.5rem 0 6.5rem; }
.blog-count { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 2rem; }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 2rem; }
.post-card {
  display: block;
  background: white; border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--blue-pale);
  transition: var(--ease-pop); cursor: pointer;
}
.post-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--blue-teal); }
.post-thumb {
  height: 180px; background: var(--grad-hero); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
}
.post-body { padding: 1.5rem; }
.post-tag {
  display: inline-block;
  background: var(--blue-pale); color: var(--blue-dark);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.25rem 0.75rem; border-radius: var(--r-xl);
  margin-bottom: 0.75rem;
}
.post-title { font-size: 1.15rem; color: var(--dark); margin-bottom: 0.7rem; line-height: 1.45; }
.post-excerpt { font-size: 0.87rem; color: var(--text-muted); margin-bottom: 1.1rem; line-height: 1.7; }
.post-meta { font-size: 0.78rem; color: var(--text-muted); display: flex; justify-content: space-between; align-items: center; }
.post-read { color: var(--blue-medium); font-weight: 600; }
.no-results { text-align: center; padding: 5rem 0; color: var(--text-muted); }
.no-results i { font-size: 3rem; margin-bottom: 1rem; display: block; opacity: 0.3; }

/* ===================== ARTICLE (post.html) ===================== */
.article-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 760px; margin: 0 auto 0.75rem; }
.article-hero p { font-size: 0.95rem; }
.article-main { padding: 4.5rem 0 6.5rem; }
.article-container { max-width: 700px; margin: 0 auto; }
.back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--blue-medium); font-weight: 600; font-size: 0.9rem;
  margin-bottom: 2.5rem; transition: var(--ease-pop);
}
.back-link:hover { color: var(--blue-dark); transform: translateX(-4px); }
.back-link-bottom { margin-top: 3rem; margin-bottom: 0; }
.article-body h3 {
  font-size: 1.5rem; color: var(--blue-dark);
  margin: 2.5rem 0 1.1rem;
}
.article-body p { margin-bottom: 1.25rem; color: var(--text); line-height: 1.9; }
.article-body ul { margin: 0 0 1.25rem 1.4rem; }
.article-body li { margin-bottom: 0.6rem; color: var(--text); line-height: 1.8; }
.article-body strong { color: var(--dark); }

/* ===================== MEDIA ===================== */
.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(480px, 1fr)); gap: 2rem; }
.media-card { background: white; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--blue-pale); transition: var(--ease-pop); }
.media-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--blue-teal); }
.media-embed { aspect-ratio: 16/9; position: relative; background: var(--dark); overflow: hidden; }
.media-embed iframe { width: 100%; height: 100%; border: none; }
.media-placeholder-box {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--grad-hero); color: white;
  gap: 1rem; padding: 2rem; text-align: center;
}
.media-placeholder-box i { font-size: 3rem; opacity: 0.75; }
.media-placeholder-box p { font-size: 0.9rem; opacity: 0.82; line-height: 1.6; }
.media-info { padding: 1.5rem 1.75rem; }
.media-badge {
  display: inline-block;
  background: var(--blue-pale); color: var(--blue-dark);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 0.25rem 0.75rem;
  border-radius: var(--r-xl); margin-bottom: 0.75rem;
}
.media-info h3 { font-size: 1.25rem; color: var(--dark); margin-bottom: 0.5rem; }
.media-info p { font-size: 0.88rem; color: var(--text-muted); }

/* ===================== PODCAST ===================== */
.podcast-hero {
  min-height: 90vh;
  background: var(--grad-hero);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 6rem 2rem;
  position: relative; overflow: hidden;
}
.podcast-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(46,196,200,0.3) 0%, transparent 60%);
  pointer-events: none;
}
.podcast-cs { position: relative; z-index: 1; max-width: 600px; }
.podcast-cs-icon { font-size: 5rem; margin-bottom: 2rem; display: block; }
.podcast-cs h1 { font-size: clamp(2.8rem, 6vw, 5rem); color: white; margin-bottom: 1rem; }
.podcast-cs p { color: rgba(255,255,255,0.82); font-size: 1.05rem; margin-bottom: 2.5rem; line-height: 1.75; }
.notify-form { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.notify-form input {
  padding: 0.88rem 1.5rem; border-radius: var(--r-xl);
  border: 2px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.12);
  color: white; font-family: var(--font); font-size: 0.95rem;
  outline: none; min-width: 260px; backdrop-filter: blur(10px);
  transition: var(--ease);
}
.notify-form input::placeholder { color: rgba(255,255,255,0.55); }
.notify-form input:focus { border-color: white; background: rgba(255,255,255,0.2); }
.episodes-teaser { padding: 5rem 0; text-align: center; }
.teaser-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.teaser-card {
  background: white; border-radius: var(--r-md); padding: 2rem;
  box-shadow: var(--shadow-sm); border: 1px solid var(--blue-pale);
  text-align: center; transition: var(--ease-pop);
}
.teaser-card:hover { transform: translateY(-6px); border-color: var(--blue-teal); box-shadow: var(--shadow-md); }
.teaser-card-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.teaser-card h4 { font-size: 1rem; color: var(--dark); margin-bottom: 0.5rem; }
.teaser-card p { font-size: 0.85rem; color: var(--text-muted); }

/* ===================== ANIMATIONS ===================== */
[data-aos] { opacity: 0; transform: translateY(40px) scale(0.97); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.22,1,.36,1); }
[data-aos].visible { opacity: 1; transform: translateY(0) scale(1); }
[data-aos-delay="100"].visible { transition-delay: 0.1s; }
[data-aos-delay="200"].visible { transition-delay: 0.2s; }
[data-aos-delay="300"].visible { transition-delay: 0.3s; }

/* ===================== RESPONSIVE ===================== */

/* --- TABLET (< 960px) --- */
@media (max-width: 960px) {
  /* Navbar */
  .nav-menu { display: none; }
  .nav-hamburger { display: flex; }
  .nav-menu.open {
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--blue-dark);
    padding: 6rem 2rem 2rem;
    gap: 0.25rem; z-index: 999;
  }
  .nav-menu.open .nav-link { font-size: 1.2rem; padding: 0.75rem 1rem; color: white; }
  .nav-menu.open .nav-cta { text-align: center; }

  /* Hero — foto sopra, testo sotto */
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 3rem 2rem 5rem;
    gap: 2rem;
  }
  .hero-visual {
    display: flex;
    justify-content: center;
    order: -1;
  }
  .hero-visual::before { display: none; }
  .hero-photo {
    width: 180px;
    height: 220px;
    border-radius: var(--r-lg);
    transform: none;
  }
  .hero-badge { display: none; }
  .hero-btns  { justify-content: center; }
  .hero-social { justify-content: center; }
  .hero-roles  { justify-content: center; }

  /* Sezioni */
  .about-grid   { grid-template-columns: 1fr; gap: 3rem; }
  .about-stats  { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .media-grid   { grid-template-columns: 1fr; }
}

/* --- MOBILE (< 640px) --- */
@media (max-width: 640px) {
  .section { padding: 4.5rem 0; }

  /* Hero foto ancora più compatta */
  .hero-photo { width: 150px; height: 185px; }
  .hero-title { font-size: clamp(2.6rem, 12vw, 4rem); }

  /* About */
  .about-stats  { grid-template-columns: 1fr 1fr; }
  .about-langs  { justify-content: center; }

  /* Blog */
  .posts-grid { grid-template-columns: 1fr; }

  /* Contatti */
  .contact-grid { grid-template-columns: 1fr; }

  /* Social */
  .social-row { flex-wrap: wrap; justify-content: center; }

  /* Podcast teaser */
  .teaser-cards { grid-template-columns: 1fr 1fr; }

  /* Notify form */
  .notify-form { flex-direction: column; align-items: center; }
  .notify-form input { min-width: unset; width: 100%; max-width: 320px; }

  /* Page hero */
  .page-hero { padding: 7rem 0 4rem; }
  .page-hero h1 { font-size: clamp(2.2rem, 10vw, 3.4rem); }

  /* Footer links */
  .footer-links { flex-direction: column; gap: 0.5rem; }
}

/* --- SMALL MOBILE (< 400px) --- */
@media (max-width: 400px) {
  .container { padding: 0 1.25rem; }
  .hero-photo { width: 130px; height: 160px; }
  .hero-roles { gap: 0.35rem; }
  .hero-role  { font-size: 0.75rem; padding: 0.3rem 0.75rem; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .teaser-cards { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .social-pill { font-size: 0.82rem; padding: 0.6rem 1.1rem; }
}
