/* ===== padrenostro.it — style.css ===== */
:root {
  --navy: #17324e;
  --cream: #f3ece1;
  --ink: #23303b;
  --muted: #54626d;
  --maxw: 1600px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Mulish', -apple-system, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: clamp(18px, 4vw, 56px); padding-right: clamp(18px, 4vw, 56px); }

/* ===== Header ===== */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 50; background: transparent; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 20px; padding-bottom: 20px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.logo span { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.page-sub .logo { color: #fff; }
.page-sub .logo span { text-shadow: 0 1px 6px rgba(0,0,0,0.35); }
.btn-primary {
  display: inline-flex; align-items: center;
  background: var(--navy); color: #fff; font-weight: 600; font-size: 15px;
  padding: 11px 22px; border-radius: 10px;
  box-shadow: 0 6px 18px rgba(23,50,78,0.18);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(23,50,78,0.28); background: #1e3f60; }

/* ===== Hero ===== */
.hero {
  position: relative; flex: 1 1 auto; display: flex; align-items: center;
  background: #b7c6d3 url('../images/home_hero.png') center 42% / cover no-repeat;
  overflow: hidden;
}
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(244,238,229,0.62) 0%, rgba(244,238,229,0.28) 42%, rgba(244,238,229,0) 62%),
    linear-gradient(180deg, rgba(244,238,229,0.35) 0%, rgba(244,238,229,0) 20%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(32px, 4vw, 72px);
  padding-top: clamp(100px, 9vw, 130px); padding-bottom: clamp(48px, 5vw, 72px);
}
.hero-copy { flex: 1 1 360px; min-width: 300px; max-width: 520px; }
.hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; color: var(--navy);
  font-size: clamp(42px, 6.2vw, 74px); line-height: 1.02; letter-spacing: -0.01em;
  margin: 0 0 22px; text-wrap: balance;
}
.hero-sub { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.55; color: #43525f; margin: 0 0 30px; max-width: 400px; }

/* Store badges */
.stores { display: flex; flex-wrap: wrap; gap: 14px; }
.store-badge { display: flex; align-items: center; gap: 11px; background: #000; color: #fff; padding: 11px 20px; border-radius: 12px; transition: transform .2s ease, box-shadow .2s ease; }
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,0.25); }
.store-badge-text { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge-text small { font-size: 10px; font-weight: 500; opacity: 0.85; }
.store-badge-text strong { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }

/* ===== Phone mockup ===== */
.phone-wrap { flex: 0 0 auto; width: min(300px, 80vw); animation: floatPhone 6s ease-in-out infinite; will-change: transform; }
.phone {
  position: relative; width: 100%; aspect-ratio: 300 / 620;
  background: #0f151b; border-radius: 40px; padding: 11px;
  box-shadow: 0 30px 60px -20px rgba(20,35,55,0.5), 0 10px 24px rgba(20,35,55,0.25);
}
.phone-screen { position: relative; width: 100%; height: 100%; background: #f5efe4; border-radius: 30px; overflow: hidden; display: flex; flex-direction: column; }
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px; background: #0f151b; border-radius: 12px; z-index: 5; }
.statusbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px 4px; font-size: 11px; font-weight: 700; color: var(--navy); }
.statusbar-icons { display: flex; gap: 5px; align-items: center; }
.app-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px 8px; }
.app-title { font-weight: 700; font-size: 14px; color: var(--navy); }
.lang-pill { margin: 2px 16px 6px; border: 1px solid rgba(23,50,78,0.14); border-radius: 9px; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; background: #fff; }
.lang-name { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ink); }
.flag { display: inline-flex; width: 16px; height: 11px; border-radius: 2px; overflow: hidden; border: 0.5px solid rgba(0,0,0,0.1); }
.flag span { flex: 1; }
.flag span:nth-child(1) { background: #4a8a52; }
.flag span:nth-child(2) { background: #f2f2f2; }
.flag span:nth-child(3) { background: #c0433f; }
.prayer { flex: 1; padding: 6px 14px; overflow: hidden; text-align: center; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 14px; line-height: 1.34; color: #2a3540; }
.scrubber { padding: 2px 18px; }
.scrubber-track { position: relative; height: 3px; background: rgba(23,50,78,0.15); border-radius: 2px; }
.scrubber-fill { position: absolute; left: 0; top: 0; height: 100%; width: 22%; background: var(--navy); border-radius: 2px; }
.scrubber-knob { position: absolute; left: 22%; top: 50%; transform: translate(-50%,-50%); width: 9px; height: 9px; background: var(--navy); border-radius: 50%; }
.scrubber-times { display: flex; justify-content: space-between; font-size: 9px; color: #8a949c; margin-top: 5px; font-weight: 600; }
.controls { display: flex; align-items: center; justify-content: space-between; padding: 6px 24px 8px; color: #5c6873; }
.play-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; gap: 4px; }
.play-btn span { width: 4px; height: 15px; background: #fff; border-radius: 1px; }
.voice-row { border-top: 1px solid rgba(23,50,78,0.1); padding: 9px 16px 12px; display: flex; align-items: center; justify-content: space-between; }
.voice-label { font-size: 12px; font-weight: 600; color: #5c6873; }
.voice-value { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink); }

/* ===== Features ===== */
.features { flex: 1 1 280px; min-width: 260px; max-width: 360px; display: flex; flex-direction: column; gap: 26px; }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; background: rgba(23,50,78,0.10); display: flex; align-items: center; justify-content: center; color: var(--navy); }
.feature h3 { margin: 0 0 4px; font-size: 17px; font-weight: 700; color: var(--navy); }
.feature p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ===== Banner / Footer ===== */
.banner { background: var(--navy); color: #fff; }
.banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding-top: clamp(34px, 4.5vw, 52px); padding-bottom: clamp(34px, 4.5vw, 52px); }
.banner-quote { flex: 1 1 420px; min-width: 260px; }
.quote { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: clamp(19px, 2.2vw, 26px); line-height: 1.4; margin: 0 0 8px; color: #f4ecdd; }
.quote-ref { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; color: rgba(255,255,255,0.65); }
.banner-cross { flex: 0 0 auto; opacity: 0.9; }
.banner-foot { border-top: 1px solid rgba(255,255,255,0.12); }
.banner-foot-inner { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,0.6); padding-top: 16px; padding-bottom: 16px; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { color: rgba(255,255,255,0.7); transition: color .2s ease; }
.foot-links a:hover { color: #fff; }

/* ===== Animations ===== */
@keyframes floatPhone {
  0%, 100% { transform: rotate(7deg) translateY(0); }
  50% { transform: rotate(7deg) translateY(-10px); }
}
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }
.reveal[data-delay="4"] { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone-wrap { animation: none; transform: rotate(7deg); }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Sottopagine (Privacy, Contatti) ===== */
.subhero {
  position: relative; flex: 1 1 auto; display: flex; align-items: flex-start; justify-content: center;
  background: #b7c6d3 url('../images/home_hero.png') center 42% / cover no-repeat; overflow: hidden;
}
.subhero .hero-scrim { background: rgba(15,25,40,0.28); }
.subhero .container { padding-top: clamp(120px, 12vw, 170px); padding-bottom: clamp(56px, 7vw, 96px); position: relative; z-index: 1; }
.readbox {
  width: 100%; max-width: 820px; margin: 0 auto;
  background: rgba(255,255,255,0.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.55); border-radius: 20px;
  padding: clamp(28px, 4vw, 56px);
  box-shadow: 0 30px 70px -30px rgba(20,35,55,0.5);
}
.page-title { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; color: var(--navy); font-size: clamp(34px, 5vw, 54px); line-height: 1.05; margin: 0 0 8px; letter-spacing: -0.01em; }
.page-meta { color: var(--muted); font-size: 14px; margin: 0 0 30px; }
.readbox h2 { font-size: 20px; font-weight: 700; color: var(--navy); margin: 30px 0 10px; }
.readbox h2:first-of-type { margin-top: 0; }
.readbox p, .readbox li { font-size: 15.5px; line-height: 1.72; color: #3a4855; }
.readbox ul { padding-left: 22px; margin: 10px 0; }
.readbox li { margin-bottom: 6px; }
.readbox a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.readbox a:hover { color: #1e3f60; }

/* Contatti */
.contact-box { max-width: 620px; text-align: center; }
.contact-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); margin-bottom: 24px; }
.contact-logo span { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: clamp(30px, 4vw, 40px); letter-spacing: -0.01em; }
.contact-box p { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6; color: #3a4855; margin: 0 auto 32px; max-width: 480px; }
.btn-big {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--navy); color: #fff; font-size: clamp(17px, 1.6vw, 19px); font-weight: 700;
  padding: 20px 44px; border-radius: 15px;
  box-shadow: 0 16px 34px -12px rgba(23,50,78,0.5);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-big:hover { transform: translateY(-3px); background: #1e3f60; box-shadow: 0 22px 42px -12px rgba(23,50,78,0.55); }
.readbox a.btn-big { color: #fff; text-decoration: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero-scrim { background: linear-gradient(180deg, rgba(243,236,225,0.84) 0%, rgba(243,236,225,0.72) 55%, rgba(243,236,225,0.8) 100%); }
  .hero-inner { padding-top: 110px; padding-bottom: 56px; }
  .hero-copy { text-align: center; max-width: 560px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .stores { justify-content: center; }
  .features { max-width: 560px; }
}
@media (max-width: 520px) {
  .hero-title { font-size: clamp(38px, 12vw, 52px); }
  .banner-cross { display: none; }
}
