

:root {
	--accent: #618df6;
}



.swal2-popup {
	font-family: var(--body-font-family) !important;
	background-color: var(--section-bg-color);
	color: var(--dark-color);
	border: 2px solid var(--primary-color);
}

.swal2-title {
	color: var(--primary-color);
	font-weight: bold;
}

.swal2-html-container {
	color: var(--p-color);
}

.swal2-icon.swal2-success {
	border-color: var(--primary-color);
	color: var(--primary-color);
}

.swal2-icon.swal2-error {
	border-color: #d33;
	color: #d33;
}

.swal2-confirm {
	background-color:  var(--primary-color) !important;
	color: var(--white-color) !important;
	font-weight: bold;
}

.tag-section {
    display: flex;
    flex-wrap: wrap; /* Optional: allows the tags to wrap if there's not enough space */
    gap: .8em 0.4em;
}

.tag-label {
	background: #bec0ca;
    padding: .2em .6em;
    border-radius: 20px;
}

.container.article p, ul li {
	color: #000;
}
a {
	color: var(--accent);
	font-weight: 800;
}
.preserve-aspect-ratio {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio, adjust if needed */
  background-size: cover;
  background-position: center center;
}
main.article {
	max-width: 1200px;
    margin: auto;
}

.speakers-thumb {
	background-color: #bfc0c1;
    height: 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
	animation: fadeIn 1.4s ease-in-out .4s backwards; /* Ensuring proper animation */
}
.speakers-thumb:hover {
	transform: scale(1.03); /* More compatible than "scale" */
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15); /* Enhancing depth effect */
}

.wp-block-image > img {
	width: 100%;
	max-width: 800px;
	max-height: 600px;
    margin: auto;
    display: block;
    border-radius: 20px;
}

.tag-link {
	cursor: pointer !important;
	color: var(--primary);
}

.wp-block-media-text {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.wp-block-media-text .wp-block-media-text__media {
	flex: 1;
	max-width: 50%;
}

.wp-block-media-text .wp-block-media-text__content {
	flex: 1;
	max-width: 50%;
}

@media (max-width: 782px) { /* Matches WordPress' breakpoint */
	.wp-block-media-text.is-stacked-on-mobile {
		flex-direction: column;
	}

	.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media,
	.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content {
		max-width: 100%;
	}
}



.news-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2.2em; /* Add some spacing between the items */
    justify-content: space-between;
    margin: 0 auto;
}
.news-title {
	padding: .8em .4em .2em .4em;
}
.news-card {
	background: #fff;
	border-radius: 20px;
	margin-bottom: 1em;
	padding: 1em; /* Improved padding for better spacing */
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
	transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
	animation: fadeIn 1.4s ease-in-out .4s backwards; /* Ensuring proper animation */
}

.news-card:hover {
	transform: scale(1.03); /* More compatible than "scale" */
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15); /* Enhancing depth effect */
}

/* Adding a simple fade-in effect */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
.news-featured-text {
    background: var(--secondary-color);
    border-radius: 4px;
    color: var(--white-color);
    position: absolute;
    top: 0;
    right: 0;
    font-size: 12px;
    text-transform: uppercase;
    margin: 10px;
    padding: 4px 12px;
}

.news-thumb {
	width: 100%;
    height: 360px;
    background-position: center center;
    background-size: cover;
    cursor: pointer;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}
.news-sub {
	padding: .2em 0.6em 0em 0.6em;
}

.col-lg-6, .col-lg-4 {
    flex: 1 1 100%;
}

@media (min-width: 576px) {
    .col-lg-6 {
        flex: 1 1 48%; /* 2 items in a row for small screens */
    }
}

@media (min-width: 768px) {
    .col-lg-4 {
        flex: 1 1 30%; /* 3 items in a row for medium screens */
    }
}

.table-cont {
	box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
	padding: 1em 1em .2em 1em;
    border-radius: 20px;
}
.btn-primary{
	background: var(--navbar-bg-color);
    border-radius: 100px;
    color: var(--white-color);
    font-size: var(--copyright-text-font-size);
    font-weight: var(--font-weight-bold);
    padding: 10px 20px;
}
b:has(.bx-x-circle) {
	background: #ff0707d4;
    height: 30px;
    display: block;
    width: 30px;
    border-radius: 50%;
}
b:has(.bx-check-circle) {
	background: #008000bd;
    height: 30px;
    display: block;
    width: 30px;
    border-radius: 50%;
}
.bx-check-circle {
	background: #fff;
	color: #fff;
	  display: inline-block;
	  width: 1em;
	  height: 1em;
	  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2C6.486 2 2 6.486 2 12s4.486 10 10 10s10-4.486 10-10S17.514 2 12 2m0 18c-4.411 0-8-3.589-8-8s3.589-8 8-8s8 3.589 8 8s-3.589 8-8 8'/%3E%3Cpath fill='%23000' d='M9.999 13.587L7.7 11.292l-1.412 1.416l3.713 3.705l6.706-6.706l-1.414-1.414z'/%3E%3C/svg%3E");
	  background-color: currentColor;
	  -webkit-mask-image: var(--svg);
	  mask-image: var(--svg);
	  -webkit-mask-repeat: no-repeat;
	  mask-repeat: no-repeat;
	  -webkit-mask-size: 100% 100%;
	  mask-size: 100% 100%;
}
.bx-x-circle {
	background: #fff;
	color: #fff;

  display: inline-block;
  width: 1em;
  height: 1em;
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9.172 16.242L12 13.414l2.828 2.828l1.414-1.414L13.414 12l2.828-2.828l-1.414-1.414L12 10.586L9.172 7.758L7.758 9.172L10.586 12l-2.828 2.828z'/%3E%3Cpath fill='%23000' d='M12 22c5.514 0 10-4.486 10-10S17.514 2 12 2S2 6.486 2 12s4.486 10 10 10m0-18c4.411 0 8 3.589 8 8s-3.589 8-8 8s-8-3.589-8-8s3.589-8 8-8'/%3E%3C/svg%3E");
  background-color: currentColor;
  -webkit-mask-image: var(--svg);
  mask-image: var(--svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}
.bx-check-circle, .bx-x-circle {
	border-radius: 50%;
	text-align: center;
	font-size: 30px;
}

.schedule-image {
	cursor: pointer;
	transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
	animation: fadeIn 1.4s ease-in-out .4s backwards; /* Ensuring proper animation */
}
.schedule-image:hover {
	transform: scale(1.03); /* More compatible than "scale" */
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15); /* Enhancing depth effect */
}

@media (max-width: 768px) {
    .avatar-group {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    .avatar-group .ms-3 {
        display: inline-block;
        margin-left: 10px;
    }
}

.avatar-group a {
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
	display: contents;
}
.row > a {
	display: contents;
}

@keyframes floatScale {
	0% {
		transform: translateY(0px) scale(1);
	}
	50% {
		transform: translateY(-5px) scale(1.02);
	}
	100% {
		transform: translateY(0px) scale(1);
	}
}

.floating-img {
	width: 100%;
	animation: floatScale 5s infinite ease-in-out;
}

.speakers-thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	transition: transform 0.3s ease-in-out;
}

.speakers-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: all 0.3s ease-in-out;
}

.fullscreen {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.8); /* Adds a background overlay */
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
	cursor: pointer;
}

.fullscreen img {
	width: auto;
	max-width: min(800px, 95vw);
	height: 90vh;
	object-fit: contain;
}

.wp-block-buttons {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 20px;
}

.wp-block-button {
	cursor: pointer !important;
	margin-bottom: 1em;
	display: inline-block;
}

.wp-block-button__link {
	display: inline-block;
	padding: 12px 24px;
	font-size: 16px;
	font-weight: bold;
	text-align: center;
	text-decoration: none;
	color: #ffffff;
	background-color: var(--accent);
	border-radius: 8px;
	transition: background-color 0.3s ease-in-out;
}

.wp-block-button__link:hover {
	color: #fff !important;
	background-color: var(--accent);
	opacity: 0.8;
	scale: 1.02;
}


.carousel-container {
	overflow: hidden;
	width: 100%;
	padding: 20px 0;
}
.carousel-card {
	flex: 0 0 auto;
	width: 100%;
	border-radius: 12px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	background: white;
	display: flex;
	flex-direction: column;
}
.carousel-card img {
	width: 100%;
	height: auto;
	display: block;
}
.carousel-card-content {
	padding: 12px 16px;
	display: flex;
	flex-direction: column;
}
.carousel-card h4 {
	font-size: 1.1em;
	margin: 0 0 6px;
}
.carousel-card p {
	font-size: 0.9em;
	margin: 0 0 6px;
	color: #555;
}
.carousel-card .date {
	font-size: 0.8em;
	color: #999;
	margin-top: auto;
}

.swiper {
	padding: 20px 0;
}
.swiper-slide {
	width: 25%; /* base: 4 per riga */
	min-width: 250px;
	max-width: 360px;
}
@media (max-width: 991px) {
	.swiper-slide {
		width: 50%;
	}
}
@media (max-width: 575px) {
	.swiper-slide {
		width: 100%;
	}
}
.carousel-card {
	border-radius: 12px;
	overflow: hidden;
	background: white;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: column;
}
.carousel-card img {
	width: 100%;
	height: auto;
	display: block;
}
.carousel-card-content {
	padding: 12px 16px;
	display: flex;
	flex-direction: column;
}
.carousel-card h4 {
	font-size: 1.1em;
	margin: 0 0 6px;
}
.carousel-card p {
	font-size: 0.9em;
	margin: 0 0 6px;
	color: #555;
}
.carousel-card .date {
	font-size: 0.8em;
	color: #999;
	margin-top: auto;
}

/* Sezione contatti principale */
#contact-us-body {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
}

#contact-us-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Container principale */
.contact-outer-box {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.contact-outer-box:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 35px 70px -12px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.6);
}

/* Grid layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
  gap: 0;
}

/* Colonna immagine */
.contact-image-column {
  position: relative;
  overflow: hidden;
}

.contact-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.contact-image-column::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.contact-outer-box:hover .contact-image {
  transform: scale(1.05);
}

.contact-outer-box:hover .contact-image-column::before {
  opacity: 0.4;
}

/* Colonna form */
.contact-form-column {
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* Titolo e testo */
.contact-title-box {
  margin-bottom: 40px;
  text-align: left;
}

.contact-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 16px;
  -webkit-background-clip: text;
  background-clip: text;
  position: relative;
}

.contact-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  border-radius: 2px;
}

.contact-text {
  font-size: 1.1rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Form styling */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Input containers */
.contact-input-outer {
  position: relative;
  display: flex;
  align-items: center;
}

/* Input fields */
.contact-input {
  width: 100%;
  padding: 18px 20px 18px 60px;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  font-size: 1rem;
  color: #374151;
  background: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  font-family: 'DM Sans', sans-serif;
}

.contact-input:focus {
  border-color: #3b82f6;
  background: #fafbff;
  transform: translateY(-2px);
  box-shadow: 
    0 12px 24px -8px rgba(59, 130, 246, 0.2),
    0 0 0 4px rgba(59, 130, 246, 0.1);
}

.contact-input::placeholder {
  color: #9ca3af;
  transition: color 0.3s ease;
}

.contact-input:focus::placeholder {
  color: #6b7280;
}

/* Textarea specific */
.contact-input.textarea {
  min-height: 120px;
  resize: vertical;
  padding-top: 20px;
}

/* Input icons */
.contact-input-icon-box {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  transition: all 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

.contact-input:focus + .contact-input-icon-box,
.contact-input:not(:placeholder-shown) + .contact-input-icon-box {
  color: #3b82f6;
  transform: translateY(-50%) scale(1.1);
}

/* Captcha wrapper */
.captcha_wrapper {
  display: flex;
  justify-content: center;
  margin: 10px 0;
}

.g-recaptcha {
  transform-origin: center;
}

/* Submit button */
.contact-button {
  color: white;
  border: none;
  padding: 18px 32px;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: none;
  font-family: 'DM Sans', sans-serif;
  position: relative;
  overflow: hidden;
  background: var(--primary-color);
}

.contact-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.contact-button:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 20px 40px -8px rgba(59, 130, 246, 0.4),
    0 0 0 2px rgba(59, 130, 246, 0.2);
}

.contact-button:hover::before {
  left: 100%;
}

.contact-button:active {
  transform: translateY(-1px);
}

/* Success/Error messages */
.w-form-done,
.w-form-fail {
  padding: 20px;
  border-radius: 12px;
  margin-top: 20px;
  font-weight: 500;
  text-align: center;
}

.w-form-done {
  color: #166534;
  border: 1px solid #86efac;
}

.w-form-fail {
  color: #dc2626;
  border: 1px solid #fca5a5;
}

/* Responsive Design */
@media (max-width: 991px) {
  .contact-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  
  .contact-image-column {
    height: 300px;
    order: -1;
  }
  
  .contact-form-column {
    padding: 40px 30px;
  }
  
  .contact-title {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  .contact-outer-box {
    border-radius: 16px;
    margin: 0 15px;
  }
  
  .contact-form-column {
    padding: 30px 25px;
  }
  
  .contact-title {
    font-size: 1.8rem;
  }
  
  .contact-input {
    padding: 16px 18px 16px 50px;
    font-size: 0.95rem;
  }
  
  .contact-input-icon-box {
    left: 18px;
  }
  
  .contact-button {
    padding: 16px 28px;
    font-size: 1rem;
  }
  
  .g-recaptcha {
    transform: scale(0.8);
  }
}

@media (max-width: 480px) {
  .contact-form-column {
    padding: 25px 20px;
  }
  
  .contact-title {
    font-size: 1.6rem;
  }
  
  .contact-text {
    font-size: 1rem;
  }
  
  .g-recaptcha {
    transform: scale(0.75);
  }
}

/* Animazioni aggiuntive */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-outer-box {
  animation: slideInUp 0.8s ease-out;
}

/* Focus trap per accessibilità */
.contact-input:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Loading state per il bottone */
.contact-button[data-wait] {
  position: relative;
}

.contact-button[data-wait]:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

.contact-button[data-wait]:disabled::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


.certifications{
	display:flex;
	justify-content:center;
	align-items:center;
	gap:40px;
	padding-top:1em;
	flex-wrap:nowrap;
}

.certifications img{
	max-height:60px;
	width:auto;
	filter:brightness(0) invert(1);
	transition:opacity .2s ease;
}

.certifications img:hover{
	opacity:.8;
}