:root{--hero-pad-m:16px;}
/*
Theme Name: Sostituzioni Docenti – Sito Vetrina
Theme URI: https://example.com/
Author: Template Sostituzioniscuola
Description: Tema WordPress leggero e moderno (one-page) per promuovere il Sistema Gestione Sostituzioni Docenti per scuole pubbliche e private.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sostituzioni-vetrina
Tags: one-column, custom-logo, custom-menu, featured-images, blog, education
*/

:root{
  --bg:#f5f8ff;
  --bg2:#eef4ff;
  --card:#ffffff;
  --text:#0f172a;
  --muted:rgba(15,23,42,.74);
  --line:rgba(15,23,42,.12);
  --accent:#1e64ff;
  --accent2:#2bb6ff;
  --good:#0ea5e9;
  --shadow:0 18px 40px rgba(2,6,23,.10);
  --r:18px;
  --max:1140px;
  --pad:24px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(900px 500px at 15% 15%, rgba(30,100,255,.14), transparent 60%),
    radial-gradient(900px 500px at 85% 25%, rgba(43,182,255,.14), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}
a{color:inherit}
img{max-width:100%;height:auto}
.container{max-width:var(--max); margin:0 auto; padding:0 var(--pad)}

.btn{
  color:var(--text);
  display:inline-flex; align-items:stretch; justify-content:center;
  gap:10px; padding:12px 16px; border-radius:14px;
  border:1px solid var(--line); background:rgba(255,255,255,.8);
  text-decoration:none; font-weight:750;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn.primary{
  background:linear-gradient(135deg, rgba(30,100,255,.14), rgba(43,182,255,.18));
  border-color:rgba(30,100,255,.22);
}
.btn:hover{transform:translateY(-1px); box-shadow:0 10px 18px rgba(2,6,23,.08)}
.pill{
  display:inline-flex; gap:8px; align-items:stretch; padding:6px 10px; border-radius:999px;
  border:1px solid var(--line); background:rgba(255,255,255,.7); color:var(--muted); font-size:14px; font-weight:650
}

/* Header */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(15,23,42,.08);
}
.header-inner{display:flex; align-items:stretch; justify-content:space-between; padding:14px 0; gap:14px}
.brand{display:flex; align-items:stretch; gap:12px}
.brand .logo{width:36px;height:36px;border-radius:10px; background:linear-gradient(135deg, rgba(30,100,255,.35), rgba(43,182,255,.28)); border:1px solid rgba(30,100,255,.18); box-shadow:var(--shadow)}
.brand .name{font-weight:900; letter-spacing:.2px}

.nav{
  display:flex; gap:18px; align-items:stretch; flex-wrap:wrap;
}
.nav a{color:rgba(15,23,42,.72); text-decoration:none; font-weight:750; font-size:14px}
.nav a:hover{color:var(--text)}
.header-cta{display:flex; gap:10px; align-items:stretch}

.hamb{
  display:none;
  border:1px solid var(--line);
  background:rgba(255,255,255,.85);
  border-radius:14px;
  padding:10px 12px;
  cursor:pointer;
}
.hamb:focus{outline:2px solid rgba(30,100,255,.35); outline-offset:2px}
.hamb svg{display:block}

/* Hero */
.hero{padding:72px 0 26px}
.hero-grid{display:grid; grid-template-columns: 1.2fr .8fr; gap:34px; align-items:stretch}
.hero h1{font-size:50px; line-height:1.03; margin:14px 0 14px; letter-spacing:-.8px}
.hero p{color:var(--muted); font-size:18px; line-height:1.7; margin:0 0 18px}
.hero-actions{display:flex; gap:12px; flex-wrap:wrap; margin:14px 0}
.hero-badges{display:flex; gap:10px; flex-wrap:wrap}

.panel{
  border:1px solid rgba(15,23,42,.10);
  background:rgba(255,255,255,.75);
  border-radius:var(--r);
  box-shadow:var(--shadow);
  padding:18px;
}

.hero-media{
  border-radius:calc(var(--r) + 6px);
  border:1px solid rgba(15,23,42,.10);
  box-shadow:var(--shadow);
  overflow:hidden;
  background:#fff;
}


/* Sections */
.section{padding:54px 0}
.section h2{font-size:32px; margin:0 0 10px; letter-spacing:-.3px}
.section .lead{color:var(--muted); margin:0 0 22px; line-height:1.7}

.grid-3{display:grid; grid-template-columns: repeat(3, 1fr); gap:16px}
.card{
  border:1px solid rgba(15,23,42,.10);
  background:rgba(255,255,255,.82);
  border-radius:var(--r);
  padding:18px;
  box-shadow:0 10px 24px rgba(2,6,23,.06);
}
.card h3{margin:0 0 8px}
.card p{margin:0; color:var(--muted); line-height:1.7}
.icon{
  width:42px; height:42px; border-radius:14px;
  display:flex; align-items:stretch; justify-content:center;
  border:1px solid rgba(30,100,255,.18);
  background:linear-gradient(135deg, rgba(30,100,255,.12), rgba(43,182,255,.12));
  margin-bottom:12px;
}

.split{display:grid; grid-template-columns: 1fr 1fr; gap:18px; align-items:start}
.steps{display:grid; gap:12px}
.step{display:flex; gap:12px; align-items:flex-start; border:1px solid rgba(15,23,42,.10); border-radius:var(--r); padding:14px 16px; background:rgba(255,255,255,.78)}
.step .num{width:30px;height:30px;border-radius:10px; display:flex; align-items:stretch; justify-content:center; font-weight:900; background:rgba(30,100,255,.10); border:1px solid rgba(30,100,255,.18)}
.step p{margin:2px 0 0; color:var(--muted)}

.pricing{display:grid; grid-template-columns: repeat(3, 1fr); gap:16px}
.price-card{position:relative}
.price-card.featured{transform:translateY(-6px)}
.price{font-size:40px; font-weight:950; margin:8px 0}
.small{color:var(--muted); font-size:14px}
.ul{margin:12px 0 0; padding:0 0 0 18px; color:var(--muted); line-height:1.8}
.badge{
  position:absolute; top:14px; right:14px;
  padding:6px 10px; border-radius:999px;
  border:1px solid rgba(30,100,255,.20);
  background:rgba(30,100,255,.08); color:var(--accent); font-size:12px; font-weight:900;
}

.faq{display:grid; gap:10px}
.faq details{
  border:1px solid rgba(15,23,42,.10);
  border-radius:var(--r);
  padding:14px 16px;
  background:rgba(255,255,255,.78);
}
.faq summary{cursor:pointer; font-weight:900}
.faq p{margin:10px 0 0; color:var(--muted); line-height:1.8}

.cta{
  border:1px solid rgba(30,100,255,.18);
  background:linear-gradient(135deg, rgba(30,100,255,.10), rgba(43,182,255,.12));
  border-radius:calc(var(--r) + 4px);
  padding:22px;
  display:flex; gap:16px; align-items:stretch; justify-content:space-between; flex-wrap:wrap
}

/* Contact Form 7 tweaks */
.wpcf7 form{margin-top:10px}
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 textarea{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.14);
  background:#fff;
  font-family:var(--font);
  font-size:15px;
}
.wpcf7 textarea{min-height:120px}
.wpcf7 input[type="submit"]{
  border-radius:14px;
  padding:12px 16px;
  border:1px solid rgba(30,100,255,.22);
  background:linear-gradient(135deg, rgba(30,100,255,.14), rgba(43,182,255,.18));
  font-weight:850;
  cursor:pointer;
}

/* Footer */
.site-footer{padding:34px 0; border-top:1px solid rgba(15,23,42,.10); color:rgba(15,23,42,.70); font-size:14px}
.footer-grid{display:flex; gap:14px; justify-content:space-between; flex-wrap:wrap}
.footer-grid a{color:rgba(15,23,42,.70); text-decoration:none}
.footer-grid a:hover{color:var(--text)}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr; gap:18px}
  .grid-3{grid-template-columns:1fr}
  .split{grid-template-columns:1fr}
  .pricing{grid-template-columns:1fr}
  .slider{height:320px}
}

/* Mobile menu */
@media (max-width: 860px){
  .header-inner{position:relative}
  .brand{display:flex; align-items:stretch; gap:12px}

  .hamb{display:inline-flex; align-items:stretch; justify-content:center}
  .nav{
    display:none;
    position:absolute;
    top:52px;
    left:0;
    min-width:240px;
    padding:12px;
    border-radius:18px;
    background:rgba(255,255,255,.95);
    border:1px solid rgba(15,23,42,.10);
    box-shadow:var(--shadow);
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }
  .nav.open{display:flex}
  .header-cta{display:none}
}

/* Benefits / Stats */
.stats{display:grid; grid-template-columns:repeat(4, 1fr); gap:16px}
.stat{
  border:1px solid rgba(15,23,42,.10);
  background:rgba(255,255,255,.82);
  border-radius:var(--r);
  padding:18px;
  box-shadow:0 10px 24px rgba(2,6,23,.06);
}
.stat .big{font-size:40px; font-weight:950; letter-spacing:-.5px}
.stat .label{color:var(--muted); margin-top:6px; line-height:1.5}
@media (max-width: 980px){ .stats{grid-template-columns:1fr 1fr} }
@media (max-width: 520px){ .stats{grid-template-columns:1fr} }


/* Kadence-like split hero */
.hero.hero-split{position:relative; padding:72px 0 0; overflow:hidden}
.hero-bg{
  position:absolute; inset:0;
  background:
    radial-gradient(900px 520px at 20% 30%, rgba(30,100,255,.35), rgba(30,100,255,0) 60%),
    linear-gradient(90deg, rgba(30,100,255,.92), rgba(30,100,255,.10));
}
.hero-split-inner{position:relative; display:grid; grid-template-columns: 1fr 1fr; gap:34px; align-items:stretch}
.hero-copy{color:#fff}
.hero-copy h1{color:#fff; font-size:56px; line-height:1.02; letter-spacing:-1px; margin:12px 0 12px}
.hero-copy .lead{color:rgba(255,255,255,.92); font-size:18px; line-height:1.6}
.hero-impact{margin-top:10px; font-weight:800; color:rgba(255,255,255,.96)}
.hero-copy .pill{background:rgba(255,255,255,.14); border-color:rgba(255,255,255,.20); color:#fff}
.hero-copy .hero-badges .pill{background:rgba(255,255,255,.12)}
.hero-photo{position:relative}
.hero-photo{display:flex; align-items:stretch; justify-content:flex-end}
.hero-photo img{
  width:var(--hero-img-w, 100%);
  height:var(--hero-img-h, 100%);
  max-width:100%;
  max-height:100%;
  border:0;
  border-radius:0;
  box-shadow:none;
  object-fit:contain;
  display:block;
}
.hero-photo-placeholder{
  width:100%;
  min-height:360px;
  border-radius:26px;
  border:1px dashed rgba(255,255,255,.40);
  background:rgba(255,255,255,.10);
  display:flex; flex-direction:column; align-items:stretch; justify-content:center;
  text-align:center;
  padding:24px;
}
.hero-photo-placeholder .ph-title{font-weight:950; font-size:18px; color:#fff}
.hero-photo-placeholder .ph-text{margin-top:8px; color:rgba(255,255,255,.9); font-size:14px; line-height:1.4}
.hero-wave{display:block; width:100%; height:90px; margin-top:40px}
@media (max-width: 980px){
  .hero-split-inner{grid-template-columns:1fr; gap:18px}
  .hero-copy h1{font-size:40px}
  .hero.hero-split{padding:56px 0 0}
  .hero-photo-placeholder{min-height:260px}
}

/* Hero banner (no slideshow) */
.hero.hero-banner{position:relative; padding:72px 0 0; overflow:hidden}
.hero-bg{
  position:absolute; inset:0;
  background:
    radial-gradient(900px 520px at 20% 30%, rgba(30,100,255,.35), rgba(30,100,255,0) 60%),
    linear-gradient(90deg, rgba(30,100,255,.92), rgba(30,100,255,.10));
}
.hero-banner-inner{position:relative; display:grid; grid-template-columns: 1fr 1fr; gap:34px; align-items:stretch; padding-left:var(--hero-pad); padding-right:var(--hero-pad)}
.hero-copy{color:#fff}
.hero-copy h1{color:#fff; font-size:56px; line-height:1.02; letter-spacing:-1px; margin:12px 0 12px}
.hero-copy .lead{color:rgba(255,255,255,.92); font-size:18px; line-height:1.6}
.hero-impact{margin-top:10px; font-weight:800; color:rgba(255,255,255,.96)}
.hero-copy .pill{background:rgba(255,255,255,.14); border-color:rgba(255,255,255,.20); color:#fff}
.hero-copy .hero-badges .pill{background:rgba(255,255,255,.12)}
.hero-photo img{
  width:100%;
  height:auto;
  border-radius:26px;
  border:1px solid rgba(255,255,255,.22);
  box-shadow:0 22px 60px rgba(2,6,23,.28);
}
.hero-wave{display:block; width:100%; height:90px; margin-top:40px}
@media (max-width: 980px){
  .hero-banner-inner{grid-template-columns:1fr; gap:18px}
  .hero-copy h1{font-size:40px}
  .hero.hero-banner{padding:56px 0 0}
}

@media (min-width: 1100px){ .hero-photo{justify-self:end} .hero-photo img{max-width:560px} }

.brand-name{color:inherit; text-decoration:none; font-weight:800}

.custom-logo-link{display:inline-flex; align-items:stretch; text-decoration:none}
.custom-logo{height:36px; width:auto; max-width:160px; object-fit:contain}
@media (max-width: 980px){
  .custom-logo{height:32px; max-width:140px}
}

/* Hero buttons: ensure contrast on blue background */
.hero .btn{
  background:rgba(255,255,255,.95);
  border-color:rgba(255,255,255,.65);
  color:#0f172a;
}
.hero .btn.primary{
  background:rgba(255,255,255,.18);
  border-color:rgba(255,255,255,.35);
  color:#ffffff;
}
.hero .btn:hover{transform:translateY(-1px); box-shadow:0 10px 24px rgba(2,6,23,.18);}

/* Hero photo: no border/shadow, match text height */
.hero-banner .hero-photo{display:flex; align-items:stretch; justify-content:flex-end}
.hero-banner .hero-photo img{
  border:none !important;
  box-shadow:none !important;
  border-radius:0 !important;
  background:transparent;
  height:100%;
  width:auto;
  max-width:100%;
  object-fit:contain;
}
@media (max-width: 980px){
  .hero-banner .hero-photo img{height:auto; width:100%;}
}

.hero.hero-banner .container{max-width:100%}

:root{--hero-pad:28px;--hero-img-w:100%;--hero-img-h:100%;}

/* Hero image sizing controls */
.hero-photo{display:flex; align-items:stretch}
.hero-photo img{
  width: var(--hero-img-w);
  height: var(--hero-img-h);
  max-height: 100%;
  object-fit: contain;
  align-self: stretch;
}
/* optional sections */
.section-alt{background:rgba(255,255,255,.70)}
.video-wrap{
  margin-top:14px;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(15,23,42,.10);
  background:#fff;
  box-shadow:0 14px 34px rgba(2,6,23,.08);
}
.video-wrap iframe, .video-wrap video{width:100%; height:520px; display:block}
@media (max-width: 980px){ .video-wrap iframe, .video-wrap video{height:280px;} }

.info-wrap{
  margin-top:14px;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(15,23,42,.10);
  background:#fff;
  box-shadow:0 14px 34px rgba(2,6,23,.08);
}
.info-wrap img{width:100%; height:auto; display:block}

@media (min-width: 981px){
  .hero-banner-inner{align-items:stretch}
  .hero-copy, .hero-photo{min-height: 100%}
  .hero-photo{display:flex; align-items:stretch; justify-content:flex-end}
  .hero-photo img{
    height: 100%;
    width: auto;
    transform-origin: right bottom;
    transform: scale(var(--hero-img-w), var(--hero-img-h));
  }
}


/* Mobile header: logo centered and larger */
@media (max-width: 980px){
  .header-inner{
    display:grid !important;
    grid-template-columns: 44px 1fr 44px;
    align-items:center;
    justify-content:initial !important;
    gap:10px;
    padding:12px 0;
  }
  .hamb{grid-column:1; justify-self:start}
  .brand{grid-column:2; justify-self:center; display:flex; align-items:center; gap:10px}
  .header-inner::after{content:""; grid-column:3; width:44px; height:1px}
  .brand .custom-logo{max-height:54px; width:auto}
  .brand-logo img{max-height:54px; width:auto}
}



@media (max-width: 980px){
  .hero-banner-inner{
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}


@media (min-width: 981px){
  .hero-banner-inner{
    padding-left: var(--hero-pad);
    padding-right: var(--hero-pad);
  }
}
@media (max-width: 980px){
  .hero-banner-inner{
    padding-left: var(--hero-pad-m);
    padding-right: var(--hero-pad-m);
  }
}
