.home .header-bottom {
    margin-bottom: 0;
}
.home footer {
    margin-top: 0;
}
.accordion-sergio {
	color: #fff;
}
.accordion-sergio p {
	text-align: justify;
	color: #fff;
}
.accordion-sergio p:nth-child(2) {
	margin-top: 20px;
}
@media (max-width: 768px) {
	.type-portfolio h1 {
		text-align: center;
	}
.recruiter-cta__arrow--left {
    top: 0;
}
.recruiter-cta__arrow--right {
    top: 0;
}
}
hr.wp-block-separator {
    border: 0;
    background: #fff;
}
button,
input,
select,
textarea,
li,
p {
    font-family: 'Arial', sans-serif;
	line-height: 1.7;
}
p, ul, li, a {
	font-weight: 300;
}
b a, strong a {
    font-weight: bold;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 500;
}
a,
a:hover,
a:focus,
a:active {
  color: #22adf5;
  position: relative;
  text-decoration: none;
}
.header-bottom #menu-main-menu a,
.header-bottom #menu-main-menu a:hover,
.header-bottom #menu-main-menu a:focus,
.header-bottom #menu-main-menu a:active,
.header-bottom #menu-main-menu a[aria-current="page"] {
      color: #22adf5;
      font-family: 'Michroma', 'Arial', sans-serif;
}
a::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  border-radius: 1px;
  background-color: #22adf5;
  bottom: 0;
  left: 0;
  transform-origin: right;
  transform: scaleX(0);
  transition: transform .3s ease-in-out;
}
a:hover::before {
  transform-origin: left;
  transform: scaleX(1);
}
.header-bottom a {
    color: #fff;
}
.header-bottom p a:hover {
    color: #22adf5;
}
.header-bottom > div > a::before {
    display: none;
}
a.gb-text {
	color: #fff;
	text-decoration: none;
}
.footer-top {
	background: #02091c !important;
}
.footer-bottom {
	background: #00030a !important;
}
.lista {
	margin-left: 30px;
	list-style: none;
	list-style-image: url(https://www.sergiopinna.it/wp-content/uploads/2026/04/flag-lista.png);
}
.lista li {
	margin-bottom: 18px;
	padding-left: 10px;
	font-family: 'Arial', sans-serif;
}
.lista-numerata {
    list-style: decimal;
}
.header-bottom {
    background: #041133b0 !important;
    border-bottom: 1px solid #ffffff80 !important;
    backdrop-filter: blur(15px);
}
.header-bottom #menu-main-menu {
	  display: flex;
    flex-wrap: wrap;
    margin: 0;
    align-content: center;
}
#menu-main-menu li {
	margin-right: 40px;
}
#menu-main-menu li:last-child {
	margin-right: 0;
}
.header-bottom #menu-main-menu a {
	padding: 0;
	color: #fff;
	font-size: 15px;
	text-transform: uppercase;
}
.header-bottom #menu-main-menu a[aria-current="page"] {
	display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    column-gap: 10px;
    padding: 0;
}
.header-bottom #menu-main-menu a[aria-current="page"]::before {
    transform-origin: left;
    transform: scaleX(1);
}
.separate-containers .inside-article {
	padding: 0;
}
.separate-containers .site-main {
	margin: 0;
}
.portfolio-singolo > div {
      overflow: hidden;
}
.portfolio-singolo > div::first-child {
    border-radius: 20px;
}
.portfolio-singolo img {
    transition: transform 500ms;
}
.portfolio-singolo:hover img {
  -ms-transform: scale(1.075); /* IE 9 */
  -webkit-transform: scale(1.075); /* Safari 3-8 */
  transform: scale(1.075);
}
.portfolio-singolo h3 {
  font-size: 22px !important;
  font-family: 'Arial', sans-serif;
  position: relative;
  color: #22adf5;
  margin-bottom: 3px;
}
.portfolio-singolo::before {
	display: none;
}
.portfolio-singolo h3::before {
	display: block;
	content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    border-radius: 1px;
    background-color: #22adf5;
    bottom: 0;
    left: 0;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform .3s ease-in-out;
}
.portfolio-singolo:hover h3::before {
	    transform-origin: left;
    transform: scaleX(1);
}
footer a:hover {
    text-decoration: none;
}
form[role="search"] {
	    margin-top: 10px;
    height: 40px;
}
form[role="search"] input,
form[role="search"] input:active,
form[role="search"] input:focus {
    border: 2px solid #007DC9;
    border-radius: 5px 0 0 5px;
    margin-right: -8px;
}
#cmplz-document {
	max-width: 1200px;
}
.wpcf7 a:hover {
	text-decoration: none;
}
.cf7-sergio sup {
    color: #ff8973;
}
.cf7-sergio .wpcf7-list-item {
margin: 0;
}
.cf7-sergio p {
	margin-bottom: 0;
    width: 100%;
    color: #fff;
}
.cf7-sergio label {
  display: block;
  margin-bottom: 8px;
  font-family: 'Michroma', 'Arial', sans-serif;
}
.cf7-sergio input[type="checkbox"] {
    width: auto;
    height: auto;
}
.my-form-row {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}
.my-form-row:nth-last-child(2) {
  display: block;
  margin-bottom: 30px;
}
.my-form-row:last-child {
  display: block;
  margin-bottom: 0;
}

.my-col-half {
  width: 50%;
}
.my-col-trecolonne {
    width: 33.333%;
}
.my-form-row-full {
  margin-bottom: 30px;
}

.privacy-row {
  margin-bottom: 0;
}

.privacy-row .wpcf7-list-item {
  margin-left: 0;
}
.cf7-sergio input::placeholder,
.cf7-sergio textarea::placeholder,
.cf7-sergio input,
.cf7-sergio select {
	width: 100%;
    background-color: #22adf5;
    border: 0;
    height: 50px;
    color: #000;
}
.cf7-sergio textarea {
    width: 100%;
    background-color: #22adf5;
    border: 0;
    height: 100%;
    max-height: 300px;
    color: #000;
}
.cf7-sergio input:focus,
.cf7-sergio textarea:focus {
  background-color: #22adf5;
  color: #000;
  outline: none;
}
.bottone-sergio,
.cf7-sergio input[type="submit"] {
  text-transform: uppercase;
  border-radius: 50px;
  border: 0;
  padding: 20px 40px;
  color: #fff;
  text-align: center;
  background-color: #22adf5;
  transition: all .3s;
  width: auto;
  text-shadow: 0 -1px rgba(0,0,0,0.2);
  font-family: 'Arial', sans-serif;
}
.cf7-sergio input[type="submit"] {
    height: auto;
	margin-top: 20px;
}
.bottone-sergio:hover,
.bottone-sergio:focus,
.bottone-sergio:active,
.cf7-sergio input[type="submit"]:hover {
  box-shadow: 0 10px 25px 0 #22adf580;
  transform: scale(1.1);
  background-color: #22adf5;
}
.portfolio-singolo:hover::before,
.portfolio-singolo:focus::before,
.portfolio-singolo:active::before,
.bottone-sergio:hover::before,
.bottone-sergio:focus::before,
.bottone-sergio:active::before {
	display: none !important;
}
@media only screen and (max-width: 1024px) {
    .footer-top > div {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .footer-top > div > div:nth-child(1) {
        width: 100%;
    }
    .footer-top > div > div:nth-child(2) {
        width: 46%;
        height: auto;
        max-height: 38px;
    }
    .footer-top > div > div:nth-child(3) {
        width: 46%;
    }
    .my-form-row {
    flex-direction: column;
    gap: 0;
      margin-bottom: 0;
    }
    .my-col-half {
    width: 100%;
    margin-bottom: 30px;
    }
    .cf7-sergio input[type="submit"] {
        margin-left: auto;
        margin-right: auto;
        display: block;
        width: 100%;
        text-transform: none;
    }
	.wpcf7-spinner {
		display: block;
		margin: 30px auto 0;
	}
}
/* Frontend Styles */

.schema-faq-section {
 background: #22ADF5;
 margin: 1rem 0;
 border: 2px solid rgba(0, 0, 0, 0.13);
 border-radius: 10px;
 box-shadow: 2px 2px 6px 2px rgba(0, 0, 0, 0.03);
 color: #fff;
}

.schema-faq-question{
cursor: pointer;
display: flex;
align-items: center;
transition: opacity ease 0.25s;
padding: 1rem;
color: var(--wp--preset--color--primary);
font-weight: normal;
font-size: 22px;
opacity: 0.9;
}

.schema-faq-question:hover {
 color: var(--wp--preset--color--secondary);
}

.schema-faq-question:after{
 width: 16px;
 height: 20px;
 display: inline-block;
 margin-left: auto;
 margin-right: 5px;
 vertical-align: top;
 color: inherit;
 content: "+";
 line-height: 20px;
}

.schema-faq-question.expanded:after{
 content: "-";
}

.schema-faq-question:hover{
 opacity: 1;
}

.schema-faq-answer{
 padding: 20px 20px 0;
 display: none;
 color: #fff;
}
.schema-faq-question.expanded {
	border-bottom: 2px solid rgb(0 0 0 / .13);
}
.schema-faq-question.expanded {
	opacity: 1;
}
.schema-faq-answer.default{
 display: block;
}

/* Backend Styles: Ensure all content is visible in the block editor */

.editor-styles-wrapper .schema-faq-question {
cursor: text;
}

.editor-styles-wrapper .schema-faq-answer {
display: block;
}
.section-sergio {
    height: calc(100vh - 251px);
    height: calc(100svh - 251px);
    background: url(https://www.sergiopinna.it/wp-content/uploads/2026/04/mare.webp);
    background-position: center;
    width: 100%;
    box-shadow: inset 0 0 10px 0 rgb(0 0 0 / 33%);
    position: relative;
    z-index: 20;
}
.section-sergio h1,
.section-sergio p,
.section-sergio a {
    position: relative;
    z-index: 30;
    color: #fff;
    font-weight: bold;
    letter-spacing: 2px;
}
.section-sergio h1 {
    text-shadow: 0 0 10px #ffffffc4;
    text-transform: uppercase;
    font-size: 38px;
}
.section-sergio p {
	font-family: 'Arial', sans-serif;
	font-weight: normal;
    letter-spacing: 0;
}
.background-video-container {
  pointer-events: none;
  z-index: 10;
  position: absolute;
  top: 0rem;
  right: 0rem;
  bottom: 0rem;
  left: 0rem;
  height: 100%;
  width: 100%;
  overflow: hidden;
}
.background-video-container video {
  background: url(https://www.sergiopinna.it/wp-content/uploads/2026/04/mare.webp);
  background-size: cover;
  height: auto;
  min-width: 100%;
  min-height: 100%;
  -webkit-transform: translateX(-50%) translateY(-50%);
          transform: translateX(-50%) translateY(-50%);
  width: auto;
  position: absolute;
  top: 50%;
  right: 0rem;
  bottom: 0rem;
  left: 50%;
}
.sfondo-sergio {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #000000b8;
    z-index: 999;
}
.wpcf7-not-valid-tip {
    color: #fff;
    font-size: 1em;
    font-weight: 400;
    background: #ff8973;
    display: block;
    padding: 10px 20px;
	position: relative;
	margin-top: 11px;
	border-radius: 30px;
}
.wpcf7-not-valid-tip:after {
	bottom: 100%;
	left: 60px;
	border: solid transparent;
	content: "";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
	border-color: rgba(255, 137, 115, 0);
	border-bottom-color: #ff8973;
	border-width: 10px;
	margin-left: -10px;
}
.portfolio-template-default.single h1 {
	color: #fff;
}
.portfolio-template-default.single article a {
    font-weight: bold;
}
.wpcf7-acceptance span {
    font-family: Arial;
}
.cta-sergio h2 {
	font-size: 50px !important;
}
.page-id-785 .schema-faq strong::before {
	display: none;
}
.card {
  background: #041133;
  color: #fff;
  position: relative;
  transition: background 0.1s;
  border: 1px solid rgba(255, 225, 225, 0.5);
}
.card:hover {
  --active: 1;
}

.card:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at calc(var(--x) * 1px) calc(var(--y) * 1px), hsl(0 0% 100% / 0.15), transparent 15vmin);
  background-attachment: fixed;
  opacity: var(--active, 0);
  transition: opacity 0.2s;
  pointer-events: none;
}

.card:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at calc(var(--x) * 1px) calc(var(--y) * 1px), hsl(0 0% 100% / 0.5), transparent 15vmin),
    transparent;
  background-attachment: fixed;
  pointer-events: none;
  mask:
    linear-gradient(white, white) 50% 0 / 100% 4px no-repeat,
    linear-gradient(white, white) 50% 100% / 100% 4px no-repeat,
    linear-gradient(white, white) 0 50% / 4px 100% no-repeat,
    linear-gradient(white, white) 100% 50% / 4px 100% no-repeat;
}
.card i {
    font-size: 60px;
    margin: 0 auto 30px;
    display: block;
}
.card svg {
    width: 85px;
    display: flex;
    margin: 0 auto 10px;
}
.form-note {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 24px;
  color: #555;
}

.required-star {
  color: #c0392b;
  font-weight: 700;
  margin-left: 2px;
}

.form-submit-note {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 20px;
  margin-bottom: 16px;
  color: #555;
}

.cf7-sergio label {
  display: block;
  margin-bottom: 8px;
}
@media only screen and (max-width: 768px) {
    .header-bottom {
        background: #041133 !important;
        backdrop-filter: none;
    }
    .footer-top > div > div:nth-child(2) > h4,
    .footer-top > div > div:nth-child(3) > h4 {
        text-align: left;
    }
    .footer-top > div > div:nth-child(2),
    .footer-top > div > div:nth-child(3) {
        width: 100%;
        height: auto;
        max-height: none;
    }
    .cf7-sergio label {
        font-size: 0.75em;
    }
    .cf7-sergio .wpcf7-acceptance label {
        font-size: 1em;
        margin-bottom: 20px;
    }
    button.gb-menu-toggle + div button.gb-menu-toggle {
        color: #041133;
        z-index: 9999;
    }
      .card::before {
    display: none;
  }
	.header-bottom a {
    font-size: 12px;
}
	.gb-menu-toggle {
		color: #fff;
	}
	.header-bottom #menu-main-menu {
		margin-top: 20px;
	}
	#menu-main-menu li {
        margin: 2px0 0 20px 0;
}
.section-sergio {
    margin-top: -22px;
    height: calc(100vh - 203px);
    height: calc(100svh - 203px);
    padding: 0;
}
.cta-sergio h2 {
    font-size: 30px !important;
}
.section-sergio h1 {
	font-size: 30px !important;
}
h1 {
	font-size: 2em !important;
}
.header-bottom #menu-main-menu a {
	color: #041133;
}
.home .header-bottom {
    margin-bottom: 25px !important;
}
  .background-video-container video {
    display: none !important;
  }
}
@media only screen and (max-width: 1530px) {
    .header-bottom p,
    .header-bottom #menu-main-menu a {
        font-family: 'Arial', sans-serif !important;
    }
}
@media only screen and (max-width: 1200px) {
    .header-bottom p,
    .header-bottom #menu-main-menu a {
        font-size: 11px;
    }
}
@media only screen and (max-width: 1024px) {
    .schema-faq-question {
        font-size: 1em;
    }
    .header-bottom #menu-main-menu a {
        color: #041133;
        margin-top: 20px;
        font-size: 14px;
    }
    .header-bottom #menu-main-menu a::before {
        background-color: #041133;
    }
    .my-col-trecolonne {
        width: 100%;
        margin-bottom: 20px;
    }
}
.cursor {
    width: 20px;
    height: 20px;
    border: 1px solid #fff;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transition: top 200ms ease-out, left 200ms ease-out;
    animation: cursorAnim 0.5s infinite alternate;
    pointer-events: none;
    z-index: 999999;
}
.cursor::after {
    content: "";
    width: 20px;
    height: 20px;
    position: absolute;
    border: 8px solid #fff;
    border-radius: 50%;
    opacity: 0.5;
    animation: cursorAnim2 0.5s infinite alternate;
    z-index: 999999;
}
@keyframes cursorAnim {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(0.7);
    }
}
@keyframes cursorAnim2 {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(0.4);
    }
}
@keyframes cursorAnim3 {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(3);
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}
.expand {
    animation: cursorAnim3 0.5s forwards;
    border: 1px solid #fff;
}
@media (hover: none), (pointer: coarse) {
    .cursor {
        display: none !important;
    }
}
/* Timeline Sergio Pinna */

.sp-timeline {
  position: relative;
  margin: 80px auto;
  padding: 20px 0;
}

.sp-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent,
    #d8dee8 8%,
    #d8dee8 92%,
    transparent
  );
  transform: translateX(-50%);
}

.sp-timeline-item {
  position: relative;
  width: 50%;
  padding: 0 48px 56px;
  box-sizing: border-box;
}
.sp-timeline-item:first-child {
    margin-top: 75px;
}
.sp-timeline-item:last-child {
    margin-bottom: 75px;
    padding-bottom: 0;
}

.sp-timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
  padding-left: 0;
}

.sp-timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
  padding-right: 0;
}

.sp-timeline-dot {
  position: absolute;
  top: 35px;
  width: 18px;
  height: 18px;
  background: #041133;
  border: 4px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #041133;
  z-index: 2;
}

.sp-timeline-item:nth-child(odd) .sp-timeline-dot {
  right: -9px;
}

.sp-timeline-item:nth-child(even) .sp-timeline-dot {
  left: -9px;
}

.sp-timeline-content {
  background: #ffffff;
  border: 1px solid #e8edf3;
  border-radius: 3px;
  padding: 28px;
  box-shadow: 0 18px 45px rgba(18, 18, 18, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.sp-timeline-item:nth-child(odd) .sp-timeline-content::after {
    left: 100%;
    top: 28px;
    border: solid transparent;
    content: "";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-color: rgba(255, 255, 255, 0);
    border-left-color: #ffffff;
    border-width: 15px;
}
.sp-timeline-item:nth-child(even) .sp-timeline-content::after {
    right: 100%;
    top: 28px;
    border: solid transparent;
    content: "";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-color: rgba(255, 255, 255, 0);
    border-right-color: #ffffff;
    border-width: 15px;
}
.sp-timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(18, 18, 18, 0.11);
}

.sp-timeline-date {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 12px;
  background: #041133;
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.sp-timeline-content h3 {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.2;
  color: #041133;
}

.sp-timeline-content p {
  margin: 0;
  color: #041133;
  font-size: 1rem;
}
.portfolio-singolo {
    display: flex;
    flex-wrap: nowrap;
    border-radius: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    padding: 20px;
    background: linear-gradient(190deg, #1e2946 0%, #041133 90%);
    flex-direction: column;
    justify-content: space-between;
}
.portfolio-singolo p,
.portfolio-singolo span {
    color: #fff !important;
}
.portfolio-singolo div,
.portfolio-singolo img {
    border-radius: 20px;
}
.portfolio-singolo div + div {
    padding: 20px;
    margin-top: -20px;
}
.scopri-il-progetto {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 14px;
  font-family: 'Arial', sans-serif;
  line-height: 1.2;
  opacity: 0.85;
  position: relative;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.scopri-il-progetto::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.portfolio-singolo:hover .scopri-il-progetto,
.portfolio-singolo:focus-visible .scopri-il-progetto {
  opacity: 1;
  transform: translateX(4px);
}

.portfolio-singolo:hover .scopri-il-progetto::after,
.portfolio-singolo:focus-visible .scopri-il-progetto::after {
  transform: scaleX(1);
}
@media (max-width: 768px) {
    h1 {
        font-size: 35px !important;
    }
    h2 {
        font-size: 30px !important;
    }
    h3 {
        font-size: 25px !important;
    }
    h4 {
        font-size: 20px !important;
    }
    h5 {
        font-size: 18px !important;
    }
    h6 {
        font-size: 16px !important;
    }
    p, li {
        font-size: 18px !important;
    }
    .sp-timeline {
        margin: 56px auto;
        padding-left: 26px;
    }

    .sp-timeline::before {
        left: 8px;
        transform: none;
    }

    .sp-timeline-item,
    .sp-timeline-item:nth-child(even),
    .sp-timeline-item:nth-child(odd) {
        width: 100%;
        left: 0;
        padding: 0 0 32px 7px;
        text-align: left;
    }

    .sp-timeline-item:nth-child(even) .sp-timeline-dot,
    .sp-timeline-item:nth-child(odd) .sp-timeline-dot {
        left: -27px;
        right: auto;
    }

    .sp-timeline-content {
        padding: 24px;
        border-radius: 3px;
    }
    .sp-timeline-item .sp-timeline-content::after {
        left: auto !important;
        right: 100% !important;
        border: solid transparent !important;
        border-right-color: #ffffff !important;
        border-width: 15px !important;
    }
}
p:empty {
    display: none !important;
}


.flip-box {
    background-color: transparent;
    width: 400px;
    height: 400px;
    perspective: 1000px;
    border-radius: 50%;
    overflow: hidden;
}

.flip-box-inner {
position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: 50%;
    /*overflow: hidden;*/    
}

.flip-box:hover .flip-box-inner {
  transform: rotateY(180deg);
}

.flip-box-front, .flip-box-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
      border-radius: 50%;
    /*overflow: hidden*/
}

/*.flip-box-front {
  background-color: #bbb;
  color: black;
}*/

.flip-box-back {
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    transform: rotateY(180deg);
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
}
.flip-box-back a {
    color: #041133;
}
.flip-box-back a::before {
  background-color: #041133;
}
.flip-box-back .titolo {
    color: #000;
    font-size: 35px;
    font-weight: bold;
    font-family: 'Michroma', 'Arial', sans-serif;
}
.flip-box-back .paragrafo {
    font-size: 25px;
    color: #000;
    font-weight: 500;
    font-family: 'Arial', sans-serif;
}
.box-in-basso a:hover h5 {
    color: #fff;
}
.elenco-landing-page {
    margin-left: 28px;
}
.elenco-landing-page li {
    font-family: 'Arial', sans-serif;
}
.skills-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.skills-badges span {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: #041133;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 999px;
    box-shadow: 0 0 5px #ffffff2e;
    font-size: 15px;
    line-height: 1.2;
}
.icona-check-bianca {
    margin-right: 10px;
    color: #fff;
}
.sergio-referenza-content {
  position: relative;
  max-height: 200px;
  overflow: hidden;
  transition: max-height 0.45s ease;
}

.sergio-referenza-card.is-expanded .sergio-referenza-content {
  max-height: 1200px;
}

.sergio-referenza-content::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  background: linear-gradient( to bottom, rgba(30, 41, 70, 0), #0F1B3B );
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.sergio-referenza-card.is-expanded .sergio-referenza-content::after {
  opacity: 0;
}

.sergio-referenza-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    margin-bottom: 0;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: center;
    margin-right: auto;
    margin-left: auto;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-underline-offset: 5px;
    position: relative;
}

.sergio-referenza-toggle:hover,
.sergio-referenza-toggle:focus {
  color: #ffffff;
  background: transparent;
}
.sergio-referenza-toggle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    border-radius: 1px;
    background-color: #fff;
    bottom: 0;
    left: 0;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform .3s ease-in-out;
}
.sergio-referenza-toggle:hover::before {
    transform-origin: left;
    transform: scaleX(1);
}
.sergio-referenza-toggle.is-hidden {
  display: none;
}
.sergio-referenza-card__author {
    margin-top: 26px;
}
.sergio-referenza-card:nth-child(7) .sergio-referenza-content::after,
.sergio-referenza-card:nth-child(8) .sergio-referenza-content::after,
.sergio-referenza-card:nth-child(9) .sergio-referenza-content::after {
    display: none;
}
.sergio-referenza-card:nth-child(7) .sergio-referenza-content,
.sergio-referenza-card:nth-child(8) .sergio-referenza-content,
.sergio-referenza-card:nth-child(9) .sergio-referenza-content {
    height: 150px;
}
.recruiter-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0;
}

.recruiter-cta__text {
    display: inline-block;
    line-height: 1.2;
}

.recruiter-cta__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    position: absolute;
    color: currentColor; /* prende il colore del testo */
}

.recruiter-cta__arrow svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* freccia a sinistra: punta verso destra */
.recruiter-cta__arrow--left {
    animation: recruiterArrowLeft 1s ease-in-out infinite;
    top: 3px;
    left: -25px;
}

/* freccia a destra: punta verso sinistra */
.recruiter-cta__arrow--right {
    transform: scaleX(-1);
    animation: recruiterArrowRight 1s ease-in-out infinite;
    top: 3px;
}

@keyframes recruiterArrowLeft {
    0%, 100% {
        transform: translateX(-6px);
    }
    50% {
        transform: translateX(0);
    }
}

@keyframes recruiterArrowRight {
    0%, 100% {
        transform: translateX(6px) scaleX(-1);
    }
    50% {
        transform: translateX(0) scaleX(-1);
    }
}
.header-top span {
    color: #fff;
}
.header-top a::before,
.header-top a:hover::before {
    background: #fff;
}
.wpcf7-response-output {
    border-radius: 30px;
    border-color: #ffb900;
    font-family: 'Arial', sans-serif;
    padding: 10px 20px;
    background: #ffb900;
    margin-right: 0 !important;
    margin-left: 0 !important;
}
.segnalazione-sergio {
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    padding: 20px;
    background: linear-gradient(190deg, #1e2946 0%, #041133 50%);
    border-radius: 20px 20px 0 0;
}
.sergio-masonry {
    padding: 1rem;
    margin: 0 auto;
    columns: 3 auto;
    column-gap: 30px;
}

.sergio-masonry-card {
    break-inside: avoid;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    margin-bottom: 30px;
    background: #041133;
    box-shadow: 0 0 5px #ffffff2e;
}
.sergio-masonry-card:last-child {
    margin-bottom: 0;
}
/* Immagini dentro le card */
.sergio-masonry-card img {
  height: auto;
  width: 100px;
  display: block;
}
@media (max-width: 1024px) {
  .sergio-masonry {
    columns: 2 auto;
  }
}
@media (max-width: 768px) {
  .sergio-masonry {
    columns: 1 auto;
  }
}
.wp-block-code {
    box-sizing: border-box;
    background: #DFDFDF;
    font-family: 'Arial', sans-serif;
    color: #000;
}
.single h2 {
    border-top: 1px solid #fff;
    padding-top: 80px;
    margin-bottom: 40px;
    margin-top: 100px;
}
.sergio-toc + h2,
.single h2:nth-child(1),
.single #toc-introduzione {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}
.single .articoli-correlati-sergio h2  {
    border-top: 0;
    padding-top: 0;
    margin-bottom: 30px;
    margin-top: 30px;
}
.single p {
    margin-bottom: 10px;
}
.single ul {
    margin-bottom: 15px;
}
.single .cta li {
    font-family: 'Arial', sans-serif;
}
.single .comments-area {
    padding: 0;
}
.single svg {
    fill: #fff;
}
.single .cta,
.single .cta .lista a {
    color: #041133;
}
.single .social-sergio a {
    width: 60px;
    display: block;
}
.single .comment-respond {
    margin: 100px 0;
}
.single pre,
.single pre.wp-block-code {
    margin: 28px 0;
    padding: 22px;
    overflow-x: auto;
    border-radius: 16px;
    background: #00030A;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    display: block;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 15px;
    line-height: 1.7;
    color: #f9fafb;
    white-space: pre;
    max-width: 893px;
}

.single code:not(pre code) {
  padding: 2px 6px;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.92em;
}
blockquote {
    border-left: 5px solid #7683a5;
    background: #00030A;
}
.archive .entry-title,
.blog .entry-title {
    font-size: 20px;
    line-height: 1.4em;
}
.archive .entry-title a,
.blog .entry-title a {
    color: #22adf5;

}
.archive .entry-title a:hover,
.blog .entry-title a:hover {
    text-decoration: underline;
}
.archive .entry-title a:before,
.blog .entry-title a:before {
    display: none !important;
}
.archive .entry-summary p,
.blog .entry-summary p {
    text-align: justify;
}
.archive .site-main,
.blog .site-main {
    display: grid;
    grid-column: 3;
    gap: 30px;
    grid-template-columns: repeat(3, 1fr);
}
.archive .post-image,
.blog .post-image {
    float: none !important;
    width: 100%;
    margin: 0 0 20px !important;
    border-radius: 20px 20px 0 0;
}
.archive .entry-summary,
.blog .entry-summary {
    margin-top: 20px;
    padding: 0 20px;
}
.resize-featured-image .post-image img {
    width: 100%;
}
.archive .site-main .post,
.blog .post {
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    background: #1E2946;
    width: 100%;
    margin-bottom: 0;
    display: flex;
}
.separate-containers .inside-article {
    background-color: transparent;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.archive .post img,
.blog .post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
@media (max-width: 1024px) {
    .archive .post,
    .blog .post {
        grid-column: span 3;
    }
    .blog .site-main {
        padding-left: 15px;
        padding-right: 15px;
    }
}
@media (max-width: 768px) {
    .archive .site-main .post,
    .blog .post {
        width: 100%;
        margin-right: 0 !important;
    }
}
footer.entry-meta {
    font-size: 14px;
    margin-top: auto;
    color: #fff;
    padding: 0 20px 20px;
}
.entry-header .entry-meta {
    font-size: 14px;
    margin-top: 25px;
    color: #fff;
    padding: 0;
}
.entry-header {
    padding: 0 20px;
}
.sergio-ultimi-articoli {
    width: 100%;
}

.sergio-ultimi-articoli-header {
    max-width: 1370px;
    padding: 0 15px;
}

.sergio-section-eyebrow {
    margin: 0 0 8px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #666;
}

.sergio-ultimi-articoli-header h2 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
}

.sergio-ultimi-articoli-header p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
}

.sergio-articoli-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.sergio-articolo-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    background: #1E2946;
    border: 1px solid rgb(255 255 255 / 25%);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sergio-articolo-img {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.sergio-articolo-img:hover::before {
    display: none;
}
.sergio-articolo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.sergio-articolo-card:hover .sergio-articolo-img img {
    transform: scale(1.04);
}

.sergio-articolo-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
}

.sergio-articolo-meta {
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #fff;
}

.sergio-articolo-content h3 {
    margin: 0 0 14px;
    font-size: 1.25rem;
    line-height: 1.25;
}

.sergio-articolo-content h3 a {
    line-height: 170%;
    color: #22adf5;
}
.sergio-articolo-content h3 a:hover::before {
    display: none;
}
.sergio-articolo-content h3 a:hover {
    text-decoration: underline;
}

.sergio-articolo-content p {
    margin: 0 0 20px;
    color: #ffffff;
    text-align: justify;
    line-height: 1.65;
}

.sergio-articolo-link {
    margin-top: auto;
    text-decoration: none;
    display: block;
    width: auto;
    color: #22adf5;
    text-decoration: none;
}

.sergio-articolo-link:hover {
    text-decoration: none;
}

@media (max-width: 1024px) {
    .sergio-articoli-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .sergio-ultimi-articoli {
        padding: 56px 18px;
    }

    .sergio-articoli-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .sergio-articolo-content {
        padding: 22px;
    }
}
.sergio-breadcrumb-wrap {
    width: 100%;
    padding: 0;
    grid-column: span 3;
}
.sergio-blog-header {
    width: 100%;
    padding: 0;
    grid-column: span 3;
}
.archive .site-main header {
    width: 100%;
    padding: 0;
    grid-column: span 3;
}
.archive .site-main .entry-header {
    width: 100%;
    padding: 0 20px;
    grid-column: span 3;
}
.archive .sergio-breadcrumb-wrap {
    margin-bottom: -10px;
}
.single .sergio-breadcrumb-wrap {
    margin-bottom: 30px;
}
.tag .page-title::first-letter{
    text-transform: uppercase;
}
.sergio-breadcrumb a::first-letter {
    text-transform: uppercase;
}
.archive .post-image a:hover::before,
.blog .post-image a:hover::before {
    display: none;
}
.archive .post-image,
.blog .post-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.archive .post:hover .post-image img,
.blog .post:hover .post-image img {
    transform: scale(1.04);
}
.sub-menu {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    overflow: hidden;
    box-shadow: 0 0 5px #ffffff2e;
    z-index: 9999;
}
.sub-menu li {
    padding: 20px;
    background: #1E2946 !important;
    margin-right: 0 !important;
}
.sub-menu li:last-child {
    padding: 0 20px 20px;
}
.single .gb-loop-item {
    flex-direction: column;
    padding: 0;
    display: flex;
}
.single .gb-loop-item > a {
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    display: block;
    padding-bottom: 20px;
}
.single .gb-loop-item > a:first-child:hover::before {
    display: none;
}
.single .gb-loop-item > div {
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    margin-bottom: 20px;
}
.single .gb-loop-item a img {
    border-radius: 20px 20px 0 0;
    margin-bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.single .gb-loop-item h3 a:hover::before {
    display: none;
}
.single .gb-loop-item h3 {
    margin-bottom: 15px;
    padding: 0 20px;
    line-height: 170%;
    font-size: 20px;
}
.single .gb-loop-item h3 a:hover {
    text-decoration: underline;
}
.single .gb-loop-item p {
    padding: 0 20px;
    text-align: justify;
}
.single .gb-loop-item > a:last-child {
    margin: auto 20px 20px;
    padding-bottom: 0;
    color: #22adf5;
}
.single .gb-loop-item:hover img {
    transform: scale(1.04);
}
@media (max-width: 1024px) {
    .sub-menu {
        border-radius: 0;
        border: 0;
        overflow: hidden;
        box-shadow: none;
    }
    .sub-menu li {
        padding: 20px;
        background: #fff !important;
        margin-right: 0 !important;
    }
    .sub-menu li a {
        margin-top: 0 !important;
    }
    .single .sergio-breadcrumb-wrap {
        padding-left: 15px;
        padding-right: 15px;
    }
    .archive #main {
        padding-left: 15px;
        padding-right: 15px;
    }
}
@media (max-width: 768px) {
    .single h1 {
        font-size: 25px !important;
        line-height: 170%;
    }
}
/* Form commenti - layout pulito */
.comments-area {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Titolo area commenti */
.comments-title,
.comment-reply-title {
    font-size: clamp(1.5rem, 2vw, 2rem);
    margin-bottom: 24px;
}

/* Form */
.comment-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

/* Nome + email in due colonne */
.comment-form-author,
.comment-form-email {
    margin: 0;
}

/* Textarea e note full width */
.comment-form-comment,
.comment-notes,
.comment-form-cookies-consent,
.form-submit,
.logged-in-as {
    grid-column: 1 / -1;
}

/* Label */
.comment-form label {
    display: block;
    margin-bottom: 8px;
}

/* Input e textarea */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 20px;
    padding: 14px 16px;
    font-size: 16px;
    line-height: 1.5;
    background: #fff;
}

/* Textarea */
.comment-form textarea {
    min-height: 180px;
    resize: vertical;
}

/* Focus */
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #1e2940;
    box-shadow: 0 0 0 3px rgba(30, 41, 64, 0.12);
}

/* Checkbox cookie */
.comment-form-cookies-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.95rem;
}

.comment-form-cookies-consent input {
    margin-top: 4px;
}

/* Pulsante invio */
.form-submit .submit {
    text-transform: uppercase;
    border-radius: 50px;
    border: 0;
    padding: 20px 40px;
    color: #fff;
    text-align: center;
    background-color: #22adf5;
    transition: all .3s;
    width: auto;
    text-shadow: 0 -1px rgba(0, 0, 0, 0.2);
    font-family: 'Arial', sans-serif;
}

.form-submit .submit:hover {
    box-shadow: 0 10px 25px 0 #22adf580;
    transform: scale(1.1);
    background-color: #22adf5;
}
.comment-form-sergio-privacy {
    grid-column: 1 / -1;
}
/* Mobile */
@media (max-width: 768px) {
    .comment-form {
        grid-template-columns: 1fr;
    }

    .comments-area {
        margin-top: 48px;
        padding-top: 36px;
    }
}
#comments {
    display: flex;
    flex-direction: column;
}
.comments-title {
    order: 2;
}
.comment-list {
    order: 3;
    margin-bottom: 0;
    background: #1E2946;
    padding: 0 50px;
}
/* Rende il menu sempre sopra agli elementi della home */
.header-bottom,
.gb-navigation,
.gb-menu-container,
.gb-menu,
.gb-sub-menu,
.sub-menu {
    position: relative;
    z-index: 99999;
}

/* Evita che video, overlay e sfondi della hero intercettino i click */
.background-video-container,
.background-video-container video,
.sfondo-sergio {
    pointer-events: none;
}

/* Fondamentale se usi il cursore custom */
.cursor {
    pointer-events: none;
}
html {
    scroll-behavior: smooth;
}
.single h2,
.single h3 {
    scroll-margin-top: 70px;
}
@media only screen and (max-width: 768px) {
    .sergio-toc-icon {
        font-size: 16px;
        line-height: 27.2px;
    }
    .single h2,
    .single h3 {
        scroll-margin-top: 80px;
    }
    .page h2 {
        scroll-margin-top: 400px;
    }
}
.archive .comments-link,
.blog .comments-link {
    display: none;
}
#sp-exit-popup .bottone-sergio:hover {
    box-shadow: none;
    transform: scale(1.05);
    background-color: #22adf5;
}
.page-id-2113 #sp-exit-popup {
    display: none;
}
.search p {
    text-align: justify;
}
.search figure a {
    border-radius: 20px;
    overflow: hidden;
}
.search figure a:hover::before {
    display: none;
}











/* =========================================================
   PATCH CROSS-BROWSER SAFARI / CHROME
   Da incollare alla fine del CSS attuale
========================================================= */


/* Migliore gestione del box model su Chrome/Safari */
*,
*::before,
*::after {
    box-sizing: border-box;
}


/* ---------------------------------------------------------
   HEADER CON BACKDROP-FILTER
   Safari richiede ancora spesso il prefisso -webkit-
--------------------------------------------------------- */

.header-bottom {
    background: rgba(4, 17, 51, 0.69) !important;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
}

/* Fallback nel caso in cui backdrop-filter non venga applicato */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .header-bottom {
        background: rgba(4, 17, 51, 0.96) !important;
    }
}

@media only screen and (max-width: 768px) {
    .header-bottom {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}


/* ---------------------------------------------------------
   FIX SELETTORE ERRATO
   Nel tuo CSS hai: .portfolio-singolo > div::first-child
   Il selettore corretto è :first-child, non ::first-child
--------------------------------------------------------- */

.portfolio-singolo > div:first-child {
    border-radius: 20px;
    overflow: hidden;
}


/* ---------------------------------------------------------
   TRANSFORM / TRANSITION
   Aggiungo il prefisso -webkit- dove può aiutare Safari
--------------------------------------------------------- */

.portfolio-singolo img,
.sergio-articolo-img img,
.archive .post img,
.blog .post img,
.single .gb-loop-item a img {
    -webkit-transition: -webkit-transform 0.35s ease;
    transition: -webkit-transform 0.35s ease;
    transition: transform 0.35s ease;
    transition: transform 0.35s ease, -webkit-transform 0.35s ease;
    will-change: transform;
}

.portfolio-singolo:hover img {
    -webkit-transform: scale(1.075);
    transform: scale(1.075);
}

.sergio-articolo-card:hover .sergio-articolo-img img,
.archive .post:hover .post-image img,
.blog .post:hover .post-image img,
.single .gb-loop-item:hover img {
    -webkit-transform: scale(1.04);
    transform: scale(1.04);
}

.bottone-sergio:hover,
.bottone-sergio:focus,
.bottone-sergio:active,
.cf7-sergio input[type="submit"]:hover,
.form-submit .submit:hover {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

#sp-exit-popup .bottone-sergio:hover {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
}

.sp-timeline-content:hover {
    -webkit-transform: translateY(-4px);
    transform: translateY(-4px);
}

.portfolio-singolo:hover .scopri-il-progetto,
.portfolio-singolo:focus-visible .scopri-il-progetto {
    -webkit-transform: translateX(4px);
    transform: translateX(4px);
}


/* ---------------------------------------------------------
   CARD CON MASK
   Safari/Chrome gestiscono meglio mask con -webkit-mask
--------------------------------------------------------- */

/*.card::after {
    background:
        radial-gradient(
            circle at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
            rgba(255, 255, 255, 0.15),
            transparent 15vmin
        );
}

.card::before {
    background:
        radial-gradient(
            circle at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
            rgba(255, 255, 255, 0.5),
            transparent 15vmin
        ),
        transparent;

    -webkit-mask:
        linear-gradient(#fff, #fff) 50% 0 / 100% 4px no-repeat,
        linear-gradient(#fff, #fff) 50% 100% / 100% 4px no-repeat,
        linear-gradient(#fff, #fff) 0 50% / 4px 100% no-repeat,
        linear-gradient(#fff, #fff) 100% 50% / 4px 100% no-repeat;

    mask:
        linear-gradient(#fff, #fff) 50% 0 / 100% 4px no-repeat,
        linear-gradient(#fff, #fff) 50% 100% / 100% 4px no-repeat,
        linear-gradient(#fff, #fff) 0 50% / 4px 100% no-repeat,
        linear-gradient(#fff, #fff) 100% 50% / 4px 100% no-repeat;
}*/

/* Su touch/mobile meglio evitare effetti legati al mouse */
@media (hover: none), (pointer: coarse) {
    .card::before,
    .card::after {
        display: none;
    }
}


/* ---------------------------------------------------------
   MASONRY CSS
   Migliora la compatibilità di columns + break-inside
--------------------------------------------------------- */

.sergio-masonry {
    -webkit-columns: 3;
    columns: 3;
    -webkit-column-gap: 30px;
    column-gap: 30px;
}

.sergio-masonry-card {
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
}

@media (max-width: 1024px) {
    .sergio-masonry {
        -webkit-columns: 2;
        columns: 2;
    }
}

@media (max-width: 768px) {
    .sergio-masonry {
        -webkit-columns: 1;
        columns: 1;
    }
}


/* ---------------------------------------------------------
   FLIP BOX 3D
   Correzione overflow + prefissi Safari per transform 3D
--------------------------------------------------------- */

.flip-box {
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

.flip-box-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    -webkit-transition: -webkit-transform 0.8s;
    transition: -webkit-transform 0.8s;
    transition: transform 0.8s;
    transition: transform 0.8s, -webkit-transform 0.8s;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    border-radius: 50%;
}

.flip-box:hover .flip-box-inner,
.flip-box:focus-within .flip-box-inner {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
}

.flip-box-front,
.flip-box-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 50%;
    overflow: hidden;
}

.flip-box-back {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
}


/* ---------------------------------------------------------
   VIDEO BACKGROUND
   Prefix transform per Safari
--------------------------------------------------------- */

.background-video-container video {
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
}


/* ---------------------------------------------------------
   FORM / INPUT
   Safari tende a stilizzare input, select e submit
--------------------------------------------------------- */

button,
input,
select,
textarea {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.cf7-sergio input,
.cf7-sergio select,
.cf7-sergio textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.cf7-sergio input[type="submit"],
.form-submit .submit {
    -webkit-appearance: none;
    appearance: none;
}

.cf7-sergio input[type="checkbox"],
.comment-form input[type="checkbox"] {
    -webkit-appearance: checkbox;
    appearance: checkbox;
}

.cf7-sergio select {
    border-radius: 0;
}

/* Placeholder più coerente su Safari/Chrome */
.cf7-sergio input::-webkit-input-placeholder,
.cf7-sergio textarea::-webkit-input-placeholder {
    color: #000;
    opacity: 1;
}

.cf7-sergio input::placeholder,
.cf7-sergio textarea::placeholder {
    color: #000;
    opacity: 1;
}


/* ---------------------------------------------------------
   WIDTH FIT-CONTENT
   Fallback prefissato per Safari
--------------------------------------------------------- */

.scopri-il-progetto {
    width: -webkit-fit-content;
    width: fit-content;
}


/* ---------------------------------------------------------
   COLORI MODERNI: fallback rgba più sicuro
--------------------------------------------------------- */

.schema-faq-question.expanded {
    border-bottom: 2px solid rgba(0, 0, 0, 0.13);
}

.sergio-articolo-card {
    border: 1px solid rgba(255, 255, 255, 0.25);
}


/* ---------------------------------------------------------
   ANIMAZIONI CON PREFISSO WEBKIT
--------------------------------------------------------- */

@-webkit-keyframes cursorAnim {
    from {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    to {
        -webkit-transform: scale(0.7);
        transform: scale(0.7);
    }
}

@keyframes cursorAnim {
    from {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    to {
        -webkit-transform: scale(0.7);
        transform: scale(0.7);
    }
}

@-webkit-keyframes cursorAnim2 {
    from {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    to {
        -webkit-transform: scale(0.4);
        transform: scale(0.4);
    }
}

@keyframes cursorAnim2 {
    from {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    to {
        -webkit-transform: scale(0.4);
        transform: scale(0.4);
    }
}

@-webkit-keyframes cursorAnim3 {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    50% {
        -webkit-transform: scale(3);
        transform: scale(3);
    }
    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 0;
    }
}

@keyframes cursorAnim3 {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    50% {
        -webkit-transform: scale(3);
        transform: scale(3);
    }
    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 0;
    }
}

@-webkit-keyframes recruiterArrowLeft {
    0%,
    100% {
        -webkit-transform: translateX(-6px);
        transform: translateX(-6px);
    }
    50% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
}

@keyframes recruiterArrowLeft {
    0%,
    100% {
        -webkit-transform: translateX(-6px);
        transform: translateX(-6px);
    }
    50% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
}

@-webkit-keyframes recruiterArrowRight {
    0%,
    100% {
        -webkit-transform: translateX(6px) scaleX(-1);
        transform: translateX(6px) scaleX(-1);
    }
    50% {
        -webkit-transform: translateX(0) scaleX(-1);
        transform: translateX(0) scaleX(-1);
    }
}

@keyframes recruiterArrowRight {
    0%,
    100% {
        -webkit-transform: translateX(6px) scaleX(-1);
        transform: translateX(6px) scaleX(-1);
    }
    50% {
        -webkit-transform: translateX(0) scaleX(-1);
        transform: translateX(0) scaleX(-1);
    }
}


/* ---------------------------------------------------------
   ACCESSIBILITÀ / MOTION
   Utile soprattutto su Safari iOS
--------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}