/* =========================================================
   COMPUTO PRO — HEADER + FOOTER
   CSS PERSONALIZZATO WORDPRESS
   Coerente con la landing e con l'APP
   ========================================================= */

.cp-site-header,
.cp-site-footer{
  --cp-navy:#223A5E;
  --cp-navy-dark:#1A2F4D;
  --cp-cyan:#0891B2;
  --cp-green:#47C27A;
  --cp-yellow:#F6C445;
  --cp-orange:#F59E0B;
  --cp-line:#DFE6EE;
  --cp-muted:#6C7A8C;
  font-family:'Montserrat',Arial,sans-serif;
}

.cp-site-header *,
.cp-site-footer *{
  box-sizing:border-box;
}

.cp-site-header a,
.cp-site-footer a{
  text-decoration:none;
}

.cp-site-wrap{
  width:min(1180px,calc(100% - 40px));
  margin:0 auto;
}


/* =========================
   HEADER
   ========================= */

.cp-site-header{
  position:relative;
  z-index:999;
  width:100%;
  border-bottom:1px solid var(--cp-line);
  background:rgba(255,255,255,.97);
  box-shadow:0 4px 18px rgba(26,47,77,.04);
}

.cp-site-header-inner{
  min-height:74px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
}

.cp-site-logo{
  display:inline-flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
}

.cp-site-logo-mark{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:var(--cp-navy-dark);
  color:var(--cp-yellow);
  font-size:13px;
  font-weight:900;
  letter-spacing:-.04em;
}

.cp-site-logo-text{
  display:flex;
  flex-direction:column;
  line-height:1;
}

.cp-site-logo-text strong{
  color:var(--cp-navy-dark);
  font-size:15px;
  font-weight:900;
  letter-spacing:-.02em;
}

.cp-site-logo-text small{
  margin-top:5px;
  color:var(--cp-muted);
  font-size:8px;
  font-weight:700;
  letter-spacing:.04em;
}

.cp-site-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  margin-left:auto;
}

.cp-site-nav > a{
  padding:9px 11px;
  border-radius:8px;
  color:var(--cp-navy);
  font-size:11px;
  font-weight:800;
  transition:.18s ease;
}

.cp-site-nav > a:hover{
  background:#F4F7F9;
  color:var(--cp-cyan);
}

.cp-site-nav > .cp-site-nav-app{
  color:#236B45;
}

.cp-site-actions{
  display:flex;
  align-items:center;
  gap:8px;
}

.cp-site-login,
.cp-site-premium{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 14px;
  border-radius:9px;
  font-size:10px;
  font-weight:900;
}

.cp-site-login{
  border:1px solid var(--cp-line);
  background:#fff;
  color:var(--cp-navy);
}

.cp-site-login:hover{
  border-color:var(--cp-cyan);
  color:var(--cp-cyan);
}

.cp-site-premium{
  background:var(--cp-green);
  color:#143B29;
}

.cp-site-premium:hover{
  box-shadow:0 7px 18px rgba(71,194,122,.20);
}

.cp-site-menu-btn{
  width:40px;
  height:40px;
  display:none;
  padding:0;
  border:1px solid var(--cp-line);
  border-radius:9px;
  background:#fff;
  cursor:pointer;
}

.cp-site-menu-btn span{
  width:17px;
  height:2px;
  display:block;
  margin:4px auto;
  border-radius:2px;
  background:var(--cp-navy);
  transition:.18s ease;
}


/* =========================
   FOOTER
   ========================= */

.cp-site-footer{
  background:var(--cp-navy-dark);
  color:#fff;
}

.cp-site-footer-main{
  display:grid;
  grid-template-columns:1.55fr repeat(3,1fr);
  gap:50px;
  padding:58px 0 48px;
}

.cp-site-logo-footer .cp-site-logo-mark{
  background:#fff;
  color:var(--cp-navy-dark);
}

.cp-site-logo-footer .cp-site-logo-text strong{
  color:#fff;
}

.cp-site-logo-footer .cp-site-logo-text small{
  color:#9FB0C2;
}

.cp-site-footer-brand > p{
  max-width:390px;
  margin:20px 0 18px;
  color:#B9C6D3;
  font-size:12px;
  line-height:1.7;
}

.cp-site-footer-app{
  display:inline-flex;
  color:var(--cp-green);
  font-size:11px;
  font-weight:900;
}

.cp-site-footer-col{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}

.cp-site-footer-col h4{
  margin:3px 0 16px;
  color:#fff;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.cp-site-footer-col a{
  margin:0 0 10px;
  color:#B9C6D3;
  font-size:11px;
  font-weight:600;
  transition:.18s ease;
}

.cp-site-footer-col a:hover{
  color:var(--cp-yellow);
}

.cp-site-footer-bottom{
  min-height:66px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  border-top:1px solid rgba(255,255,255,.10);
}

.cp-site-footer-bottom p{
  margin:0;
  color:#8FA2B5;
  font-size:9px;
  font-weight:600;
}

.cp-site-credit a{
  color:var(--cp-yellow);
  font-weight:800;
}


/* =========================
   TABLET
   ========================= */

@media(max-width:960px){

  .cp-site-header-inner{
    min-height:68px;
  }

  .cp-site-nav{
    position:absolute;
    top:100%;
    left:0;
    right:0;
    display:none;
    padding:10px 20px 18px;
    flex-direction:column;
    align-items:stretch;
    gap:4px;
    border-top:1px solid var(--cp-line);
    border-bottom:1px solid var(--cp-line);
    background:#fff;
    box-shadow:0 18px 30px rgba(26,47,77,.10);
  }

  .cp-site-header.cp-menu-open .cp-site-nav{
    display:flex;
  }

  .cp-site-nav > a{
    padding:12px;
    font-size:12px;
  }

  .cp-site-menu-btn{
    display:block;
  }

  .cp-site-footer-main{
    grid-template-columns:1.4fr 1fr 1fr;
  }

  .cp-site-footer-col:last-child{
    grid-column:2 / 4;
  }
}


/* =========================
   MOBILE
   ========================= */

@media(max-width:650px){

  .cp-site-wrap{
    width:min(100% - 24px,1180px);
  }

  .cp-site-header-inner{
    min-height:64px;
    gap:8px;
  }

  .cp-site-logo-mark{
    width:34px;
    height:34px;
  }

  .cp-site-logo-text strong{
    font-size:12px;
  }

  .cp-site-logo-text small{
    display:none;
  }

  .cp-site-login{
    display:none;
  }

  .cp-site-premium{
    min-height:35px;
    padding:0 10px;
    font-size:8px;
  }

  .cp-site-footer-main{
    grid-template-columns:1fr 1fr;
    gap:34px 24px;
    padding:42px 0 36px;
  }

  .cp-site-footer-brand{
    grid-column:1 / -1;
  }

  .cp-site-footer-col:last-child{
    grid-column:auto;
  }

  .cp-site-footer-bottom{
    padding:18px 0;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
  }
}


/* =========================
   MOBILE PICCOLO
   ========================= */

@media(max-width:430px){

  .cp-site-footer-main{
    grid-template-columns:1fr;
  }

  .cp-site-footer-col:last-child{
    grid-column:auto;
  }

}


/* WordPress menu markup */
.cp-site-menu-area{
  margin-left:auto;
}

.cp-site-nav ul,
.cp-site-nav .cp-site-menu{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  margin:0;
  padding:0;
  list-style:none;
}

.cp-site-nav li{
  margin:0;
  padding:0;
  position:relative;
}

.cp-site-nav li > a{
  display:block;
  padding:9px 11px;
  border-radius:8px;
  color:var(--cp-navy);
  font-size:11px;
  font-weight:800;
  transition:.18s ease;
}

.cp-site-nav li > a:hover,
.cp-site-nav .current-menu-item > a,
.cp-site-nav .current_page_item > a{
  background:#F4F7F9;
  color:var(--cp-cyan);
}

.cp-site-nav .sub-menu{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  min-width:190px;
  padding:8px;
  border:1px solid var(--cp-line);
  border-radius:10px;
  background:#fff;
  box-shadow:0 16px 34px rgba(26,47,77,.12);
}

.cp-site-nav li:hover > .sub-menu{
  display:block;
}

.cp-site-nav .sub-menu li > a{
  white-space:nowrap;
}

.cp-site-nav-empty{
  color:var(--cp-muted);
  font-size:10px;
  font-weight:700;
}

.cp-site-footer-menu h4{
  margin:3px 0 16px;
  color:#fff;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.cp-site-footer-links{
  margin:0;
  padding:0;
  list-style:none;
}

.cp-site-footer-links li{
  margin:0 0 10px;
}

.cp-site-footer-links a{
  color:#B9C6D3;
  font-size:11px;
  font-weight:600;
  transition:.18s ease;
}

.cp-site-footer-links a:hover{
  color:var(--cp-yellow);
}

.cp-site-footer-empty{
  color:#8FA2B5;
  font-size:10px;
  line-height:1.5;
}

@media(max-width:960px){
  .cp-site-menu-area{
    margin-left:0;
  }

  .cp-site-nav ul,
  .cp-site-nav .cp-site-menu{
    flex-direction:column;
    align-items:stretch;
    gap:4px;
  }

  .cp-site-nav .sub-menu{
    display:block;
    position:static;
    min-width:0;
    margin:4px 0 0 12px;
    padding:0 0 0 9px;
    border:0;
    border-left:2px solid #E8EDF2;
    border-radius:0;
    box-shadow:none;
  }
}


/* =========================================================
   v1.1.0 — LARGHEZZA SITO / APP
   ========================================================= */

/* Header, footer e landing: contenitore massimo 1200 px */
.cp-site-wrap,
.cp-home-wrap{
  width:min(1200px,calc(100% - 40px)) !important;
  max-width:1200px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

/* Consente alla pagina WordPress della landing di usare realmente i 1200 px.
   Le regole sono volutamente limitate alle pagine che contengono .cp-home. */
body.computopro-site .site,
body.computopro-site .site-content,
body.computopro-site .content-area,
body.computopro-site main,
body.computopro-site .entry-content{
  max-width:none;
}

/* L'app resta leggermente più raccolta, ma non supera mai i 1200 px.
   Supporta i contenitori più comuni già usati da Computo Pro. */
body.computopro-site .computopro-app,
body.computopro-site .computo-app,
body.computopro-site .app-shell,
body.computopro-site #computoApp,
body.computopro-site #app{
  width:min(1200px,calc(100% - 32px));
  max-width:1200px;
  margin-left:auto;
  margin-right:auto;
}

/* Mockup della landing un po' più compatto rispetto al testo */
.cp-home-appmockup{
  width:94%;
  max-width:620px;
  justify-self:end;
}

@media(max-width:950px){
  .cp-home-appmockup{
    width:100%;
    max-width:760px;
    justify-self:stretch;
    margin-left:auto;
    margin-right:auto;
  }
}

@media(max-width:650px){
  .cp-site-wrap,
  .cp-home-wrap{
    width:min(100% - 24px,1200px) !important;
  }

  body.computopro-site .computopro-app,
  body.computopro-site .computo-app,
  body.computopro-site .app-shell,
  body.computopro-site #computoApp,
  body.computopro-site #app{
    width:calc(100% - 16px);
  }
}
