/*
Theme Name: Ritorno alle Origini — Gutenberg
Theme URI: https://wordpress.org/
Author: Progetto Ritorno alle Origini
Description: Tema WordPress per la landing page Ritorno alle Origini. Contenuti e immagini modificabili in Gutenberg, senza Elementor. Contiene una pagina bozza di partenza.
Version: 1.9.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: ritorno-alle-origini-gutenberg
License: GPL-2.0-or-later
*/
:root{--rto-forest:#17362b;--rto-forest-dark:#0e251d;--rto-sage:#e8efe5;--rto-cream:#f7f4eb;--rto-ink:#17342b;--rto-muted:#64746c;--rto-gold:#bd9c64;--rto-rule:#dfe5da}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--rto-ink);background:#fff;font-family:system-ui,-apple-system,'Segoe UI',sans-serif;line-height:1.7}a{color:inherit}img{max-width:100%;height:auto}h1,h2,h3,h4{font-family:Georgia,'Times New Roman',serif;line-height:1.17;letter-spacing:-.025em;margin:0 0 .7em}h1{font-size:clamp(3.5rem,7vw,6.8rem)}h2{font-size:clamp(2.3rem,4.4vw,4.1rem)}h3{font-size:clamp(1.3rem,2vw,1.8rem)}p{margin:0 0 1.15em}.rto-site-header{position:sticky;top:0;z-index:50;background:rgba(248,247,240,.97);border-bottom:1px solid #e4e8dd;backdrop-filter:blur(12px)}.rto-site-header .wrap{max-width:1200px;margin:auto;padding:14px 24px;display:flex;align-items:center;justify-content:space-between;gap:20px}.rto-brand{text-decoration:none;font-family:Georgia,serif;font-size:1.3rem;letter-spacing:-.02em}.rto-top-link{background:var(--rto-forest);color:#fff;text-decoration:none;padding:11px 18px;border-radius:100px;font-size:.82rem;font-weight:700}.rto-site-footer{padding:35px 24px;text-align:center;background:var(--rto-forest-dark);color:#c9d8cf;font-size:.82rem}.rto-simple-content{max-width:1000px;margin:60px auto;padding:0 24px;min-height:50vh}.rto-simple-content>h1{font-size:clamp(2rem,5vw,3.6rem)}
.rto-landing{width:100%;overflow:hidden}.rto-landing .rto-section{padding:clamp(70px,8vw,118px) max(24px,calc((100vw - 1160px)/2));scroll-margin-top:90px}.rto-landing .rto-section> .wp-block-group{max-width:100%}.rto-landing .rto-eyebrow{text-transform:uppercase;letter-spacing:.18em;font-size:.74rem;line-height:1.4;font-weight:750;color:#a17e4d;margin:0 0 20px}.rto-landing h2{max-width:850px}.rto-landing .rto-section>p:not(.rto-eyebrow){max-width:750px;color:var(--rto-muted);font-size:1.05rem}.rto-landing .rto-small-note{font-size:.82rem!important;color:var(--rto-muted)!important;margin-top:20px}.rto-landing .wp-block-columns{gap:20px;margin:35px 0 0}.rto-landing .wp-block-column{min-width:0;display:flex;flex-direction:column}.rto-landing .wp-block-column>.wp-block-group{flex:1}.rto-landing .wp-block-buttons{margin:20px 0 0}.rto-landing .wp-block-button__link{font-family:inherit;font-size:.87rem;font-weight:750;text-decoration:none;border-radius:7px;padding:14px 24px;display:inline-flex;align-items:center;justify-content:center;min-height:48px;transition:transform .15s ease,background .15s ease}.rto-landing .rto-btn-primary .wp-block-button__link{background:var(--rto-forest);color:#fff}.rto-landing .rto-btn-secondary .wp-block-button__link{background:transparent;color:var(--rto-forest);border:1px solid var(--rto-forest)}.rto-landing .wp-block-button__link:hover{transform:translateY(-2px)}.rto-landing .rto-card{border:1px solid #e0e5dc;border-radius:14px;padding:28px;background:#fff;box-shadow:0 16px 30px -30px #18392a}.rto-landing .rto-card h3{margin-top:12px}.rto-landing .rto-card p{font-size:.94rem;color:#607165}.rto-landing .rto-benefit-number{color:#b1986d!important;font-weight:800!important;font-size:1.1rem!important}.rto-landing .rto-hero{background:radial-gradient(ellipse at 100% 0%,rgba(183,153,98,.25),transparent 35%),linear-gradient(120deg,#19392d,#0b241b 75%);color:#fff;min-height:675px;display:flex;flex-direction:column;justify-content:center}.rto-landing .rto-hero h1{max-width:1000px;margin-bottom:12px}.rto-landing .rto-hero .rto-hero-sub{font-family:system-ui,sans-serif;font-size:clamp(1.2rem,2.1vw,1.8rem);font-weight:400;color:#e9e8d9;max-width:720px;line-height:1.4;letter-spacing:-.03em}.rto-landing .rto-hero>p:not(.rto-eyebrow){color:#d5e2d9;max-width:685px}.rto-landing .rto-hero .rto-eyebrow{color:#caae7a}.rto-landing .rto-hero .rto-btn-primary .wp-block-button__link{background:#c2a677;color:#132f23}.rto-landing .rto-hero-stats{max-width:700px;margin-top:60px!important;border-top:1px solid rgba(255,255,255,.23);padding-top:20px}.rto-landing .rto-hero-stats>.wp-block-column{border-right:1px solid rgba(255,255,255,.2)}.rto-landing .rto-hero-stats h2{font:600 clamp(1.7rem,3vw,2.8rem) Georgia,serif;margin:0 0 4px}.rto-landing .rto-hero-stats p{font-size:.74rem;opacity:.8;color:#fff}.rto-landing .rto-intro{background:var(--rto-cream)}.rto-landing .rto-benefits{background:#fff}.rto-landing .rto-medicines{background:#eef2e9}.rto-landing .rto-medicine{padding:14px}.rto-landing .rto-medicine h3,.rto-landing .rto-medicine p{margin-left:12px;margin-right:12px}.rto-landing .rto-medicine .wp-block-image{margin:0 0 24px}.rto-landing .rto-medicine img{width:100%;height:240px;object-fit:cover;border-radius:8px}.rto-landing .rto-medicine .rto-eyebrow{font-size:.65rem}.rto-landing .rto-detox{background:linear-gradient(125deg,#163728,#274b38);color:#fff}.rto-landing .rto-detox .rto-eyebrow{color:#c6a976}.rto-landing .rto-detox>p:not(.rto-eyebrow){color:#d5e3d8}.rto-landing .rto-detox h4{font:700 .82rem system-ui,sans-serif;letter-spacing:.16em;margin-top:32px}.rto-landing .rto-program{background:var(--rto-cream)}.rto-landing .rto-timeline{border-left:2px solid #bac9bd;padding-left:24px;margin-top:45px}.rto-landing .rto-day{position:relative;padding:0 0 28px 20px;max-width:770px}.rto-landing .rto-day:before{content:'';width:12px;height:12px;border-radius:50%;background:#547864;position:absolute;left:-31px;top:3px;border:3px solid var(--rto-cream);box-sizing:content-box}.rto-landing .rto-day h3{margin:0 0 7px}.rto-landing .rto-day .rto-eyebrow{margin-bottom:6px}.rto-landing .rto-day p:not(.rto-eyebrow){color:#64736b;font-size:.94rem}.rto-landing .rto-calendar-wrap{padding:28px;border:1px solid #dde7da;border-radius:15px;background:#f7faf5;max-width:850px}.rto-landing .rto-calendar-wrap h3{margin:0 0 22px}.rto-landing .rto-calendar-wrap .mc-main{max-width:720px;margin:auto}.rto-landing .rto-date-card .rto-eyebrow{font-size:.65rem}.rto-landing .rto-date-card{background:#f7faf5}.rto-landing .rto-center{background:#eef2e9}.rto-landing .rto-gallery-card{padding:12px 12px 22px;background:white;border:1px solid #e0e7dc;border-radius:13px;overflow:hidden}.rto-landing .rto-gallery-card h3,.rto-landing .rto-gallery-card>p{margin:12px 14px 0}.rto-landing .rto-gallery-card>p{color:var(--rto-muted)}.rto-landing .rto-team{background:#fff}.rto-landing .rto-team-member{padding:12px 12px 30px}.rto-landing .rto-team-member .wp-block-image img{width:100%;max-height:410px;object-fit:cover;border-radius:9px}.rto-landing .rto-team-member>p,.rto-landing .rto-team-member>h3{margin-left:16px;margin-right:16px}.rto-landing .rto-selection{background:var(--rto-forest);color:#fff}.rto-landing .rto-selection>p:not(.rto-eyebrow){color:#d5e2d9}.rto-landing .rto-selection .rto-step{border:1px solid rgba(255,255,255,.22);padding:27px;border-radius:12px}.rto-landing .rto-selection .rto-step p{color:#d5e2d9}.rto-landing .rto-selection .rto-step-number{font-size:1.1rem;font-weight:800;color:#c9af80!important}.rto-landing .rto-selection .rto-btn-primary .wp-block-button__link{background:#c7aa7d;color:#143026}.rto-landing .rto-investment{background:var(--rto-cream)}.rto-landing .rto-price-card{background:white;border:1px solid #d7e2d7;padding:clamp(25px,4vw,55px);max-width:720px;border-radius:16px;box-shadow:0 24px 80px -60px #092b16;margin:35px auto 0}.rto-landing .rto-price-card h2{font-size:clamp(3rem,6vw,5rem);margin:10px 0}.rto-landing .rto-price-card h3{font-size:1.6rem;margin-top:32px}.rto-landing .rto-stories{background:#fff}.rto-landing .rto-testimonial{background:#f2f5ef;max-width:850px}.rto-landing .rto-faq{background:#eef2e9}.rto-landing .wp-block-details{background:white;border:1px solid #dce7db;border-radius:10px;padding:15px 22px;margin:10px 0}.rto-landing .wp-block-details summary{font-weight:700;cursor:pointer}.rto-landing .wp-block-details p{margin:16px 0 0;color:#596b60}.rto-landing .rto-apply{background:#fff}.rto-landing .rto-form-card{max-width:780px;background:#f7faf5;border:1px solid #dae7d8;border-radius:15px;padding:clamp(25px,4vw,45px)}.rto-landing .rto-closing{background:#18392b;color:#fff;text-align:center;padding-top:55px;padding-bottom:55px}.rto-landing .rto-closing h3{margin-bottom:7px}.rto-landing .rto-closing p{color:#c4d4c8!important;margin:auto}
/* Native Gutenberg galleries are enhanced into sliders on the public site; edit all photos normally in Gutenberg. */
.rto-landing .rto-slider{margin:0;position:relative;overflow:hidden;border-radius:9px;background:#edf1e8;min-height:220px}.rto-landing .rto-slider>figure.wp-block-image{margin:0;max-width:none;width:100%}.rto-landing .rto-slider>figure.wp-block-image img{display:block;width:100%;height:310px;object-fit:cover}.rto-landing .rto-slider.is-initialized>figure.wp-block-image{display:none}.rto-landing .rto-slider.is-initialized>figure.wp-block-image.is-active{display:block}.rto-slider-nav{position:absolute;inset:auto 0 16px;display:flex;align-items:center;justify-content:space-between;pointer-events:none;padding:0 12px;z-index:2}.rto-slider-button{border:0;border-radius:100px;background:rgba(16,44,31,.86);color:white;width:38px;height:38px;font-size:20px;display:grid;place-items:center;cursor:pointer;pointer-events:auto}.rto-slider-dots{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);display:flex;gap:6px;z-index:3}.rto-slider-dots button{border:0;width:8px;height:8px;background:#dae1d7;border-radius:50%;padding:0;cursor:pointer}.rto-slider-dots button.is-current{background:#c7a979;width:22px;border-radius:10px}
@media(max-width:780px){.rto-landing .rto-section{padding:65px 22px}.rto-landing .wp-block-columns{display:block;margin-top:24px}.rto-landing .wp-block-column{margin-bottom:16px}.rto-landing .rto-hero{min-height:630px}.rto-landing .rto-hero-stats{display:flex;gap:5px}.rto-landing .rto-hero-stats .wp-block-column{width:33.333%;margin:0;text-align:center}.rto-landing .rto-hero-stats h2{font-size:1.55rem}.rto-landing .rto-hero-stats p{font-size:.66rem}.rto-landing .rto-slider>figure.wp-block-image img{height:260px}.rto-site-header .wrap{padding:11px 16px}.rto-top-link{font-size:.71rem;padding:9px 12px}.rto-brand{font-size:1.06rem}}



/* ===== COPERTINA V9: nessun riquadro fotografico o HTML aggiuntivo ===== */
.rto-landing .rto-hero {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background-color:#143427;
  background-size:cover !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;
  background-image:linear-gradient(115deg,#102e21,#173b2b);
  min-height:675px;
}
/* Single pseudo-element, sized to the ENTIRE hero — Gutenberg does not constrain it. */
.rto-landing .rto-hero.has-rto-cover-photos::before {
  content:"" !important;
  display:block !important;
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  margin:0 !important;
  border:0 !important;
  padding:0 !important;
  border-radius:0 !important;
  background-position:center center;
  background-repeat:no-repeat;
  background-size:cover;
  z-index:0;
  pointer-events:none;
}
/* Always keep the Gutenberg text and buttons above the decorative pseudo-element. */
.rto-landing .rto-hero.has-rto-cover-photos > * {
  position:relative;
  z-index:1;
}
.rto-landing .rto-hero h1,
.rto-landing .rto-hero h2,
.rto-landing .rto-hero h3,
.rto-landing .rto-hero .rto-hero-stats h2 {
  color:#fff !important;
  opacity:1 !important;
  visibility:visible !important;
  text-shadow:0 2px 18px rgba(0,0,0,.25);
}
.rto-landing .rto-hero p,
.rto-landing .rto-hero .rto-hero-sub {
  color:#f2f6f2 !important;
  opacity:1 !important;
  visibility:visible !important;
}
.rto-landing .rto-hero .rto-eyebrow {color:#f3d59b !important;}
.rto-landing .rto-hero .rto-btn-primary .wp-block-button__link {
  background:#d1b17e !important;
  color:#173529 !important;
}
@media(max-width:780px) {
  .rto-landing .rto-hero{min-height:630px}
  .rto-landing .rto-hero h1{font-size:clamp(2.8rem,12vw,5.4rem)}
}
