/*
Theme Name: twentytwentyfive-child
Theme URI: https://wp.ditsolution.net/techno/
Description: Tema figlio di twentytwentyfive
Author:       Salvatore Martinico
Author URI:   http://example.com
Template:     twentytwentyfive
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  twentytwentyfive-child
*/

body{
  background-color:#E0F0E0!important
}

/* Riduci spazio tra header e contenuto principale */
header,
.wp-site-header {
  margin-bottom: 0 !important; /* elimina eventuale margine sotto l’header */
  padding-bottom: 0 !important;
}

main,
.wp-block-group.is-layout-constrained {
  margin-top: 0 !important; /* elimina margine sopra il main */
  padding-top: 0; /* se vuoi un minimo respiro */
}

/* ──────────────────────────────────────────────
   HEADER CLASSICO: LOGO + TITOLO A SINISTRA, MENU A DESTRA
   compatibile con Twenty Twenty-Five
   ────────────────────────────────────────────── */

/* Contenitore principale header */
header.wp-block-template-part {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  flex-wrap: wrap; /* per sicurezza su schermi piccoli */
}

/* Gruppo logo + titolo */
header.wp-block-template-part .wp-block-group:has(figure.wp-block-image) {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Logo */
header.wp-block-template-part figure.wp-block-image {
  margin: 0;
}

header.wp-block-template-part figure.wp-block-image img {
  display: block;
  max-height: 70px;
  width: auto;
}

/* Titolo del sito */
header.wp-block-template-part .wp-block-site-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
}

header.wp-block-template-part .wp-block-site-title a {
  color: #000;
  text-decoration: none;
}

header.wp-block-template-part .wp-block-site-title a:hover {
  color: #006400;
}

/* Navigazione */
header.wp-block-template-part nav.wp-block-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Mobile */
@media (max-width: 768px) {
  header.wp-block-template-part {
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
  }

  header.wp-block-template-part .wp-block-group:has(figure.wp-block-image) {
    justify-content: center;
  }

  header.wp-block-template-part nav.wp-block-navigation {
    margin-top: 10px;
  }
}

header.wp-block-template-part nav.wp-block-navigation {
  margin-left: 40px; /* aumenta la distanza orizzontale */
}



/* FEATURES SECTION */
.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-box {
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.icon {
    border: 2px solid #e30000; /* rosso */
    color: #e30000;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 15px;
}

.feature-box h3 {
    margin-bottom: 10px;
    color: #222;
    font-weight: 600;
}

.feature-box p {
    color: #444;
    font-size: 15px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .features-section {
        padding: 40px 10px;
        gap: 20px;
    }
}

/* --- SITE TITLE 3D --- */

  .wp-block-site-title a {
	  font-family: "Poppins", sans-serif;
	  font-weight: 600;
	  color: #111;
	  text-decoration: none;
	  font-size: 1.8rem;
	  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .wp-block-site-title a {
    font-size: 2rem;
    letter-spacing: 2px;
  }
}


/* stats */
.stats-section {
 width: 100vw !important; /* prende tutta la viewport */
  margin-left: calc(50% - 50vw); /* forza l'allineamento ai bordi */
  margin-right: calc(50% - 50vw);
  background-color:#FFFFFF;
  padding: 80px 5%;
  font-family: "Segoe UI", sans-serif;
  text-align: center;
  color: #333;
  box-sizing: border-box;
}



.stats-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
}

.stats-section h2 {
  font-size: 34px;
  margin-bottom: 10px;
  color: #222;
}

.stats-section p.subtitle {
  font-size: 17px;
  color: #555;
  margin-bottom: 60px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-items: center;
}

.stat-box {
  background: #fff;
  border-radius: 18px;
  padding: 40px 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 360px;
}

.stat-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.stat-icon {
  font-size: 44px;
  color: #ff3b3b; /* rosso per icone */
  margin-bottom: 15px;
}

.stat-number {
  font-size: 30px;
  color: #ff3b3b;
  font-weight: bold;
}

.stat-text {
  font-size: 15px;
  color: #555;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}



/* --- FOOTER LAYOUT --- */

.site-footer .footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.site-footer .footer-column {
  flex: 1;
  min-width: 250px;
  text-align: left;
}

.site-footer .footer-left img {
  max-height: 100px;
  width: auto;
}

.site-footer h4 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.site-footer p {
  margin: 5px 0;
  line-height: 1.6;
  color: #e5e5e5;
}

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

.site-footer a:hover {
  text-decoration: underline;
}

/* --- MOBILE --- */
@media (max-width: 768px) {
  .site-footer .footer-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .site-footer .footer-column {
    text-align: center;
  }
}

/* fine footer */

body.page-id-18387 h1.wp-block-post-title{display:none}
body h1.wp-block-post-title{
font-size:2.2em; margin-bottom:10px; color:#0a4d8c;text-align:center;
}

.align-center{text-align:center}
.align-right{text-align:right}

.knx-logo{ display:inline-block;  }

.wp-block-navigation-item__label{font-size:0.9em!important}



/* --- SERVIZI WEB --- */

/* === Sezione Servizi Web – PJP Multiservice === */
.pjp-web-servizi {
  --bg: #f7f7f9;
  --ink: #111;
  --muted: #5b5b66;
  --brand: #1b73e8;
  --brand-2: #0aa67a;
  --card: #fff;
  --line: #e6e6ef;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(16, 24, 40, 0.06);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
}
.pjp-web-servizi * { box-sizing: border-box; }

.pjp-web-servizi .wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 40px);
}

/* HERO */
.pjp-web-servizi .hero {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 48px);
  display: grid;
  gap: 18px;
  align-items: center;
}
.pjp-web-servizi h1 {
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.1;
  margin: 0;
}
.pjp-web-servizi p.lead {
  font-size: clamp(16px, 2.2vw, 18px);
  color: var(--muted);
}
.pjp-web-servizi .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-2);
}
.pjp-web-servizi .cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.pjp-web-servizi .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.pjp-web-servizi .btn.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.pjp-web-servizi .hint {
  font-size: 13px;
  color: var(--muted);
}

/* GRID */
.pjp-web-servizi .grid {
  display: grid;
  gap: 18px;
}
@media (min-width: 640px) {
  .pjp-web-servizi .cols-2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .pjp-web-servizi .cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* CARD */
.pjp-web-servizi .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.pjp-web-servizi .card h3 {
  margin: 0.2rem 0 0.4rem;
  font-size: 18px;
}
.pjp-web-servizi .muted { color: var(--muted); }

/* FEATURES */
.pjp-web-servizi .features { display: grid; gap: 10px; }
.pjp-web-servizi .feature {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.pjp-web-servizi .icon {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 8px;
  background: #eef4ff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.pjp-web-servizi .icon svg { width: 18px; height: 18px; }

/* IMMAGINI */
.pjp-web-servizi .hero-media img,
.pjp-web-servizi .immagini-anteprima img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* STEP */
.pjp-web-servizi .steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
}
.pjp-web-servizi .step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}
.pjp-web-servizi .step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-weight: 700;
}

/* BANNER */
.pjp-web-servizi .banner {
  background: linear-gradient(135deg, var(--brand), #5a8df7);
  border-radius: var(--radius);
  color: #fff;
  padding: 22px;
  display: grid;
  gap: 10px;
  align-items: center;
}
.pjp-web-servizi .banner .btn {
  background: #fff;
  color: #0b2a63;
}

/* FAQ */
.pjp-web-servizi details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}
.pjp-web-servizi summary {
  cursor: pointer;
  font-weight: 600;
}

/* MARGINI DI SEZIONE */
.pjp-web-servizi section {
  margin-top: 26px;
}

