/**
 * Readability & simplified professional layout
 * Dimensione minima testo: 16px (desktop e mobile)
 */

/* Base: 1rem = 16px così nessun testo va sotto 16px */
html {
  font-size: 16px;
}

/* Sicurezza: nessun testo leggibile sotto 16px (desktop e mobile) */
body p,
body li,
body label,
body td,
body th,
body .post-excerpt p,
body .widget-text p,
body .breadcrumb-trail,
body .widget a,
body .menu-item a {
  font-size: max(16px, 1em);
}

/* ---- Typography & readability ---- */
body {
  color: #3d3d4a;
  font-size: 1.0625rem; /* 17px con root 16px */
  line-height: 1.7;
  letter-spacing: 0.01em;
}

p {
  margin-bottom: 1.25em;
  max-width: 65ch;
}

/* Headings: clearer hierarchy, slightly calmer scale */
h1, h2, h3, h4, h5, h6 {
  color: #252540;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 1.25em;
  margin-bottom: 0.5em;
  letter-spacing: -0.02em;
}

h1 { font-size: 1.95rem; margin-top: 0; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
h5, h6 { font-size: 1rem; }

/* Content area: comfortable reading width */
#main-content {
  padding: 2rem 0 3rem;
}


/* Solo pagine blog: larghezza lettura 720px. La home resta a tutta larghezza. */
.blog-single-page .hentry .post-content-single-wrap,
.blog-page-content {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.blog-single-page .hentry .post-content p,
.blog-single-page .hentry .post-content li,
.form-estimate p,
.widget-text p {
  max-width: none;
}

/* Featured title (page headers): simpler, less loud */
#featured-title .featured-title-heading {
  font-size: 1.85rem;
  font-weight: 600;
  color: #252540;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

#featured-title .breadcrumb-trail {
  font-size: 1rem; /* min 16px */
  margin-top: 0.5rem;
}

#featured-title .breadcrumb-trail a {
  color: #5a5875;
}

#featured-title .breadcrumb-trail a:hover {
  color: #252540;
}

/* Links: readable, consistent */
a {
  color: #2d2d4a;
  text-decoration-skip-ink: auto;
}

a:hover {
  color: #1a1a2e;
}

.subtitle,
.widget a,
.post-content a {
  color: #2d2d4a;
}

/* Widget & footer: cleaner text (min 16px) */
#footer .widget-text p,
#footer .widget .widget-title > span {
  color: #4a4863;
  font-size: 1rem;
  line-height: 1.65;
}

#footer .widget .widget-title > span {
  color: #252540;
  font-size: 1rem;
  font-weight: 600;
}

/* Buttons: slightly softer, still clear */
.cbr-button:not(.out-line-2px) {
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Blog cards and list: clearer spacing – excerpt almeno 1rem (no 0.95rem = 9.5px) */
.hentry.post-grid .post-content-wrap {
  padding: 1.5rem;
}

.hentry.post-grid .post-title {
  font-size: 1.2rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.blog-card.hentry .post-excerpt p,
.hentry.post-grid .post-excerpt p {
  font-size: 1rem;
  line-height: 1.6;
  color: #4a4863;
}

/* Form and contact: cleaner fields */
.custom-form .form-control,
.custom-form input[type="text"],
.custom-form select,
.custom-form textarea {
  font-size: 1rem;
  line-height: 1.5;
}

.custom-form .heading {
  font-size: 1.5rem;
  color: #252540;
  margin-bottom: 0.5rem;
}

/* ---- Header: "Questions? Ask for Help!" – leggibile e in evidenza ---- */
#site-header .header-info .info-c .title {
  font-size: 1rem;
  font-weight: 600;
  color: #252540;
}

#site-header .header-info .info-c .subtitle {
  font-size: 1.15rem;
  font-weight: 600;
  color: #252540;
  line-height: 1.4;
}

#site-header .header-info .info-c .subtitle:hover {
  color: #1a1a2e;
}

/* Main nav: link più grandi e contrasto alto ---- */
#main-nav > ul > li > a {
  font-size: 1.05rem;
  font-weight: 500;
  color: #2d2d4a;
  letter-spacing: 0.02em;
}

#main-nav > ul > li > a:hover,
#main-nav > ul > li.current-menu-item > a {
  color: #c0392b;
}

#main-nav .sub-menu li a {
  font-size: 1rem;
  line-height: 1.5;
  padding: 10px 25px;
  color: rgba(255, 255, 255, 0.95);
}

#main-nav .sub-menu li a:hover {
  color: #fff;
}

/* ---- Hero / Slider: titolo, descrizione e CTA leggibili ---- */
.rev_slider .tp-caption {
  font-size: inherit;
}

.rev_slider .cbr-slider-heading {
  font-size: clamp(2rem, 5vw, 3.25rem) !important;
  line-height: 1.2 !important;
  color: #252540 !important;
  font-weight: 600 !important;
}

/* Paragrafo sotto il titolo nello slider (min 16px) */
.rev_slider .tp-caption.font-weight-400,
.rev_slider .tp-caption:not(.cbr-slider-heading):not(.slider-button) {
  font-size: clamp(1rem, 2vw, 1.25rem) !important;
  line-height: 1.55 !important;
  color: #3d3d4a !important;
  max-width: 32em;
}

/* Pulsante "Get a Quote" nello slider */
.rev_slider_wrapper .slider-button .cbr-button,
.rev_slider_wrapper .slider-button .cbr-button span {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  padding: 14px 36px !important;
  line-height: 1.4 !important;
}

.rev_slider_wrapper .slider-button .cbr-button span {
  letter-spacing: 0.03em;
}

/* Barra sotto link attivo menu: allineata al nuovo colore */
#main-nav > ul > li.current-menu-item > a:before,
#main-nav > ul > li:hover > a:before {
  background-color: #c0392b;
}

/* Container e mobile: padding e dimensioni minime leggibili (sempre ≥16px) */
@media (max-width: 768px) {
  body {
    font-size: 1rem; /* 16px, mai sotto 16px */
    line-height: 1.65;
  }

  #featured-title .featured-title-heading {
    font-size: 1.5rem;
  }

  #site-header .header-info .info-c .title {
    font-size: 1rem; /* min 16px */
  }

  #site-header .header-info .info-c .subtitle {
    font-size: 1.05rem;
  }

  .rev_slider_wrapper .slider-button .cbr-button,
  .rev_slider_wrapper .slider-button .cbr-button span {
    font-size: 1rem !important;
    padding: 12px 28px !important;
  }

  .page-content,
  .no-sidebar #site-content .inner-content-wrap .container {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 991px) {
  #main-nav-mobi ul > li > a {
    font-size: 1.05rem;
    padding: 12px 20px;
    color: #252540;
  }
}
