/*
Theme Name: Divi Child Theme
Theme URI: http://ewsoluzioni.it
Description: easyware | Child Theme For Divi
Author: easyware
Author URI: http://ewsoluzioni.it
Version: 1.0.3
Template: Divi
*/


/* Fondazione SCV POC design system --------------------------------------- */

:root {
  --scv-red: #c91f26;
  --scv-yellow: #f5b800;
  --scv-blue: #63bdd5;
  --scv-green: #4eaf76;
  --scv-ink: #17161a;
  --scv-body: #4d4b49;
  --scv-paper: #f7f2e9;
  --scv-white: #fff;
  --scv-line: #e5ded4;
  --scv-radius: 14px;
  --scv-shadow: 0 18px 50px rgba(23, 22, 26, 0.1);
}

body {
  color: var(--scv-body);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--scv-ink);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

a {
  color: var(--scv-red);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--scv-blue);
  outline-offset: 4px;
}

.scv-global-header {
  border-bottom: 1px solid rgba(23, 22, 26, 0.08);
  box-shadow: 0 8px 28px rgba(23, 22, 26, 0.06);
}

.scv-global-header .et_pb_menu,
.scv-global-header .et_pb_menu__wrap {
  background: transparent !important;
}

.scv-main-menu .et_pb_menu__logo img {
  height: 58px;
  width: 58px;
}

.scv-main-menu .et-menu > li > a {
  color: var(--scv-ink) !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.scv-main-menu .et-menu > li > a:hover,
.scv-main-menu .current-menu-item > a,
.scv-main-menu .current-menu-ancestor > a {
  color: var(--scv-red) !important;
  opacity: 1;
}

.scv-main-menu .menu-item-has-children > a:first-child::after {
  content: "▾";
  font-family: inherit !important;
  font-size: 0.72rem;
  font-weight: 800;
}

.scv-main-menu .mobile_menu_bar::before {
  content: "☰";
  font-family: inherit !important;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.scv-main-menu .sub-menu {
  border-radius: 0 0 10px 10px;
  box-shadow: var(--scv-shadow);
  padding: 12px 0;
}

.scv-main-menu .sub-menu a {
  color: var(--scv-ink) !important;
  font-size: 14px;
  line-height: 1.35;
  padding: 9px 20px;
  width: 280px;
}

.scv-hero h1 {
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  margin: 0;
  max-width: 1020px;
  padding: 0;
}

.scv-eyebrow {
  color: var(--scv-red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  margin: 0 0 18px;
  padding: 0;
  text-transform: uppercase;
}

.scv-lead {
  color: var(--scv-body);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
  margin-top: 24px;
  max-width: 760px;
}

.scv-section {
  padding: 76px 0;
}

.scv-content-row {
  align-items: center;
  display: flex;
  gap: 2.5%;
  max-width: 1200px;
  width: 88%;
}

.scv-content-row .et_pb_column {
  margin-right: 0 !important;
}

.scv-copy-card h2,
.scv-legal-copy h2,
.scv-site-copy h2 {
  font-size: clamp(1.85rem, 3vw, 3rem);
  margin-bottom: 18px;
}

.scv-copy-card p,
.scv-copy-card li,
.scv-legal-copy p,
.scv-legal-copy li,
.scv-site-copy p,
.scv-tabs p,
.scv-tabs li {
  font-size: 1rem;
  line-height: 1.75;
}

.scv-copy-card ul,
.scv-legal-copy ul,
.scv-tabs ul {
  padding-bottom: 1rem;
}

.scv-image-card,
.scv-site-image {
  border-radius: var(--scv-radius);
  box-shadow: var(--scv-shadow);
  overflow: hidden;
}

.scv-image-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.scv-site-image {
  margin-bottom: 22px !important;
}

.scv-site-image:last-child {
  margin-bottom: 0 !important;
}

.scv-site-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.scv-tabs {
  border: 0;
}

.scv-tabs .et_pb_tabs_controls {
  background: transparent;
  border-bottom: 1px solid var(--scv-line);
}

.scv-tabs .et_pb_tabs_controls li {
  background: transparent;
  border: 0;
  height: auto;
}

.scv-tabs .et_pb_tabs_controls li a {
  color: var(--scv-body);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 14px 18px;
  text-transform: uppercase;
}

.scv-tabs .et_pb_tabs_controls li.et_pb_tab_active {
  border-bottom: 3px solid var(--scv-red);
}

.scv-tabs .et_pb_tabs_controls li.et_pb_tab_active a {
  color: var(--scv-red) !important;
}

.scv-tabs .et_pb_all_tabs {
  background: var(--scv-white);
  padding: 30px 0 0;
}

.scv-button {
  margin: 8px 9px 8px 0 !important;
}

.scv-button.et_pb_button {
  box-shadow: 0 9px 24px rgba(201, 31, 38, 0.2);
  line-height: 1.35 !important;
  padding: 0.72em 1.1em !important;
}

.scv-button.et_pb_button:hover {
  background: var(--scv-ink) !important;
  padding: 0.72em 1.1em !important;
}

.scv-global-footer,
.scv-global-footer h3,
.scv-global-footer p,
.scv-global-footer a {
  color: var(--scv-white) !important;
}

.scv-global-footer h3 {
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.scv-footer-logo {
  max-width: 300px;
}

.scv-footer-copy ul {
  list-style: none !important;
  padding-left: 0 !important;
}

.scv-footer-copy li {
  margin-bottom: 8px;
}

.scv-footer-copy a:hover {
  color: var(--scv-yellow) !important;
}

.scv-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.scv-footer-legal p {
  font-size: 0.82rem;
  opacity: 0.72;
}

@media (max-width: 980px) {
  .scv-main-menu .et_pb_menu__logo img {
    height: 50px;
    width: 50px;
  }

  .scv-main-menu .et_mobile_menu {
    border-radius: 0 0 12px 12px;
    box-shadow: var(--scv-shadow);
    padding: 14px;
  }

  .scv-main-menu .et_mobile_menu a {
    color: var(--scv-ink) !important;
    font-weight: 700;
  }

  .scv-hero {
    padding: 54px 0 !important;
  }

  .scv-section {
    padding: 54px 0;
  }

  .scv-content-row {
    display: block;
    width: 90%;
  }

  .scv-content-row .et_pb_column {
    margin-bottom: 34px;
    width: 100% !important;
  }

  .scv-content-row .et_pb_column:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 15px;
  }

  .scv-hero h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .scv-tabs .et_pb_tabs_controls li {
    border-bottom: 1px solid var(--scv-line);
    display: block;
    width: 100%;
  }

  .scv-tabs .et_pb_tabs_controls li.et_pb_tab_active {
    border-bottom: 3px solid var(--scv-red);
  }

  .scv-tabs .et_pb_tabs_controls li a {
    display: block;
    padding: 13px 10px;
  }

  .scv-button {
    display: block !important;
    margin-right: 0 !important;
    text-align: center;
    width: 100%;
  }

  .scv-footer-row .et_pb_column {
    margin-bottom: 34px;
  }
}

/* Fondazione SCV PASS 2 components --------------------------------------- */

.scv-main-menu .et-menu > li {
  padding-left: 8px;
  padding-right: 8px;
}

.scv-main-menu .et-menu > li > a {
  font-size: 13px;
}

.scv-visual-hero {
  isolation: isolate;
  min-height: 600px;
  position: relative;
}

.scv-visual-hero::before {
  background: linear-gradient(90deg, rgba(23, 22, 26, 0.88) 0%, rgba(23, 22, 26, 0.58) 58%, rgba(23, 22, 26, 0.22) 100%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 0;
}

.scv-visual-hero .et_pb_row {
  position: relative;
  z-index: 1;
}

.scv-visual-hero h1 {
  color: var(--scv-white);
  font-size: clamp(2.7rem, 5.3vw, 5.25rem);
  margin: 0;
  max-width: 940px;
  padding: 0;
}

.scv-visual-hero .scv-eyebrow {
  color: var(--scv-yellow);
}

.scv-visual-hero .scv-lead {
  color: rgba(255, 255, 255, 0.9);
  max-width: 720px;
}

.scv-section-heading {
  margin-bottom: 34px !important;
  max-width: 820px;
}

.scv-section-heading h2 {
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  margin-bottom: 18px;
}

.scv-section-accent {
  background: var(--scv-paper);
}

.scv-card-row {
  align-items: stretch;
  display: flex;
  gap: 2.5%;
  margin-bottom: 30px;
  max-width: 1200px;
  width: 88%;
}

.scv-card-row:last-child {
  margin-bottom: 0;
}

.scv-card-row .et_pb_column {
  display: flex;
  margin-right: 0 !important;
}

.scv-card {
  background: var(--scv-white);
  border: 1px solid var(--scv-line);
  border-radius: var(--scv-radius);
  box-shadow: 0 14px 38px rgba(23, 22, 26, 0.08);
  overflow: hidden;
  transition: box-shadow 180ms ease, transform 180ms ease;
  width: 100%;
}

.scv-card:hover {
  box-shadow: var(--scv-shadow);
  transform: translateY(-4px);
}

.scv-card .et_pb_main_blurb_image {
  display: block;
  margin: 0;
  width: 100%;
}

.scv-card .et_pb_image_wrap,
.scv-card .et_pb_image_wrap img {
  display: block;
  width: 100%;
}

.scv-card .et_pb_image_wrap img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.scv-card .et_pb_blurb_container {
  padding: 24px 24px 26px;
}

.scv-card .et_pb_module_header {
  font-size: 1.28rem;
  margin-bottom: 10px;
  padding: 0;
}

.scv-card .et_pb_blurb_description p {
  line-height: 1.65;
}

.scv-course-card .et_pb_image_wrap img {
  aspect-ratio: 1 / 1;
  background: var(--scv-paper);
  object-fit: contain;
  padding: 18px;
}

.scv-course-card .et_pb_blurb_container {
  padding: 18px 18px 22px;
}

.scv-course-card .et_pb_module_header {
  font-size: 1rem;
}

.scv-lab-grid .scv-card .et_pb_image_wrap img {
  aspect-ratio: 16 / 10;
}

.scv-mini-card-section {
  background: var(--scv-paper);
  padding: 64px 0;
}

.scv-mini-card {
  background: var(--scv-white);
  border-left: 5px solid var(--scv-red);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(23, 22, 26, 0.07);
  padding: 28px;
  width: 100%;
}

.scv-mini-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.scv-check-list {
  list-style: none !important;
  padding: 12px 0 0 !important;
}

.scv-check-list > li {
  border-top: 1px solid var(--scv-line);
  padding: 14px 0 4px 28px;
  position: relative;
}

.scv-check-list > li::before {
  color: var(--scv-green);
  content: "●";
  left: 2px;
  position: absolute;
  top: 15px;
}

.scv-accordion .et_pb_toggle {
  border: 1px solid var(--scv-line);
  border-radius: 8px;
  margin-bottom: 12px;
}

.scv-accordion .et_pb_toggle_title {
  color: var(--scv-ink);
  font-weight: 750;
}

.scv-gallery .et_pb_gallery_item {
  margin: 0 2% 2% 0 !important;
  width: 32% !important;
}

.scv-gallery .et_pb_gallery_item:nth-child(3n) {
  margin-right: 0 !important;
}

.scv-gallery .et_pb_gallery_image {
  border-radius: 10px;
  overflow: hidden;
}

.scv-gallery .et_pb_gallery_image img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.scv-contain-image img,
.scv-wide-image img {
  object-fit: contain !important;
}

.scv-institutional-logos {
  margin: 0 auto;
  max-width: 920px;
}

.scv-institutional-logos img {
  object-fit: contain;
  width: 100%;
}

.scv-logo-strip {
  border-top: 1px solid var(--scv-line);
  padding: 34px 0;
}

.scv-cta-section {
  padding: 58px 0;
}

.scv-cta-section,
.scv-cta-section h2,
.scv-cta-section h3,
.scv-cta-section p,
.scv-cta-section a:not(.et_pb_button) {
  color: var(--scv-white) !important;
}

.scv-cta-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  margin-bottom: 12px;
}

.scv-cta-image {
  background-position: center;
  background-size: cover;
  position: relative;
}

.scv-button-secondary.et_pb_button {
  background: var(--scv-blue) !important;
}

@media (max-width: 1180px) and (min-width: 981px) {
  .scv-main-menu .et-menu > li {
    padding-left: 5px;
    padding-right: 5px;
  }

  .scv-main-menu .et-menu > li > a {
    font-size: 12px;
  }
}

@media (max-width: 980px) {
  .scv-visual-hero {
    min-height: 520px;
    padding: 82px 0 !important;
  }

  .scv-card-row {
    display: block;
    width: 90%;
  }

  .scv-card-row .et_pb_column {
    display: block;
    margin-bottom: 28px;
    width: 100% !important;
  }

  .scv-card-row .et_pb_column:last-child {
    margin-bottom: 0;
  }

  .scv-gallery .et_pb_gallery_item {
    margin-right: 3% !important;
    width: 48.5% !important;
  }

  .scv-gallery .et_pb_gallery_item:nth-child(3n) {
    margin-right: 3% !important;
  }

  .scv-gallery .et_pb_gallery_item:nth-child(2n) {
    margin-right: 0 !important;
  }
}

@media (max-width: 600px) {
  .scv-visual-hero {
    min-height: 500px;
    padding: 68px 0 !important;
  }

  .scv-visual-hero h1 {
    font-size: clamp(2.2rem, 12vw, 3.25rem);
  }

  .scv-gallery .et_pb_gallery_item {
    margin-right: 0 !important;
    width: 100% !important;
  }
}

/* Fondazione SCV PASS 3 course pages ------------------------------------ */

.scv-course-hero {
  min-height: 520px;
}

.scv-course-profile-row {
  align-items: center;
}

.scv-course-main-image img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.scv-course-specialization {
  color: var(--scv-red);
  font-size: 1.15rem;
  font-weight: 750;
  line-height: 1.45;
  margin-bottom: 22px;
}

.scv-course-detail-row .et_pb_column {
  align-items: stretch;
}

.scv-course-detail-card {
  background: var(--scv-white);
  border: 1px solid var(--scv-line);
  border-radius: var(--scv-radius);
  box-shadow: 0 14px 38px rgba(23, 22, 26, 0.07);
  height: 100%;
  padding: 30px;
}

.scv-course-detail-card h2 {
  font-size: clamp(1.45rem, 2vw, 2rem);
  margin-bottom: 18px;
}

.scv-course-detail-card ul,
.scv-course-path ul,
.scv-starting-courses ul {
  padding: 8px 0 0 1.25rem;
}

.scv-course-detail-card li,
.scv-course-path li,
.scv-starting-courses li {
  margin-bottom: 9px;
}

.scv-course-facts {
  align-items: stretch;
  display: flex;
  gap: 2%;
  margin-top: 28px;
}

.scv-course-facts .et_pb_column {
  display: flex;
  margin-right: 0 !important;
}

.scv-course-fact {
  background: var(--scv-paper);
  border-left: 5px solid var(--scv-red);
  border-radius: 8px;
  min-height: 100%;
  padding: 22px;
  width: 100%;
}

.scv-course-fact h3 {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.scv-course-fact p {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

.scv-course-pdf {
  margin-top: 28px;
}

.scv-course-logos {
  max-width: 960px;
}

.scv-starting-courses .et_pb_toggle_content {
  line-height: 1.7;
}

@media (max-width: 980px) {
  .scv-course-facts {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scv-course-facts .et_pb_column {
    margin: 0 !important;
    width: 100% !important;
  }
}

@media (max-width: 600px) {
  .scv-course-hero {
    min-height: 460px;
  }

  .scv-course-detail-card {
    padding: 22px;
  }

  .scv-course-facts {
    grid-template-columns: 1fr;
  }
}

/* Fondazione SCV PASS 4 news -------------------------------------------- */

.scv-news-single-hero {
  min-height: 540px;
  position: relative;
}

.scv-news-single-hero::before {
  background: linear-gradient(135deg, rgba(23, 22, 26, 0.84), rgba(23, 22, 26, 0.48));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.scv-news-single-hero .et_pb_row {
  position: relative;
  z-index: 2;
}

.scv-news-post-title,
.scv-news-post-title h1,
.scv-news-post-title .et_pb_title_meta_container,
.scv-news-post-title .et_pb_title_meta_container a {
  color: var(--scv-white) !important;
}

.scv-news-post-title h1 {
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  line-height: 1.05;
  margin-inline: auto;
  max-width: 1040px;
}

.scv-news-post-title .et_pb_title_meta_container {
  font-size: 0.84rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  margin-top: 22px;
  text-transform: uppercase;
}

.scv-news-post-content {
  font-size: 1.08rem;
  line-height: 1.8;
  margin-inline: auto;
  max-width: 840px;
}

.scv-news-post-content p,
.scv-news-post-content ul,
.scv-news-post-content ol,
.scv-news-post-content figure {
  margin-bottom: 1.45rem;
}

.scv-news-post-content ul,
.scv-news-post-content ol {
  padding-left: 1.35rem;
}

.scv-news-post-content img {
  border-radius: var(--scv-radius);
  height: auto;
  max-width: 100%;
}

.scv-news-post-content a {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.scv-news-archive-heading h1 {
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  margin: 0;
}

.scv-news-grid article.et_pb_post {
  background: var(--scv-white);
  border: 1px solid var(--scv-line);
  border-radius: var(--scv-radius);
  box-sizing: border-box;
  box-shadow: 0 12px 34px rgba(23, 22, 26, 0.08);
  display: flex;
  flex-direction: column;
  margin: 0 10px 32px !important;
  overflow: hidden;
  padding: 0 0 28px;
  transition: transform 180ms ease, box-shadow 180ms ease;
  width: auto;
}

.scv-news-grid article.et_pb_post:hover {
  box-shadow: var(--scv-shadow);
  transform: translateY(-4px);
}

.scv-news-grid .entry-featured-image-url {
  margin-bottom: 24px;
}

.scv-news-grid .entry-featured-image-url img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.scv-news-grid .entry-title,
.scv-news-grid .post-meta,
.scv-news-grid .post-content {
  margin-left: 24px;
  margin-right: 24px;
}

.scv-news-grid .entry-title {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.2;
}

.scv-news-grid .post-meta {
  color: #77716c;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.scv-news-grid .post-content {
  flex: 1 1 auto;
}

.scv-news-grid .post-content-inner > :last-child {
  margin-bottom: 0;
}

@media (min-width: 601px) {
  .scv-news-grid .post-content-inner {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    display: -webkit-box;
    overflow: hidden;
  }
}

.scv-news-grid .pagination {
  margin-top: 20px;
}

@media (max-width: 600px) {
  .scv-news-single-hero {
    min-height: 430px;
  }
}

/* PASS 5 — native Divi contact forms */
.scv-contact-forms .scv-contact-intro {
  margin: 0 auto 18px;
  max-width: 780px;
  text-align: center;
}

.scv-contact-form-row {
  background: var(--scv-white);
  border: 1px solid var(--scv-line);
  border-radius: var(--scv-radius);
  box-shadow: 0 12px 34px rgba(23, 22, 26, 0.08);
  margin-bottom: 34px;
}

.scv-contact-form .et_pb_contact_field {
  margin-bottom: 20px;
}

.scv-contact-form .input,
.scv-contact-form textarea.input {
  background: #f7f2e9;
  border: 1px solid #ded7cc;
  border-radius: 3px;
  color: #17161a;
  font-size: 16px;
  padding: 16px;
}

.scv-contact-form textarea.input {
  min-height: 170px;
}

.scv-contact-form .et_pb_contact_field_options_title,
.scv-contact-form .et_pb_contact_field_checkbox label {
  color: #383438;
  line-height: 1.55;
}

.scv-contact-form .et_pb_contact_field_checkbox a {
  font-weight: 700;
  text-decoration: underline;
}

.scv-contact-form .et_contact_bottom_container {
  float: none;
  margin-top: 6px;
  text-align: left;
}

.scv-contact-form .et_pb_contact_submit {
  background: #c91f26;
  border: 0;
  border-radius: 3px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 22px;
}

.scv-contact-form .et_pb_contact_submit:hover {
  background: #a51920;
  padding: 12px 22px;
}

/* PASS 5 — contact form micro refinement (Page 183 only) */
body.page-id-183 .scv-contact-form {
  padding: clamp(24px, 4vw, 46px);
}

body.page-id-183 .scv-contact-form [data-id="privacy"] {
  margin-bottom: 26px;
}

body.page-id-183 .scv-contact-form [data-id="privacy"] .et_pb_contact_field_options_title {
  display: none;
}

body.page-id-183 .scv-contact-form .et_contact_bottom_container {
  align-items: center;
  clear: both;
  display: flex;
  float: none;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
  margin: 8px 0 0 3%;
  text-align: left;
  width: 97%;
}

body.page-id-183 .scv-contact-form .et_pb_contact_right,
body.page-id-183 .scv-contact-form .et_pb_contact_right p {
  align-items: center;
  display: flex;
  margin: 0;
}

body.page-id-183 .scv-contact-form .et_pb_contact_right p {
  gap: 6px;
  padding: 0;
}

body.page-id-183 .scv-contact-form .et_pb_contact_submit {
  margin: 0;
}

@media (max-width: 767px) {
  body.page-id-183 .scv-contact-form {
    padding: 24px 18px;
  }
}
