/*
Theme Name: Orec Srl
Theme URI: https://www.tabanellaorec.com/
Description: Blocksy Child theme
Author: Luca Scarpellini
Author URI: https://www.lucascarpellini.it/
Template: blocksy
Version: 1.0.0
Text Domain: blocksy
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Update URI: false
*/


/* VARIE E LAYOUT */
*,
*::before,
*::after {
	transition-duration: 0.5s !important;
	transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1)!important;
}


.grecaptcha-badge {
	opacity:.01!important;
	pointer-events:none!important;
}

.empty-column {
    display: none;
}

@media (min-width: 1001px) {
.empty-column {
	display: block;
    height: 100%;
}
}

@media (min-width: 760px) {
.full-height-section {
	height: calc(100vh - 124px);
	max-height: 1000px;
}
}

@media (max-width: 690px) {
.full-height-section {
	height: auto;
	max-height: none;
}
}

.page-id-61 main, .page-id-458 main, .error404 main {
    display: flex;
    align-items: center;
}

.page-id-61 .ct-container-full, .page-id-458 .ct-container-full, .error404 .ct-container-full {
    width: 100%;
    max-width: 1440px;
}

@media (max-width: 689px) {
.col-inv-mob .gspb_row__content {
    flex-direction: column-reverse;
}
}

@media (max-width: 999px) {
.col-inv-tab .gspb_row__content {
    flex-direction: column-reverse;
}
}

.custom-map {
    filter: saturate(0);
    border-radius: 30px!important;
    overflow: hidden;
}





/* FORM NEWSLETTER */
.int-nl-form {
	gap: 20px;
}

.wpcf7-textarea.cf7-ct-input {
	margin-bottom: 10px;
}

/* Wrapper generale */
.cf7-newsletter {
  margin: 0 auto;
  font-family: inherit;
  color: var(--theme-palette-color-8)!important;
}

/* Spaziatura righe */
.cf7-newsletter .cf7-nl-row {
	margin-bottom: 20px;
}

/* Campi testuali stile “linea” */
.cf7-newsletter .cf7-nl-input {
	width: 100%;
	border: none;
	border-bottom: 1px solid var(--theme-palette-color-7);
	background: transparent;
	color: var(--theme-palette-color-8)!important;
	font-size: 16px;
	padding: 0.75rem 0;
	border-radius: 0;
	box-shadow: none;
}

/* Rimuove outline nativo e gestisce focus */
.cf7-newsletter .cf7-nl-input:focus {
	outline: none;
	border-bottom-color: #ffffff!important;
}

/* Placeholder */
.cf7-newsletter .cf7-nl-input::placeholder {
  color: #a8a8a8!important;
  font-weight: 400;
}

/* Stato errore CF7 */
.cf7-newsletter .wpcf7-not-valid.cf7-nl-input {
	border-bottom-color: #ff6b6b;
}

.wpcf7-not-valid-tip {
    color: #ff6b6b;
    font-size: 14px!important;
    font-synthesis: none;
    font-weight: normal;
    display: block;
}

/* Checkbox + testo allineati */
.cf7-newsletter .cf7-nl-consent .wpcf7-list-item {
	margin: 0;
}

.cf7-newsletter .cf7-nl-consent label {
    display: flex!important;
    align-items: center;
    gap: 0.5rem;
    font-size: 12px!important;
    font-weight: 300!important;
    line-height: 1.2;
}

/* Checkbox custom (quadrato) */
.cf7-newsletter .cf7-nl-consent input[type="checkbox"] {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1px solid var(--theme-palette-color-6)!important;
    background: var(--theme-palette-color-8)!important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
}

/* Stato checked */
.cf7-newsletter .cf7-nl-consent input[type="checkbox"]:checked {
  background: var(--theme-palette-color-8)!important;
}

.cf7-newsletter .cf7-nl-consent input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--theme-palette-color-4)!important;
}

/* Link Privacy Policy */
.cf7-newsletter .cf7-nl-consent a {
	text-decoration: underline;
	color: inherit;
}

/* Pulsante */
.cf7-newsletter .cf7-nl-submit {
    display: inline-block;
    border: none;
    padding: 8px 20px;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    cursor: pointer;
    background: var(--theme-palette-color-1);
    color: var(--theme-palette-color-8);
    box-shadow: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

/* Hover del bottone */
.cf7-newsletter .cf7-nl-submit:hover {
    background: var(--theme-palette-color-9);
}

/* Versione mobile: bottone full width */
@media (max-width: 480px) {
.cf7-newsletter .cf7-nl-submit {
    width: 100%;
    text-align: center;
}
}





/* FORM GENERICO */
/* Wrapper generale */
.cf7-contact {
  margin: 0 auto;
  font-family: inherit;
  color: var(--theme-palette-color-2) !important;
}

/* Spaziatura righe e colonne */
.cf7-contact .cf7-ct-row {
  display: flex;
  gap: 25px;
  margin-bottom: 20px;
}

.cf7-contact .cf7-ct-field {
  flex: 1 1 0;
}

.cf7-contact .cf7-ct-field-full {
  flex-basis: 100%;
}

/* Versione mobile: campi uno sotto l’altro */
@media (max-width: 768px) {
  .cf7-contact .cf7-ct-row {
    flex-direction: column;
    gap: 20px;
  }
}

/* Campi testuali stile “linea” */
.cf7-contact .cf7-ct-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--theme-palette-color-6);
  background: transparent;
  color: var(--theme-palette-color-2) !important;
  font-size: 16px;
  padding: 0.75rem 0;
  border-radius: 0;
  box-shadow: none;
}

/* Rimuove outline nativo e gestisce focus */
.cf7-contact .cf7-ct-input:focus {
  outline: none;
  border-bottom-color: var(--theme-palette-color-4) !important;
}

/* Placeholder */
.cf7-contact .cf7-ct-input::placeholder {
  color: #8b8b8b !important;
  font-weight: 400;
  opacity: 1!important;
}

/* Stato errore CF7 */
.cf7-contact .wpcf7-not-valid.cf7-ct-input {
  border-bottom-color: #ff6b6b;
}

.wpcf7-not-valid-tip {
  color: #ff6b6b;
  font-size: 14px !important;
  font-synthesis: none;
  font-weight: normal;
  display: block;
}

/* Checkbox + testo allineati */
.cf7-contact .cf7-ct-consent {
  margin-bottom: 10px;
}

.cf7-contact .cf7-ct-consent .wpcf7-list-item {
  margin: 0;
}

.cf7-contact .cf7-ct-consent label {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  font-size: 12px !important;
  font-weight: 300 !important;
  line-height: 1.2;
}

/* Checkbox custom (quadrato) */
.cf7-contact .cf7-ct-consent input[type="checkbox"],
.cf7-contact .cf7-ct-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  border: 1px solid var(--theme-palette-color-6) !important;
  background: var(--theme-palette-color-8);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
}

/* Stato checked */
.cf7-contact .cf7-ct-consent input[type="checkbox"]:checked,
.cf7-contact .cf7-ct-checkbox:checked {
  background: var(--theme-palette-color-8) !important;
}

.cf7-contact .cf7-ct-consent input[type="checkbox"]:checked::after,
.cf7-contact .cf7-ct-checkbox:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--theme-palette-color-2) !important;
}

/* Link Privacy Policy */
.cf7-contact .cf7-ct-consent a {
  text-decoration: underline;
  color: inherit;
}

/* Pulsante */
.cf7-contact .cf7-ct-submit {
    display: inline-block;
    border: none;
    padding: 8px 20px;
	margin-top: 15px;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    cursor: pointer;
    background: var(--theme-palette-color-1);
    color: var(--theme-palette-color-8);
    box-shadow: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

/* Hover del bottone */
.cf7-contact .cf7-ct-submit:hover {
    background: var(--theme-palette-color-9);
}

/* Versione mobile: bottone full width */
@media (max-width: 480px) {
.cf7-contact .cf7-ct-submit {
    width: 100%;
    text-align: center;
}
}

/* Select in stile "linea" */
/* 1. Struttura base + Fix taglio testo */
.cf7-contact select.cf7-ct-input {
  /* Reset stile nativo */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* Fix per le lettere tagliate (g, y, q) */
  line-height: 1.4 !important; 
  
  /* Compensazione padding: ridotto da 0.75rem a 0.55rem 
     perché line-height 1.4 occupa più spazio verticale. 
     Questo mantiene l'altezza del campo uguale agli altri input. */
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  padding-left: 0;
  padding-right: 25px; /* Spazio a destra per la freccia */

  /* Stile bordo e sfondo */
  border: none;
  border-bottom: 1px solid var(--theme-palette-color-6);
  border-radius: 0;
  background-color: transparent;
  width: 100%;
  cursor: pointer;

  /* Icona freccia personalizzata */
  background-image: url('data:image/svg+xml;utf8,<svg fill="%238b8b8b" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 20px;
}

/* 2. Fix per il colore "Placeholder" (Grigio) */
/* Si attiva quando è selezionata l'opzione vuota "Field of interest" */
.cf7-contact select.cf7-ct-input:has(option[value=""]:checked) {
  color: #8b8b8b !important;
  font-weight: 400;
  opacity: 1 !important; /* Rimuove eventuali trasparenze native */
}

/* Fallback per browser vecchi (senza :has) */
.cf7-contact select.cf7-ct-input:required:invalid {
  color: #8b8b8b !important;
  font-weight: 400;
  opacity: 1 !important;
}

/* 3. Stile delle opzioni nel menu a tendina (Scure e leggibili) */
.cf7-contact select.cf7-ct-input option {
  color: var(--theme-palette-color-2); 
  background-color: #ffffff; /* Meglio bianco o colore solido per leggibilità */
  padding: 10px;
}
}

/* Nasconde il messaggio di successo (box verde) di CF7 */
.wpcf7 form.sent .wpcf7-response-output {
  display: none !important;
}





/* TIPOGRAFIA */
p, h1, h2, h3, h4, h5, h6 {
	text-wrap: pretty!important;
	overflow-wrap: anywhere; /* fallback cross-browser */
	word-break: normal;      /* evita spezzature aggressive */
}

p.footer-excerpt {
    font-size: 14px;
    line-height: 1.5em;
    color: var(--theme-palette-color-8);
    font-weight: 400!important;
}

p.footer-text {
    font-size: 12px;
    line-height: 1.2em;
    color: var(--theme-palette-color-8);
    font-weight: 400!important;
}

p.medtech-banner-text {
    font-size: 18px;
    line-height: 1.5em;
    color: var(--theme-palette-color-8);
    font-weight: 400!important;
}





/* HEADER E FOOTER */
#footer {
	border-radius: 40px!important;
    margin: 20px!important;
}

#header .ct-container {
    padding: 0px 20px!important;
	margin-left: 20px;
    width: calc(100% - 40px);
}

@media (min-width: 1481px) {
#header, #footer {
    margin-left: auto!important;
    margin-right: auto!important;
	width: 1440px!important;
}

#header .ct-container {
    margin-left: auto;
}
}

#offcanvas .ct-panel-actions {
    padding-top: 20px;
    padding-right: 20px;
}

.footer-col-2 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 18px;
	gap: 30px;
}

@media (max-width: 780px) {
.footer-col-2 {
    padding-bottom: 40px;
    padding-top: 40px;
}

.ct-footer [data-row="middle"] {
    margin-bottom: 20px;
}
}

#footer {
    position: relative;
    isolation: isolate;
}

#footer::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 201px;
    height: 321px;
    background-image: url("/wp-content/uploads/2025/11/pittogramma-footer.svg");
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: contain;
    mix-blend-mode: soft-light;
    opacity: 1;
    pointer-events: none;
}


@media (max-width: 781px) {
.footer-bottom-custom p {
    text-align: left;
}
}

ul.upcoming-courses {
    list-style: disc;
    margin-left: 15px;
}

footer a {
    text-decoration: auto;
}

footer li.wp-block-post {
    margin-block-end: 10px;
}





/* PLUS BOX */
.plus-box {
    overflow: hidden;
    height: 100%;
    min-height: 225px;
}

/* Base: mobile < 690px → 1 colonna */
.plus-box-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

/* Annulla le posizioni forzate del plugin */
.plus-box-container .plus-box {
  grid-column: auto !important;
  grid-row: auto !important;
}

/* Homepage */
@media (min-width: 691px) {
  .plus-box-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .plus-box-container {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1140px) {
  .plus-box-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* About */
@media (min-width: 691px) {
  .page-id-53 .plus-box-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .page-id-53 .plus-box-container {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}





/* BOTTONI */
.custom-button a, .custom-button-card {
    width: fit-content;
}

.custom-button-always-centered {
    margin-left: auto!important;
    margin-right: auto!important;
}

@media (max-width: 689px) {
.custom-button-centered {
    margin-left: auto!important;
    margin-right: auto!important;
}
}

.course-sticky-button {
	width: calc(100% - 40px)!important;
	margin-left: 20px!important;
}

@media (min-width: 690px) {
.course-sticky-button {
    display: none!important;
}
}





/* LOGHI FOOTER */
.footer-logos-gallery {
    display: flex;
    align-items: center;
    gap: 1em;
    flex-wrap: wrap;
    flex-direction: row;
    align-content: center;
    justify-content: flex-start;
}

.footer-logos-gallery .gspb_image img {
    max-width: 50px!important;
    max-height: 50px!important;
    width: auto;
    height: auto;
    object-fit: contain;
}





/* CARD CAROSELLI */
.course-badge {
    width: fit-content;
    margin: 20px 0 0 0;
}

.course-badge-card {
    background-color: var(--theme-palette-color-1);
}

.course-badge-page {
    background-color: var(--theme-palette-color-5);
}

.course-sold-out {
    background-color: var(--theme-palette-color-6);
    width: fit-content;
    margin: 20px 0 0 0;
}

.card-container {
    height: 100%;
    overflow: hidden;
}

.card-container {
  cursor: default!important;
}

.card-container.card-has-link {
  cursor: pointer!important;
}

.card-container h2 {
    font-weight: 700!important;
}

.card-meta {
    display: flex;
    gap: 5px;
    align-items: center;
}

.card-speaker {
    padding-right: 55px;
}

.card-hero {
	position: relative;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.5)!important;
	backdrop-filter: blur(5px)!important;
	-webkit-backdrop-filter: blur(5px)!important;
	max-width: 690px;
}

.card-hero-container {
    max-width: 690px;
}

.card-hero:hover {
	background: rgba(255, 255, 255, 0.8)!important;
}

.card-hero > * {
  position: relative;
  z-index: 1;
}

.card-hero-image {
    height: 100%;
}

@media (max-width: 689px) {
.card-hero-image {
    height: auto;
	aspect-ratio: 3/2;
	width: 100%;
}

.card-hero-container {
    width: 100%;
}
}

.card-24 {
	font-size: 24px!important;
}

.card-18 {
	font-size: 18px!important;
}

.card-14 {
	font-size: 14px!important;
}

.publication-link {
    display: none;
}





/* PAGINA CORSO */
.single-course-feat-img {
    flex-grow: 1;
}





/* BOTTONE E BADGE CORSO */
/* Not availble (ma non past) */
.course-not-available:not(.course-status-past) .course-badge,
.course-not-available:not(.course-status-past) .reserve-button,
.course-not-available:not(.course-status-past) .info-button,
.course-not-available:not(.course-status-past) .reserve-form,
.course-not-available:not(.course-status-past) .info-form {
  display: none !important;
}

/* Available (ma non past) */
.course-available:not(.course-status-past) .info-button,
.course-available:not(.course-status-past) .waitinglist-button,
.course-available:not(.course-status-past) .info-form,
.course-available:not(.course-status-past) .waitinglist-form {
  display: none !important;
}

/* Past (comanda sempre, anche se coesiste con altre classi) */
.course-status-past .course-badge,
.course-status-past .reserve-button,
.course-status-past .waitinglist-button,
.course-status-past .reserve-form,
.course-status-past .waitinglist-form {
  display: none !important;
}





/* BANNER MEDTECH ALLIANCE */
.medtech-banner-image {
    transform: scale(1.2);
}





/* MAPPA SYMPOSIUMS */
foreignObject > div {
    color: var(--theme-palette-color-2)!important;
    font-size: 16px;
    font-weight: 500;
    font-family: var(--theme-font-family);
}





/* PAGINAZIONE CAROSELLI */
.page-numbers {
    border-radius: 999px!important;
	border: 2px solid transparent;
}

.next.page-numbers, .prev.page-numbers {
    background-color: var(--theme-palette-color-3)!important;
	border: 2px solid var(--theme-palette-color-3)!important;
	color: var(--theme-palette-color-2);
}

.next.page-numbers:hover, .prev.page-numbers:hover {
    background-color: var(--theme-palette-color-6)!important;
	color: var(--theme-palette-color-8)!important;
	border: 2px solid var(--theme-palette-color-8)!important;
}

a.page-numbers:hover {
    background-color: var(--theme-palette-color-3)!important;
	border: 2px solid var(--theme-palette-color-3)!important;
	color: var(--theme-palette-color-2);
}

.page-numbers.current {
	border: 2px solid var(--theme-palette-color-1);
}





/* COLONNE PROGRAMMA AGENDA */
.course-agenda-program-cols {
	display: flex!important;
	gap: 30px;
	flex-wrap: wrap;
}

/* Di base tutte le colonne sono nascoste */
.course-agenda-program-col {
	flex: 1 1 0;
	min-width: 300px;
	display: none;
}

/* Mostra solo le colonne dove .gspb_text non è vuoto */
.course-agenda-program-col:has(.gspb_text:not(:empty)) {
	display: block;
}

/* Mobile: colonne una sotto l'altra */
@media (max-width: 768px) {
.course-agenda-program-cols {
	flex-direction: column;
}
}

.course-agenda-program-col h3 {
    font-size: 24px;
    font-weight: 700!important;
	color: var(--theme-palette-color-2);
    border-bottom: 2px solid var(--theme-palette-color-1);
    padding-bottom: 10px;
    margin-block-end: 30px;
}

.course-agenda-program-col h4 {
    font-size: 22px;
    font-weight: 700!important;
	color: var(--theme-palette-color-5);
    border-bottom: 2px solid var(--theme-palette-color-4);
    padding-bottom: 10px;
	margin-block-start: 20px;
    margin-block-end: 20px;
}

.course-agenda-program-col p {
    margin-block-end: 14px;
}





/* SITEMAP */
h2.rank-math-html-sitemap__title {
    font-size: 30px;
    font-weight: 500!important;
}

a.rank-math-html-sitemap__link {
    font-size: 18px;
}

/* Rank Math HTML Sitemap: 2 colonne da 1000px */
@media (min-width: 1001px){
.rank-math-html-sitemap {
  column-count: 2;
  column-gap: 40px;
  column-fill: balance;
}

.rank-math-html-sitemap__section{
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  display: inline-block;     /* fa sì che la sezione occupi la larghezza della colonna */
  width: 100%;
  margin: 0 0 32px;
}
}

ul.rank-math-html-sitemap__list {
    margin-left: calc(-2.5em + 13px);
}





/* ANIMAZIONI */
/* Card hero */
.card-hero-container {
  opacity: 0;
  animation: cardHeroFadeIn 1.0s ease-out 0.2s forwards;
}

@keyframes cardHeroFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Immagine hero */
.image-hero-col {
  opacity: 0;
  animation: imageHeroFadeIn 1.0s ease-out 0.8s forwards;
}

@keyframes imageHeroFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Accessibilità: disattiva animazioni se l’utente le ha ridotte */
@media (prefers-reduced-motion: reduce) {
  .card-hero-container,
  .image-hero-col {
    animation: none;
    opacity: 1;
  }
}
