/*
Theme Name: Twenty Twenty-One Child (camerlino.it)
Description: Child theme per personalizzazioni di camerlino.it
Template: twentytwentyone
Version: 1.0.0
Text Domain: twentytwentyone-child
*/

/* =========================================================
   IMPORT CSS MODULARI (devono stare in alto)
   ========================================================= */

/* =========================================================
   0) IMMAGINI HERO
   ========================================================= */
:root{
  --ea-hero-desktop: url("/wp-content/uploads/2026/02/scelta-percorsi-overlay-mobile_bis_1024x1536.png");
  --ea-hero-mobile:  url("/wp-content/uploads/2026/02/scelta-percorsi-overlay-mobile_bis_V_1024x1536.png");
}

/* =========================================================
   1) BASE
   ========================================================= */
body {
  color: #fff;
}

a,
a:visited {
  color: #fff;
}

a:hover,
a:focus {
  opacity: 0.85;
}

/* =========================================================
   2) NAV (nasconde login / mobile toggle)
   ========================================================= */
button#primary-mobile-menu,
.primary-navigation > button {
  display: none !important;
}

a[href*="wp-login.php"],
a[href*="/login"],
a[href*="login"],
.menu-item-login,
li.login {
  display: none !important;
}

/* =========================================================
   3) PAGINE: rimuovi entry header + spazio sopra
   ========================================================= */
.entry-header,
body.page .entry-header {
  display: none !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.site-content,
.site-main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.site-main > article {
  border-top: 0 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.site-main > article .post-inner {
  padding-top: 0.8rem !important;
}

.entry-content > :first-child {
  margin-top: 0 !important;
}

/* =========================================================
   4) TITOLI GENERICI
   ========================================================= */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: #fff;
}

/* =========================================================
   5) FOOTER CUSTOM
   ========================================================= */
.site-footer-custom{
  background:#000;
  color:#fff;
  padding:18px 16px;
  border-top:1px solid rgba(255,255,255,0.08);
}

.site-footer-custom .footer-inner{
  max-width:1100px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  font-size:14px;
  opacity:.9;
}

.site-footer-custom a{
  color:#fff;
  text-decoration:none;
}

.site-footer-custom a:hover{ opacity:.8; }

.site-footer-custom .footer-sep{
  margin:0 8px;
  opacity:.6;
}

@media (max-width: 700px){
  .site-footer-custom .footer-inner{
    flex-direction:column;
    text-align:center;
  }
}

/* =========================================================
   6) EA: FULL WIDTH WRAP
   ========================================================= */
.ea-wrap{
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
}

/* =========================================================
   7) EA: HERO (immagine + overlay)
   ========================================================= */
.ea-hero{
  position:relative;
  width:100%;
  min-height:80vh;
  background:#000;
  color:#fff;
  overflow:hidden;
}

.ea-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--ea-hero-desktop);
  background-size: cover;
  background-position: center;
  background-repeat:no-repeat;
  transform: scale(1.02);
  z-index:0;
  opacity:1;
}

.ea-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.9));
  z-index:1;
}

.ea-hero-inner{
  position:relative;
  z-index:2;
  max-width:1100px;
  margin:0 auto;
  padding:120px 16px 80px;
  text-align:center;
}

@media (max-width: 768px){
  .ea-hero{ min-height: 76vh; }
  .ea-hero::before{
    background-image: var(--ea-hero-mobile);
  }
  .ea-hero-inner{
    padding:95px 16px 60px;
  }
}

/* =========================================================
   8) EA: HEAD
   ========================================================= */
.ea-head{
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
  text-align:center;
}

.ea-title{
  font-size: clamp(34px, 4vw, 56px);
  line-height:1.05;
  margin:0 0 18px;
}

.ea-sub{
  font-size:18px;
  opacity:.9;
  margin:0 auto 26px;
  max-width:820px;
}

/* =========================================================
   9) EA: VARI
   ========================================================= */
.ea-foot{
  text-align:center;
  opacity:.85;
  margin-top:18px;
}

/* =========================================================
   10) LS TYPO
   ========================================================= */
.entry-content .ls-typo p,
.entry-content .ls-typo li{
  max-width: 780px;
  margin-left:auto;
  margin-right:auto;
}

@media (max-width: 768px){
  .entry-content .ls-typo p,
  .entry-content .ls-typo li{
    max-width: 100%;
  }
}

/* =========================================================
   11) STICKY FOOTER - FLEXBOX
   ========================================================= */
html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

#page {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100vh;
}

#content {
    flex: 1;
}

.site-footer-custom {
    margin-top: auto;
}
