/* ============================================
   POTEVAMO ESSERE NOI – Main Stylesheet
   Brand: Teal #0d5c6e | Red #e8294c | White #fff
   ============================================ */

:root {
  --teal:        #0d5c6e;
  --teal-dark:   #083f4d;
  --teal-light:  #147a91;
  --red:         #e8294c;
  --red-dark:    #c01f3c;
  --white:       #ffffff;
  --off-white:   #f8f9fa;
  --gray-light:  #e9ecef;
  --gray:        #6c757d;
  --dark:        #1a1a2e;
  --text:        #2d2d2d;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:   0 12px 48px rgba(0,0,0,.15);
  --transition:  .3s ease;
}

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

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

body {
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: .9rem 0;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(13, 92, 110, .97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo in navbar */
.nav-logo .logo-circle {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid rgba(255,255,255,.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 4px;
  transition: transform var(--transition);
}
.nav-logo .logo-circle:hover { transform: scale(1.05); }
.nav-logo .logo-top {
  font-size: .45rem;
  font-weight: 800;
  color: var(--white);
  text-transform: lowercase;
  text-align: center;
  letter-spacing: .02em;
}
.nav-logo .logo-io {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--red);
  text-transform: lowercase;
  letter-spacing: -.02em;
}

/* Logo immagine reale (Potevamo essere noi) */
.logo-img { display: block; width: auto; }
.logo-img-nav { height: 52px; transition: transform var(--transition); }
.nav-logo:hover .logo-img-nav { transform: scale(1.05); }
.logo-img-large { width: 100%; max-width: 260px; height: auto; margin: 0 auto; }
.logo-img-footer { height: 72px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.nav-links a {
  color: rgba(255,255,255,.88);
  font-weight: 600;
  font-size: .92rem;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }

.btn-nav {
  background: var(--red);
  color: var(--white) !important;
  padding: .45rem 1.2rem;
  border-radius: 50px;
  transition: background var(--transition), transform var(--transition) !important;
}
.btn-nav:hover { background: var(--red-dark) !important; transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 50%, #1a6b80 100%);
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(42vw 42vw at 82% 18%, rgba(232,41,76,.30), transparent 70%),
    radial-gradient(40vw 40vw at 10% 88%, rgba(20,122,145,.55), transparent 70%),
    radial-gradient(28vw 28vw at 55% 60%, rgba(255,255,255,.06), transparent 70%);
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, rgba(8,63,77,.4));
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding-block: 4rem;
}
.hero-content {
  max-width: 780px;
  flex: 1 1 auto;
  min-width: 0;
}
.hero-visual {
  display: none;
  flex-shrink: 0;
}
.hero-logo {
  width: clamp(260px, 27vw, 460px);
  filter: drop-shadow(0 24px 60px rgba(0,0,0,.35));
  animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  padding: .3rem .9rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.hero-title .accent { color: var(--red); }

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.88);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-emergency {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: rgba(255,255,255,.8);
  font-size: .88rem;
}
.pulse {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74,222,128,.4);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,.6); }
  70%  { box-shadow: 0 0 0 10px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.scroll-arrow {
  width: 24px; height: 24px;
  border-right: 2px solid rgba(255,255,255,.5);
  border-bottom: 2px solid rgba(255,255,255,.5);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(6px); }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.8rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,41,76,.3);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}
.btn-full { width: 100%; }

/* ============ EMERGENCY BANNER ============ */
.emergency-banner {
  background: var(--red);
  padding: .8rem 0;
  text-align: center;
}
.emergency-banner .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  flex-wrap: wrap;
  color: var(--white);
  font-size: .9rem;
}
.btn-emergency {
  background: var(--white);
  color: var(--red);
  padding: .3rem .9rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: .85rem;
  transition: all var(--transition);
}
.btn-emergency:hover { background: var(--off-white); transform: scale(1.02); }

/* ============ SECTIONS ============ */
.section {
  padding: 5rem 0;
}
.section-dark {
  background: var(--dark);
  color: var(--white);
}
.section-accent {
  background: var(--teal);
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header p {
  max-width: 560px;
  margin: .8rem auto 0;
  color: inherit;
  opacity: .8;
}

.label {
  display: inline-block;
  background: rgba(232,41,76,.12);
  color: var(--red);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .25rem .75rem;
  border-radius: 50px;
  margin-bottom: .8rem;
}
.label-light {
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.2;
}

/* ============ CHI SIAMO – Two column ============ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.col-text h2 { margin-bottom: 1rem; }
.col-text p  { margin-bottom: 1rem; color: var(--gray); }
.col-text p:last-of-type { margin-bottom: 1.5rem; }

/* Logo large (chi siamo) */
.col-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.logo-large {
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}
.logo-top-lg {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  text-transform: lowercase;
  text-align: center;
  line-height: 1.1;
}
.logo-io-lg {
  font-size: 3.4rem;
  font-weight: 900;
  color: var(--red);
  text-transform: lowercase;
  line-height: .9;
}

.values-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  width: 100%;
}
.value-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 600;
  font-size: .95rem;
}
.check {
  color: var(--teal);
  font-weight: 900;
}

/* ============ SERVICES GRID ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: all var(--transition);
}
.service-card:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.2);
}
.service-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: .5rem;
  color: var(--white);
}
.service-card p {
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  line-height: 1.6;
}

/* ============ PETIZIONI ============ */
.section-petizioni {
  background: var(--off-white);
}
.petizioni-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.petizione-card {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  background: var(--white);
  border: 1px solid rgba(0,0,0,.06);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0,0,0,.05);
  transition: transform var(--transition), box-shadow var(--transition);
}
.petizione-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.1);
}
.petizione-icon {
  font-size: 1.6rem;
  line-height: 1;
}
.petizione-card h3 {
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--dark);
  flex-grow: 1;
}
.petizione-cta {
  font-weight: 800;
  font-size: .9rem;
  color: var(--red);
}
.petizione-card:hover .petizione-cta { text-decoration: underline; }

/* ============ PUBBLICAZIONI ============ */
.books-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.book-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform var(--transition), border-color var(--transition);
}
.book-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.2);
}
.book-cover {
  flex-shrink: 0;
  width: 140px;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
  transition: transform var(--transition);
  line-height: 0;
}
.book-cover:hover { transform: scale(1.03); }
.book-cover img {
  width: 100%;
  height: auto;
  display: block;
}
.book-info {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.book-info h3 {
  font-size: 1.1rem;
  color: var(--white);
  line-height: 1.35;
}
.book-author {
  font-size: .85rem;
  font-weight: 700;
  color: var(--red);
}
.book-info p {
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  line-height: 1.55;
  flex-grow: 1;
}
.book-info .btn {
  align-self: flex-start;
  margin-top: .4rem;
  padding: .6rem 1.2rem;
  font-size: .88rem;
}

/* ============ STATS ============ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-card {
  padding: 2rem 1rem;
}
.stat-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: .4rem;
}
.stat-label {
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  font-weight: 600;
}

/* ============ TESTIMONIALS ============ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.quote-mark {
  font-size: 4rem;
  line-height: .5;
  color: var(--teal);
  font-family: Georgia, serif;
  margin-bottom: .5rem;
  opacity: .4;
}
.testimonial-card p {
  font-size: .95rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: .8rem;
}
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: .95rem; }
.testimonial-author span  { font-size: .8rem; color: var(--gray); }

/* ============ DONATION ============ */
.donation-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}
.donation-content h2 { margin-bottom: 1rem; color: var(--white); }
.donation-content p { color: rgba(255,255,255,.75); margin-bottom: 1.5rem; }
.donation-impact {
  list-style: none;
  margin-bottom: 2rem;
}
.donation-impact li {
  padding: .4rem 0;
  color: rgba(255,255,255,.8);
  font-size: .95rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.donation-impact li:last-child { border: none; }
.donation-impact strong { color: var(--white); }

.heart-container {
  text-align: center;
}
.heart {
  font-size: 5rem;
  animation: heartbeat 1.5s ease-in-out infinite;
  display: block;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15%       { transform: scale(1.15); }
  30%       { transform: scale(1); }
  45%       { transform: scale(1.08); }
}
.heart-container p {
  color: rgba(255,255,255,.7) !important;
  font-weight: 600;
  margin-top: .5rem;
}

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}
.contact-grid-simple {
  grid-template-columns: 1fr;
  max-width: 520px;
  margin: 0 auto;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem;
  background: var(--off-white);
  border-radius: var(--radius);
  transition: box-shadow var(--transition);
}
.contact-item:hover { box-shadow: var(--shadow); }
.contact-item.emergency { background: #fff0f3; border: 1px solid #ffd0d9; }
.contact-icon { font-size: 1.4rem; flex-shrink: 0; }
.contact-item strong { display: block; font-size: .95rem; margin-bottom: .2rem; }
.contact-item span   { display: block; font-size: .9rem; color: var(--gray); }
.contact-item small  { display: block; font-size: .78rem; color: var(--gray); opacity: .8; }
.emergency-number    { font-size: 1.8rem !important; font-weight: 900 !important; color: var(--red) !important; }

/* Contact form */
.contact-form {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.form-group {
  margin-bottom: 1.2rem;
}
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: .4rem;
  color: var(--text);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.form-note {
  margin-top: 1rem;
  font-size: .8rem;
  color: var(--gray);
  text-align: center;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 0 3.5rem;
}

.footer-brand .logo-circle-sm {
  width: 64px; height: 64px;
  margin-bottom: 1rem;
  border: 2px solid rgba(255,255,255,.15);
}
.footer-brand .logo-top { font-size: .55rem; }
.footer-brand .logo-io  { font-size: 1.3rem; }
.footer-brand p { font-size: .88rem; line-height: 1.5; }

.footer-links h4, .footer-social h4 {
  color: var(--white);
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-links ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a  {
  font-size: .88rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

.social-links {
  display: flex;
  gap: .6rem;
  margin-bottom: 1.2rem;
}
.social-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 800;
  transition: background var(--transition);
}
.social-btn:hover { background: var(--teal); color: var(--white); }
.footer-legal { font-size: .75rem; line-height: 1.6; }
.footer-legal a { text-decoration: underline; }
.footer-legal a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.2rem 0;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}
.footer-bottom a {
  color: rgba(255,255,255,.5);
  transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--white); }

/* ============ FADE IN ANIMATION ============ */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
/* ============ PAGINE LEGALI ============ */
.legal-header {
  background: var(--teal-dark);
  padding: 1rem 0;
}
.legal-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.legal-header .logo-img { height: 48px; }
.legal-back {
  color: var(--white);
  font-weight: 700;
  font-size: .9rem;
}
.legal-back:hover { text-decoration: underline; }

.legal-main { padding: 3.5rem 0 5rem; }
.legal-content { max-width: 820px; }
.legal-main h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: .5rem;
}
.legal-updated {
  color: var(--gray);
  font-size: .9rem;
  margin-bottom: 2.5rem;
}
.legal-main h2 {
  font-size: 1.25rem;
  color: var(--teal);
  margin: 2.2rem 0 .8rem;
}
.legal-main p { margin-bottom: .8rem; }
.legal-main ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin: .6rem 0 1rem;
}
.legal-main li { margin-bottom: .4rem; }
.legal-main a { color: var(--red); text-decoration: underline; }
.legal-note {
  background: var(--off-white);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  font-size: .92rem;
}
.legal-todo {
  background: #fff8e1;
  border-left: 4px solid #f0a500;
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  font-size: .92rem;
}

@media (max-width: 1024px) {
  .services-grid   { grid-template-columns: repeat(2, 1fr); }
  .stats-grid      { grid-template-columns: repeat(2, 1fr); }
  .footer-inner    { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--teal-dark);
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    transition: right var(--transition);
    z-index: 999;
    box-shadow: -4px 0 30px rgba(0,0,0,.3);
  }
  .nav-links.open { right: 0; }
  .nav-links a     { font-size: 1.1rem; }
  .hamburger       { display: flex; z-index: 1001; }

  .two-col         { grid-template-columns: 1fr; gap: 2.5rem; }
  .services-grid   { grid-template-columns: 1fr; }
  .petizioni-grid  { grid-template-columns: 1fr; }
  .books-grid      { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-grid    { grid-template-columns: 1fr; gap: 2rem; }
  .donation-section { grid-template-columns: 1fr; gap: 2rem; }
  .heart-container { display: none; }
  .footer-inner    { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .stats-grid      { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .hero-inner      { flex-direction: column; align-items: flex-start; padding-block: 2rem; gap: 2rem; }

  /* Logo in cima alla hero su smartphone: primo elemento, poi il resto scorre */
  .hero-visual     { display: flex; order: -1; width: 100%; justify-content: center; }
  .hero-logo       { width: clamp(180px, 55vw, 300px); }
  /* Il testo occupa tutta la larghezza cosi' va a capo senza sforare */
  .hero-content    { width: 100%; max-width: 100%; }
}

@media (max-width: 480px) {
  .hero-actions    { flex-direction: column; align-items: stretch; }
  .btn             { text-align: center; }
  .stats-grid      { grid-template-columns: 1fr 1fr; }
  .book-card       { flex-direction: column; }
  .book-cover      { width: 150px; }
}

/* Hero a due colonne (testo + logo) su desktop */
@media (min-width: 1025px) {
  .hero-visual { display: flex; }
}

/* ============ SCHERMI GRANDI ============ */
@media (min-width: 1600px) {
  html { font-size: 17px; }
  .container    { width: min(1440px, 90%); }
  .services-grid,
  .petizioni-grid,
  .books-grid   { gap: 2rem; }
}

@media (min-width: 1920px) {
  html { font-size: 18px; }
  .container    { width: min(1640px, 86%); }
  .section      { padding: 7rem 0; }
}
