/*
Theme Name: Quadrozzi Chinesiologo
Theme URI: https://quadrozzi.it
Author URI: https://quadrozzi.it
Author: Davide Podagrosi
Author URI: https://quadrozzi.it
Description: Tema professionale per Dott. Simone Quadrozzi, Chinesiologo – Frosinone
Version: 1.5.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: quadrozzi
Tags: health, professional, one-page
*/

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

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

body {
  font-family: 'DM Sans', sans-serif;
  color: #1a2332;
  background: #f7f8fa;
  line-height: 1.7;
}

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

a { color: #1a5c8a; text-decoration: none; }
a:hover { text-decoration: underline; }

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4 {
  font-family: 'DM Serif Display', serif;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: #1a2332;
}

h1 { font-size: clamp(2rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 1.75rem); }
h3 { font-size: 1.125rem; font-weight: 500; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* =========================================================
   LAYOUT
   ========================================================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-tag {
  font-size: 11px;
  font-weight: 500;
  color: #1a5c8a;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  display: block;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  color: #1a2332;
  margin-bottom: 32px;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  text-decoration: none;
}

.btn:hover { opacity: 0.88; text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn-primary { background: #1a5c8a; color: #fff; }
.btn-ghost { background: transparent; color: #1a5c8a; border: 1.5px solid #1a5c8a; }
.btn-white { background: #fff; color: #1a5c8a; }

/* =========================================================
   NAVIGATION
   ========================================================= */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e3e8ef;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 38px;
  height: 38px;
  background: #1a5c8a;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark svg { width: 22px; height: 22px; }

.logo-text {
  font-family: 'DM Serif Display', serif;
  font-size: 17px;
  color: #1a2332;
  letter-spacing: -0.3px;
}

.logo-text span { color: #1a5c8a; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { font-size: 14px; color: #4a5568; font-weight: 400; text-decoration: none; transition: color 0.2s; }
.main-nav a:hover { color: #1a5c8a; }
.main-nav .btn-primary { color: #fff; padding: 9px 20px; font-size: 13px; }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 22px; height: 2px; background: #1a2332; margin: 5px 0; transition: all 0.3s; border-radius: 2px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background: #fff;
  padding: 80px 0 0;
  border-bottom: 1px solid #e3e8ef;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 253px;
  gap: 48px;
  align-items: end;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eaf4fb;
  color: #1a5c8a;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 22px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: #1a5c8a;
  border-radius: 50%;
}

.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: italic; color: #1a5c8a; }

.hero-sub {
  font-size: 16px;
  color: #5a6a7e;
  line-height: 1.75;
  font-weight: 300;
  max-width: 440px;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-actions-desktop { margin-bottom: 56px; }
.hero-actions-mobile { display: none; padding: 24px; }

.hero-photo {
  width: 100%;
  max-width: 253px;
  width: 253px;
  flex-shrink: 0;
  height: 380px;
  background: #daeaf5;
  border-radius: 16px 16px 0 0;
  position: relative;
  overflow: hidden;
  align-self: flex-end;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 80px;
  color: #1a5c8a;
  opacity: 0.15;
}

.hero-photo-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #1a5c8a;
  border: 1px solid #e3e8ef;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* =========================================================
   STATS BAR
   ========================================================= */
.stats-bar {
  background: #1a2332;
  padding: 32px 0;
}

.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.stat {
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.stat:last-child { border-right: none; }

.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 2.2rem;
  color: #fff;
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-num span { color: #5aaddc; }

.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =========================================================
   LOCATION STRIP
   ========================================================= */
.location-strip {
  background: #f0f4f8;
  border-bottom: 1px solid #e3e8ef;
  padding: 16px 0;
}

.location-strip .container {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.loc-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #5a6a7e;
}

.loc-item svg { color: #1a5c8a; width: 16px; height: 16px; flex-shrink: 0; }

/* =========================================================
   SERVICES
   ========================================================= */
.services { padding: 80px 0; background: #f7f8fa; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.service-card {
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 12px;
  padding: 28px 24px;
  border-top: 3px solid #1a5c8a;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26,92,138,0.08);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: #eaf4fb;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #1a5c8a;
}

.service-icon svg { width: 24px; height: 24px; }

.service-name {
  font-size: 15px;
  font-weight: 500;
  color: #1a2332;
  margin-bottom: 8px;
  font-family: inherit;
}

.service-desc {
  font-size: 13px;
  color: #5a6a7e;
  line-height: 1.65;
  font-weight: 300;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  background: #fff;
  border-top: 1px solid #e3e8ef;
  border-bottom: 1px solid #e3e8ef;
  padding: 80px 0;
}

.about .container {
  max-width: 760px;
  display: grid;
  
  
  align-items: start;
}

.about-photo {
  width: 260px;
  height: 300px;
  background: #daeaf5;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.about-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 64px;
  color: #1a5c8a;
  opacity: 0.2;
}

.about-bio {
  font-size: 15px;
  color: #5a6a7e;
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 24px;
}

.credentials { display: flex; flex-direction: column; gap: 10px; }

.cred {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #4a5568;
}

.cred svg { color: #1a5c8a; width: 18px; height: 18px; flex-shrink: 0; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials { padding: 80px 0; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial {
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 12px;
  padding: 28px;
}

.t-stars { color: #f59e0b; font-size: 14px; margin-bottom: 12px; letter-spacing: 2px; }

.t-text {
  font-size: 14px;
  color: #5a6a7e;
  line-height: 1.7;
  font-style: italic;
  font-weight: 300;
  margin-bottom: 16px;
  font-family: 'DM Serif Display', serif;
}

.t-author { font-size: 13px; font-weight: 500; color: #1a2332; }
.t-role { font-size: 12px; color: #7a8a9e; }

/* =========================================================
   CTA SECTION
   ========================================================= */
.cta-section {
  background: #1a5c8a;
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 { color: #fff; margin-bottom: 14px; }

.cta-section p {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
  font-weight: 300;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact { padding: 80px 0; background: #f7f8fa; }

.contact .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 16px; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 10px;
  padding: 18px 20px;
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  background: #eaf4fb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a5c8a;
  flex-shrink: 0;
}

.contact-item-icon svg { width: 20px; height: 20px; }
.contact-item-label { font-size: 11px; color: #7a8a9e; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.contact-item-value { font-size: 14px; color: #1a2332; font-weight: 500; }

.contact-form { background: #fff; border: 1px solid #e3e8ef; border-radius: 12px; padding: 32px; }

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #4a5568;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: #1a2332;
  background: #fff;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus { border-color: #1a5c8a; box-shadow: 0 0 0 3px rgba(26,92,138,0.08); }

.form-group textarea { resize: vertical; min-height: 120px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: #1a2332;
  padding: 40px 0;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-family: 'DM Serif Display', serif;
  font-size: 15px;
  color: rgba(255,255,255,0.5);
}

.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.65); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 0; }
  .hero { padding: 48px 0 0; }
  .hero-content { padding: 0 24px; }
  .hero-actions-desktop { display: none; }
  .hero-actions-mobile { display: flex; }
  .hero-photo {
    max-width: 100%;
    width: 100%;
    height: 70vw;
    min-height: 320px;
    max-height: 480px;
    border-radius: 0;
    margin-top: 0;
    flex-shrink: 0;
  }
  .hero-photo img {
    object-position: center 20%;
  }
  .about .container { max-width: 760px; grid-template-columns: 1fr; }
  .about-photo { width: 100%; }
  .contact .container { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .main-nav { display: none; }
  .main-nav.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid #e3e8ef; padding: 20px 24px; gap: 16px; z-index: 99; }
  .hamburger { display: block; }
  .stats-bar .container { grid-template-columns: 1fr; gap: 20px; }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 20px; }
  .stat:last-child { border-bottom: none; padding-bottom: 0; }
  .location-strip .container { gap: 16px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-badge { margin-left: 0; }
}
