/* GLOBAL */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Reset */
body, html{overflow-x: hidden; scroll-behavior: smooth; font-family: "DM Sans", serif;
 line-height: 1; font-size: 15px; color: #f5f4f5; box-sizing: border-box;margin: 0;padding: 0;}*,*:before,*:after{ box-sizing: border-box; }h1,h2,h3,h4,h5,h6, p, ol, ul{margin: 0 0 1rem 0;padding: 0;}ol,ul{padding-left: 20px;line-height: 1.5;}img{height: auto;}h1{font-size: 4rem;} h2{font-size: 3rem;} h3{font-size: 2rem;} h4{font-size: 1rem;} h5{font-size: 0.8rem;} h6{font-size: 0.6rem;}a{color:#06ffdf; font-weight: 300; text-decoration:none}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}


/* ! Grid System */
.grid { margin: 0 auto; padding: 0 15px; display: flex; flex-flow: row; flex-wrap: wrap; z-index: 2;}
.grid-swiper { margin: 0 auto; padding: 0 15px; width: 100%; display: flex; flex-flow: row; flex-wrap: wrap;}
.grid--center{justify-content: center;}
.col{ flex: 1;}

[class*='col-'] { position: relative;padding: 0 15px;}

.col-20{ width: 20%; }
.col-25{ width: 25%; }
.col-30{ width: 30%; }
.col-33{ width: 33.33%; }
.col-40{ width: 40%; }
.col-50{ width: 50%; }
.col-60{ width: 60%; }
.col-70{ width: 70%; }
.col-80{ width: 80%; }
.col-85{ width: 85%; }
.col-90{ width: 90%; }
.col-100{ width: 100%; }

@media (max-width: 991px) {
  .tab-20 { width: 20%; }
  .tab-25 { width: 25%; }
  .tab-33 { width: 33.33%; }
  .tab-50 { width: 50%; }
  .tab-100 { width: 100%; }
}

@media (max-width: 768px) {
  [class*='col-'] { width: 100%;}
  .sma-20 { width: 20%; }
  .sma-25 { width: 25%; }
  .sma-33 { width: 33.33%; }
  .sma-50 { width: 50%; }
  .sma-100 { width: 100%; }
}

.alignwide {
  margin: auto;
  max-width: 1380px;
  width: 100%;
}

.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  position: relative;
}


/* ! Helpers  */
.mt-0{margin-top: 0 }
.mt-1{margin-top: 10px}
.mt-2{margin-top: 20px}
.mt-3{margin-top: 40px}
.mt-4{margin-top: 100px }
.mt-5{margin-top: 200px }

.mb-0{margin-bottom: 0}
.mb-1{margin-bottom: 10px}
.mb-2{margin-bottom: 20px}
.mb-3{margin-bottom: 40px}
.mb-4{margin-bottom: 100px}

.p-0{padding: 0}
.p-1{padding: 10px}
.p-2{padding: 20px}
.p-3{padding: 40px}
.p-4{padding: 100px}

.pt-1{padding-top: 10px;}
.pt-3{padding-top: 20px;}
.pt-3{padding-top: 40px;}
.pt-4{padding-top: 15vh;}

.pb-1{padding-bottom: 10px;}
.pb-2{padding-bottom: 20px;}
.pb-3{padding-bottom: 40px;}
.pb-4{padding-bottom: 15vh;}

.container {max-width: 1360px; margin: auto;}

article {padding: 15px;}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.img-res { width: 100%; height: auto; margin-bottom: 20px;vertical-align: middle;}
.img-round { border-radius:50%; }
.z-index {position: relative; z-index: 999;}
.tradingview-widget-copyright {display: none!important;}
.tradingview-widget-container {height: 76px!important;}

.bagliore {-webkit-box-shadow: 0px 0px 23px -5px rgba(0, 202, 175, 1);
-moz-box-shadow: 0px 0px 23px -5px rgba(0, 202, 175, 1);
box-shadow: 0px 0px 23px -5px rgba(0, 202, 175, 1);}

.wp-block-social-links .wp-social-link a, .wp-block-social-links .wp-social-link a:hover {
    background: #1d3e62;
}

.has-inline-color {background: transparent;}

.wp-block-cb-carousel-v2 .cb-pagination .cb-pagination-bullet
 {
    background: #06ffdf!important;
}

.wp-block-cb-carousel-v2 .cb-button-next, .wp-block-cb-carousel-v2 .cb-button-prev
 {
    color: #06ffdf!important;
}

@media (min-width: 1024px) {
  /* lascia “respirare” il dropdown */
  #mega-menu-wrap-metric-header-menu { overflow: visible; position: relative; }

  #mega-menu-wrap-metric-header-menu #mega-menu-metric-header-menu > li.mega-menu-megamenu > ul.mega-sub-menu {
    position: absolute;
    /* 70vw centrati: 35vw ai lati dal centro del contenitore */
    left: calc(50% - 30vw);
    right: calc(50% - 30vw);
    width: auto;          /* sarà 70vw esatti */
    max-width: none;

    /* i tuoi stili */
    z-index: 999;
    border-radius: 10px;
    background: #101a2b;
    border: 2px solid #06ffdf;
    padding: 0;
  }
}

#mega-menu-wrap-metric-header-menu #mega-menu-metric-header-menu > li.mega-menu-megamenu > ul.mega-sub-menu li.mega-menu-column > ul.mega-sub-menu > li.mega-menu-item li.mega-menu-item > a.mega-menu-link {
    color: #06ffdf!important;
    font-size: 16px!important;
}

/* stile pulsante dentro il pannello del mega menu */
.max-mega-menu .mega-sub-menu a.mme-btn {
  display: inline-block;
  padding: 0.7rem 1.1rem;
  border-radius: 9999px;      /* pill */
  border: 2px solid #08ffdf;
  color: #08ffdf;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.max-mega-menu .mega-sub-menu a.mme-btn:hover {
  filter: brightness(0.95);
}
/* allineamento facoltativo */
.max-mega-menu .mega-sub-menu .widget_custom_html { text-align: center; }


.form-control {width: 85%;
    background: black;
    border: 1px solid #52ffdf;
    height: 30px;
    border-radius: 50px;
	color:#52ffdf;
}

.btn-outline-success {background: #52ffdf;
    width: 10%;
    border: none;
    height: 35px;
    border-radius: 20px;}



p {
  text-decoration: none;
  text-transform: none!important;
  color: #fff;
  font-size: 16px!important;
  font-weight: 500;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}

h3.wp-block-heading {
  position: relative;
  padding-left: 2rem; /* spazio per l’icona */
}

h3.wp-block-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.25rem;
  height: 1.25rem;
  transform: translateY(-50%);
  background: url("https://chebroker.com/wp-content/themes/metric-master/assets/build/img/h3-arrow.svg") no-repeat center / contain;
}

/* Solo home (front page o blog, vedi note sotto) */
.home nav,
.front-page nav {
  width: 100vw;
  padding: 25px;
  margin: auto;
  background: #000;
}

/* Tutte le altre pagine (non home/front-page) */
body:not(.home):not(.front-page) nav {
  width: 100vw;
  padding: 25px;
  margin: auto;
  background: #000;
  background: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(255,255,255,0) 73%);
}


nav .custom-logo {width: 180px; flex-shrink: 0;}

.site-branding {position: absolute; top:25px; left: 50px; width: 180px; z-index: 1}

/* ─────────── HERO ─────────── */

.container-hero h1 {
  text-align: left;
  color: #fff;
  font-size: 5rem;
  font-weight: 500;
  line-height: 1;
  font-style: italic;
}

.container-hero h1 span {
  font-weight: 500;
  font-style: normal!important;
  -webkit-font-smoothing: antialiased;
}

.container-hero a,
p {
  text-decoration: none;
  text-transform: uppercase;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}

.container-hero {
  position: relative;
  width: 100vw;
  height: 100svh;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  top: 0;
  width: 100vw;
  height: 100svh;
  overflow: hidden;
  z-index: -1;
}

.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-media {
  position: absolute;
  top: 0;
  width: 100vw;
  height: 100svh;
  overflow: hidden;
  z-index: -1;
}

/* Il video si comporta come l’immagine: cover, pieno schermo */
.hero-media .hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; /* evita spazi indesiderati */
}

.video-overlay {
  position: absolute;
  background: #000000;
  background: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(255, 255, 255, 0) 71%);
  top: 0;
  width: 100vw;
  height: 100svh;
  z-index: 1;
}

.hero-header {
  position: relative;
  width: 70%;
  height: 100%;
  padding-top: 25svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5em;
}

.hero-cta {
  position: absolute;
  left: 50%;
  bottom: 10em;
  transform: translateX(-50%);
  width: 60%;
  height: 60px;
  padding: 0.5rem;
  display: flex;
  justify-content: flex-end;
  background-color: #fff;
  border-radius: 4rem;
  will-change: transform;
}

.hero-cta-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.hero-cta-label p {
  color: #000;
  margin-bottom: 0;
}

.hero-cta-icon {
  position: relative;
  height: 100%;
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  background-color: #303030;
  border-radius: 60px;
  will-change: transform;
}

.hero-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100svh;
  overflow: hidden;
  z-index: 2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
}

.hero-block {
  width: 100%;
  height: 100%;
  background: #101a2b;
}

.hero-intro-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 0.25rem;
}

#hero-word-1 {
  position: relative;
  left: 0.5rem;
  padding-right: 0.25rem;
}

.hero-word h2 {
  font-size: 2.5rem;
	font-weight: 400;
}

.hero-divider {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  transform-origin: center top;
  width: 1px;
  height: 100%;
  background-color: #fff;
}

.hero-cta {
  transform: translateX(-50%) scale(0);
}

.hero-cta-icon {
  transform: scale(0);
}

.hero-line,
.hero-cta-label,
.hero-word,
.hero-count .hero-digit {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-line h1,
.hero-line p,
.hero-cta-label p,
.hero-count .hero-digit h1 {
  position: relative;
  transform: translateY(130%);
  will-change: transform;
}

.hero-description {font-size: 1.2rem!important;}

#hero-word-1 h2 {
  transform: translateY(-155%);
}

#hero-word-2 h2 {
  color: #52ffdf; transform: translateY(155%);
}

.hero-block {
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.hero-divider {
  transform: scaleY(0%);
  will-change: transform;
}

.hero-img {
  transform: scale(1.5);
  will-change: transform;
}

@media (max-width: 900px) {

  .cta {
    width: 90%;
  }
}


/************  LAYOUT WRAPPER  ************/
.blog-wrapper {
  max-width: var(--wp--style--global--wide-size);
  margin: 0 auto;
}

/************  TITLES  ************/
.section-title {
  font-size: 2.75rem;
  font-weight: 700;
  color: #06ffdf;
  margin-bottom: 2rem;
  padding: 1rem 15px;
  text-transform: uppercase;
  border-bottom: 1px solid #06ffdf;
}

.section-sub {
  font-size: 2rem;
  font-weight: 300;
  color: #9f9f9f;
  margin-bottom: 1.8rem;
  padding: 0 15px;
}

.section-sub-feat {
  font-size: 2rem;
  font-weight: 300;
  color: #06ffdf;
  margin-bottom: 1.8rem;
}

/************  FILTER  ************/

.cat-filter { font-family: system-ui, sans-serif; margin: 2.5rem 0; border-bottom: 1px solid #636363; padding: 20px 15px;}
.cat-filter .label{ font-weight: 600; margin-right: .25rem; display: block;
    margin: 15px 0;}

.cat-filter ul    { list-style: none; margin: 0; padding: 0; display: inline-flex; gap: .5rem; flex-wrap: wrap; }
.cat-filter li    { display: inline; }

.cat-filter a     { padding: .25rem .55rem; border: 1px solid #636363; border-radius: 25px; text-decoration: none; transition: background .2s; }
.cat-filter a:hover,
.cat-filter .active a { background: #222; color: #fff; border-color: #222; }

/************  BLOG  ************/

.skeleton-loader {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.skeleton-post {
  background: linear-gradient(90deg, #f0f0f0 25%, #e2e2e2 50%, #f0f0f0 75%);
  background-size: 400% 100%;
  height: 300px;
  border-radius: 12px;
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}


/************  GRID  ************/
.featured-and-recent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/************  FEATURED POST  ************/

.featured-post {padding: 15px; background: #1D3E62;}

.featured-post .thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.featured-post .meta {
  display: flex;
    justify-content: space-between;
    margin: 1rem 0 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #06ffdf;
    text-transform: uppercase;
    border-top: 1px solid #06ffdf;
    padding-top: 0.5rem;
}

.featured-post .cat {
	padding: 5px;
    color: #1D3E62;
}

.featured-post .cat a {
	border: 1px solid #06ffdf;
	border-radius: 25px;
	padding: 5px;
}

.featured-post .title {
  font-size: 1.65rem;
  margin: 0 0 1rem;
}

.featured-post .excerpt {
  color: #b8b8b8;
  line-height: 1.5;
}

/************  RECENT POST CARDS  ************/
.recent-posts .cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1rem;
}

.card {border-radius: 8px; background: #20242c}

.card .thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.card .meta {
  display: flex;
  flex-wrap: wrap;            /* ✅ permette di andare a capo */
  gap: .5rem .75rem;          /* ✅ spazio tra i tag (row/col) */
  justify-content: flex-start;/* ✅ evita distribuzione “forzata” */
  align-items: center;

  margin: 1rem 0 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #06ffdf;
  text-transform: uppercase;
  border-top: 1px solid #06ffdf;
  padding-top: 0.5rem;
}

.card .cat {padding-top: 5px; color: #20242c;}

.card .cat a {
	color: #9f9f9f;
	border: 1px solid #9f9f9f;
	border-radius: 25px;
	padding: 5px;
}

.card .date {
	color: #9f9f9f;
}

.card .card-title {
  font-size: 1.5rem;
  margin: 0 0 0.4rem;
}

.card .excerpt {
  font-size: 1rem;
  color: #b8b8b8;
  line-height: 1.4;
}

.col--flash {background: black;}

.topic-columns { margin-top: 48px; }
.topic-columns .cols-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.topic-columns .col-title {
    font-size: 1.8rem;
    font-weight: 300;
    margin: 0 0 12px;
    border-top: 1px solid #fff;
    padding-top: 15px;
}
.topic-columns .cards {
  display: grid;
  grid-auto-rows: 1fr;
  gap: 16px;
}
@media (max-width: 1024px) {
  .topic-columns .cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .topic-columns .cols-3 { grid-template-columns: 1fr; }
}


/************  RESPONSIVE  ************/
@media (max-width: 992px) {
  .featured-and-recent {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .recent-posts .cards {
    grid-template-columns: 1fr;
  }
}

#blog-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
  padding: 0 15px;
}

#search-input {
  flex: 1;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background: none;
  border: 1px solid #dddddd;
  border-radius: 50px;
  color: #52ffdf;
}

#category-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-button {
  padding: 0.5rem 1rem;
  border: none;
  background: #ddd;
  cursor: pointer;
  border-radius: 20px;
}

.filter-button.active {
  background: #52ffdf;
  color: #101a2b;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.post-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

/* === Layout base === */
.single-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
	max-width: 1380px;
    margin: 1rem auto;
}

.single-main {min-width: 0;}
.single-side { position: relative; padding: 0 15px; }


@media (max-width: 900px) {
    .single-grid {
        grid-template-columns: 1fr;
    }
    .single-side {
        order: -1; /* mette l’immagine e l’indice prima del contenuto su mobile */
    }
}

.single-back {max-width: 1380px; padding: 0 15px;
    margin: 4rem auto;}

.single-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
    margin: 0 0 1rem;
	color: #50f9da;
	border-top: 1px solid #06ffdf;
}

.single-lettura-preferiti {
	display: block;
    padding: 10px 0;
    border-top: 1px solid #9f9f9f;
    border-bottom: 1px solid #9f9f9f;
    margin-bottom: 25px;
}

.fav-btn {
	background: #101a2b;
    padding: 5px 10px;
    border: 1px solid #06ffdf;
    border-radius: 20px;
    color: #06ffdf;
	cursor: pointer;
}

.single-excerpt {
    font-size: 2rem;
    max-width: 40ch;
    margin-bottom: 2rem;
}

.single-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2.5rem;
}

.condividi {color: white;}

.single-share i { font-size: 1rem; color: white; }

.single-date {
    display: block;
    margin-bottom: 2rem;
    font-weight: 600;
	color: white;
    border-top: 1px solid #666;
    padding-top: 20px;
}

.reading-time {color: white;}

/* === Colonna destra === */
.single-cat {
	display: block;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    margin-bottom: 3rem;
}

.single-hero img,
.placeholder-hero {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #ddd;
    margin-bottom: 2rem;
}

/* === Indice dinamico === */

/* Desktop: sticky/fixed */
.toc-sticky { position: relative; }
.toc-sticky.is-fixed { position: fixed; top: 0; z-index: 1000; }

/* Mobile: accordion */
.toc-accordion { background: #101a2b; border-bottom: 1px solid #eee; }
.toc-accordion summary { cursor: pointer; padding: .8rem 1rem; font-weight: 600; list-style: none; }
.toc-accordion summary::-webkit-details-marker { display: none; }
.toc-accordion .toc-panel { max-height: 70vh; background: #fff; overflow: auto; padding: .5rem 1rem 1rem; border-top: 1px solid #eee; }

/* Switch responsive */
@media (min-width: 768px) {
  .toc-accordion { display: none; }
  .toc-sticky    { display: block; }
}
@media (max-width: 767.98px) {
  .toc-accordion { position: sticky; top: 0; z-index: 30; display: block; }
  .toc-sticky    { display: none; }
}

/* opzionale */
.toc-accordion .toc-panel a { display:block; padding:.4rem 0; text-decoration:none; }
.toc-accordion .toc-panel a:hover, 
.toc-accordion .toc-panel a:focus { text-decoration: underline; }


.indice-articolo {
  font-size: 0.9rem;
  color: #101a2c;
  padding: 1rem;
  margin-top: 25px;
  background: white;
  border-radius: 20px;
  z-index: 1;
  max-height: calc(100vh - 2rem);
}

.indice-articolo ul {
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
}
.indice-articolo li + li { margin-top: 0.4rem; }
.indice-articolo a { text-decoration: none; }
.indice-articolo a:hover { text-decoration: underline; }

/* === Sezione correlati === */
.single-related {
    margin-top: 4rem;
}

.related-title {
    max-width: 1380px;
    margin: 2rem auto;
    font-size: 2rem;
    border-top: 1px solid #06ffdf;
    padding: 1rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
	max-width: 1380px;
    margin: auto;
}
.related-card img,
.placeholder-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #eee;
    margin-bottom: 0.75rem;
}
.related-card h3 {
    font-size: 1rem;
    line-height: 1.3;
}

.comment-respond {
	max-width: 1380px;
    margin: auto;
}

.single-comments {
    margin-top: 4rem;
}
.must-login {
    padding: 1rem;
}
.must-login a {
    text-decoration: underline;
    font-weight: 600;
}

/************  AREA RISERVATA  ************/

.fr-wrap { max-width: 520px; margin: 100px auto; }
.fr-form {background: #253857; padding: 29px; border-radius: 20px;}
.fr-field { margin-bottom: 14px; }
.fr-field label { display:block; margin-bottom: 6px; font-weight: 600; }
.fr-field input[type="text"],
.fr-field input[type="email"],
.fr-field input[type="password"] { width:100%; padding:10px; border:1px solid #ddd; border-radius:6px; }
.fr-actions { margin-top: 16px; }
.fr-actions button { padding:10px 16px; border:0; border-radius:6px; cursor:pointer; }
.fr-errors { background:red; border:1px solid #f5b5b5; padding:10px 12px; border-radius:6px; margin-bottom:12px; }
.fr-success { background:#eaffea; border:1px solid #b8e6b8; padding:10px 12px; border-radius:6px; margin-bottom:12px; }
.fr-links { margin-top:10px; font-size: 0.95em; }

.fr-wrap #loginform { margin: 0; background: #253857; padding: 29px; border-radius: 20px; }                 /* niente margine extra */
.fr-wrap #loginform p { margin: 0 0 14px; }        /* come .fr-field */
.fr-wrap #loginform label { display:block; margin-bottom:6px; font-weight:600; }

/* Campi input */
.fr-wrap #loginform input[type="text"],
.fr-wrap #loginform input[type="email"],
.fr-wrap #loginform input[type="password"] {
  width:100%; padding:10px; border:1px solid #ddd; border-radius:6px;
}

/* Checkbox "Ricordami" allineata */
.fr-wrap #loginform .login-remember label {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 400; margin: 2px 0 0;
}
.fr-wrap #loginform .login-remember input[type="checkbox"] { width: 16px; height: 16px; }

/* Bottone invio come .fr-actions button */
.fr-wrap #loginform .login-submit #wp-submit {
  padding:10px 16px; border:0; border-radius:6px; cursor:pointer;
  width: 100%;
}

/* (Opzionale) Stato hover/focus leggero */
.fr-wrap #loginform input[type="text"]:focus,
.fr-wrap #loginform input[type="email"]:focus,
.fr-wrap #loginform input[type="password"]:focus {
  outline: none;
  border-color: #c7c7c7;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.04);
}
.fr-wrap #loginform .login-submit #wp-submit:hover {
  filter: brightness(1.03);
}

/* ————————————————————————————————
   Blocchi Commenti (scoped su .single-comments)
   ———————————————————————————————— */
.single-comments {
  --c-border: #ddd;
  --c-bg: #2c3338;
  --c-muted: #fff;  
  --c-text: #fff;   
  --c-primary: #52ffdf;
  --c-primary-contrast: #101a2b;
  --c-radius: 10px;
}

/* Spaziatura generale */
.single-comments { max-width: 1380px; margin: 5rem auto; }

/* ——— Form di inserimento (wp comment form) ——— */
.single-comments .comment-respond {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius);
  padding: 16px 18px;
  margin-bottom: 18px;
}

.single-comments .comment-respond .comment-reply-title {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-text);
}

.single-comments .comment-respond .logged-in-as {
  margin-bottom: 10px;
  color: var(--c-muted);
  font-size: .95rem;
}

/* Campi */
.single-comments #commentform p { margin: 0 0 14px; }
.single-comments #commentform label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--c-text);
}

.single-comments #commentform input[type="text"],
.single-comments #commentform input[type="email"],
.single-comments #commentform input[type="url"],
.single-comments #commentform textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  outline: none;
  background: #fff;
  color: var(--c-text);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.single-comments #commentform textarea {
  min-height: 140px;
  resize: vertical;
  color: #101a2c;
}

/* Focus */
.single-comments #commentform input:focus,
.single-comments #commentform textarea:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 20%, transparent);
}

/* Cookie/consenso */
.single-comments .comment-form-cookies-consent label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  color: var(--c-muted);
}

/* Submit */
.single-comments .form-submit { margin-top: 8px; }
.single-comments .form-submit input[type="submit"] {
  display: inline-block;
  width: 100%;
  padding: 10px 16px;
  border: 0;
  border-radius: 6px;
  background: var(--c-primary);
  color: var(--c-primary-contrast);
  font-weight: 700;
  cursor: pointer;
  transition: transform .06s ease, filter .12s ease;
}
.single-comments .form-submit input[type="submit"]:hover { filter: brightness(1.05); }
.single-comments .form-submit input[type="submit"]:active { transform: translateY(1px); }

/* Messaggi vari */
.single-comments .must-login,
.single-comments .no-comments,
.single-comments .comment-notes {
  margin-bottom: 12px;
  color: var(--c-muted);
  font-size: .95rem;
  text-align: center;
  background: #333;
  max-width: 80%;
  margin: auto;
}

/* ——— Lista dei commenti ——— */


/* Reply link */
.single-comments .reply {
  grid-column: 2 / -1;
  margin-top: 6px;
}
.single-comments .reply a {
  text-decoration: none;
  color: var(--c-primary);
  border-bottom: 1px solid color-mix(in srgb, var(--c-primary) 30%, transparent);
}
.single-comments .reply a:hover { border-bottom-color: var(--c-primary); }

/* Commenti annidati (children) */
.single-comments .children {
  list-style: none;
  padding-left: 24px;
  margin: 10px 0 0;
  border-left: 2px solid color-mix(in srgb, var(--c-border) 70%, transparent);
}
@media (max-width: 480px) {
  .single-comments .comment-body {
    grid-template-columns: 32px 1fr;
    gap: 10px;
    padding: 10px;
  }
  .single-comments .children { padding-left: 16px; }
}

/* Stato: in moderazione */
.single-comments .comment-awaiting-moderation {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 6px;
  font-size: .85rem;
  color: #92400e;
  background: #fff7ed;           /* arancio chiaro */
  border: 1px solid #fed7aa;
  border-radius: 6px;
}

/* Paginazione commenti */
.single-comments .comment-navigation {
  display: flex; justify-content: space-between; margin: 12px 0;
}
.single-comments .comment-navigation a {
  color: var(--c-primary);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--c-primary) 30%, transparent);
}
.single-comments .comment-navigation a:hover { border-bottom-color: var(--c-primary); }

/* Wrapper già uniforme con .fr-wrap/.fr-field/.fr-actions/... */

.profile-page .fr-avatar-field .fr-avatar-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
}

.profile-page .fr-avatar-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #ddd;
  background: #fff;
}

.profile-page .fr-avatar-actions input[type="file"] {
  display: block;
  margin-bottom: 6px;
}

.profile-page .fr-avatar-actions .fr-help {
  display: block;
  color: #6b7280;
  font-size: 0.9em;
  margin-bottom: 6px;
}

.profile-page .fr-avatar-actions .fr-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* —— User bottom bar —— */
.fr-userbar {
  position: fixed;
  display: none;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: #0f172a;           /* slate-900 */
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 -6px 16px rgba(0,0,0,.20);
  font-size: 15px;
}

@media (prefers-color-scheme: light) {
  .fr-userbar {
    background: #06ffdf;         /* slate-900 (resta scuro per contrasto) */
    color: #101a2b;
  }
}

.fr-userbar__inner {
  --gap: 12px;
  --maxw: 1100px;
  --pad: 10px 14px;
  margin: 0 auto;
  max-width: var(--maxw);
  padding: var(--pad);
  display: flex;
  align-items: center;
  gap: var(--gap);
}

.fr-userbar__text {
  flex: 1 1 auto;
  opacity: .95;
}

.fr-userbar__actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.fr-btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.fr-btn--primary {
  --fru-primary: #2563eb; /* blu-600 */
  background: var(--fru-primary);
  color: #fff;
  border-color: color-mix(in srgb, var(--fru-primary) 80%, #0000);
}
.fr-btn--primary:hover { filter: brightness(1.06); }

.fr-btn--ghost {
  background: #101a2b;
  color: #e5e7eb;
  border-color: rgba(255,255,255,.25);
}
.fr-btn--ghost:hover { background: rgba(255,255,255,.08); }

/* Bottone chiudi */
.fr-userbar__close {
  margin-left: 6px;
  background: transparent;
  color: #101a2b;
  border: 0;
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 6px;
  cursor: pointer;
}
.fr-userbar__close:hover { background: rgba(255,255,255,.08); color:#fff; }

/* Spazio sotto al contenuto quando la barra è visibile */
.has-fr-userbar body { padding-bottom: var(--fr-userbar-h, 56px); }

/* Mobile: layout a righe */
@media (max-width: 640px) {
  .fr-userbar__inner {
    flex-direction: column;
    align-items: stretch;
  }
  .fr-userbar__actions {
    width: 100%;
  }
  .fr-btn { width: 100%; text-align: center; }
}

/* ——— Griglia preferiti ——— */
.my-fav-grid{
  display: grid;
  gap: 1.5rem;
  /* auto-fill = quante colonne ci stanno, minimo 220 px */
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  margin: 0;
  padding: 0;
}

/* La card deve essere il contesto di posizionamento */
.fav-card{
  position: relative;            /* <— nuovo */
  background: #1d3e62;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.fav-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}

/* Immagine */
.fav-thumb{
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;          /* mantiene proporzioni uniformi */
  object-fit: cover;
}
.fav-thumb.placeholder{        /* placeholder se manca la thumb */
  background: #e8e8e8;
}

.fav-cats {display: flex; color: #1d3e62;}

.fav-cats a {display: block; padding: 10px 5px; border-bottom: none;}

/* Titolo */
.fav-title{
  font-size: 1.5rem;
  padding: .5rem 1rem 2.5rem;    /* <— aumentato il bottom padding */
  margin: 0;
  line-height: 1.35;
  color: #fff;
}

/* Bottone rimozione (in basso a destra) */
.fav-remove{
  position: absolute;
  right: .75rem;
  bottom: .75rem;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  color: #fff;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.fav-remove:hover{
  background: rgba(220,53,69,.9);    /* tono “danger” */
  transform: translateY(-1px);
}
.fav-remove:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(220,53,69,.35);
}

@media (prefers-color-scheme: dark){
  .fav-card{ background:#222; box-shadow: 0 2px 6px rgba(0,0,0,.4);}
  .fav-title{ color:#f3f3f3; }
  .fav-remove{ background: rgba(255,255,255,.2); color:#fff; }
  .fav-remove:hover{ background: rgba(255,80,80,.9); }
}


/* Modalità scura (facoltativo) */
@media (prefers-color-scheme: dark){
  .fav-card{ background:#222; box-shadow: 0 2px 6px rgba(0,0,0,.4);}
  .fav-title{ color:#f3f3f3; }
}

#footer {
  clear: both;
  margin: 10px 0;
}

footer {border-top: 1px solid #52ffdf; margin-top: 25px;}

#topBtn {
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 9999;
  display: block;
  background-color: #06ffdf;
  color: #101a2b;
  border: none;
  padding: 10px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#topBtn.show {
  opacity: 1;
  pointer-events: auto;
}

#topBtn:hover {
  background-color: #555;
}

#topBtn svg {
  vertical-align: middle;
}


/* Stili per articoli singoli */

   :root {
            --primary-color: #50F9DA;
            --secondary-color: #00D4AA;
            --accent-color: #ff9500;
            --text-color: #333;
            --bg-color: #fff;
            --card-bg: #f8f9fa;
            --border-color: #ddd;
            --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            --font-heading: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            --border-radius: 15px;
            --spacing-unit: 20px;
            --cta-color: #50F9DA;
            --key-points-color: #E63B18;
          

        }
        
        
        /* YouTube Video Embed */
        .video-container {
            margin: 30px 0;
            text-align: center;
            padding: 20px;
            background: var(--card-bg);
            border-radius: var(--border-radius);
            border: 2px solid var(--primary-color);
        }
        
        .video-placeholder {
            width: 100%;
            height: 400px;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            border-radius: var(--border-radius);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.2rem;
            font-weight: bold;
        }
        
        /* CTA Banner */
        .cta-banner {
            background: var(--cta-color);
            padding: 20px;
            margin: 30px 0;
            border-radius: var(--border-radius);
            text-align: center;
            border: none;
            box-shadow: 0 4px 15px rgba(80, 249, 218, 0.3);
        }
        
        .cta-banner h3 {
            color: var(--text-color);
            margin: 0 0 10px 0;
            font-size: 1.4rem;
            font-weight: 700;
        }
        
        .cta-banner p {
            color: var(--text-color);
            margin: 0;
            font-weight: 600;
        }
        
        .cta-logo {
            font-size: 1.2rem;
            font-weight: bold;
            color: var(--text-color);
            margin-bottom: 10px;
        }
        
        .cta-button {
            display: inline-block;
            background: #e63b18;
            color: var(--bg-color);
            padding: 12px 24px;
            text-decoration: none;
            border-radius: 8px;
            font-weight: bold;
            margin-top: 10px;
            transition: all 0.3s ease;
        }
        
        .cta-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        }
        
        /* Table of Contents */
        .toc {
            background: white;
            border: 2px solid var(--primary-color);
            border-radius: var(--border-radius);
            padding: 25px;
            margin: 30px 0;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        
        .toc h2 {
            color: var(--primary-color);
            margin: 0 0 20px 0;
            text-align: center;
            font-size: 1.5rem;
        }
        
        .toc-list {
            list-style: none;
            padding: 0;
        }
        
        .toc-list li {
            margin: 10px 0;
        }
        
        .toc-list a {
            color: #333;
            text-decoration: none;
            padding: 5px 15px;
            display: block;
            border-radius: 8px;
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-left: 4px solid var(--primary-color);
            transition: all 0.3s ease;
            font-weight: 500;
        }
        
        .toc-list a:hover {
            background: var(--primary-color);
            color: #333;
            transform: translateX(5px);
            border-left: 4px solid #333;
        }
        
        /* Key Points */
        .key-points {
            background: var(--card-bg);
            border: 3px solid var(--key-points-color);
            border-radius: var(--border-radius);
            padding: 25px;
            margin: 30px 0;
            box-shadow: 0 5px 15px rgba(230, 59, 24, 0.2);
        }
        
        .key-points h3 {
            color: var(--key-points-color);
            margin: 0 0 20px 0;
            text-align: center;
            font-size: 1.4rem;
            font-weight: 600;
            line-height: 1.3;
        }
        
        .key-points ul {
            list-style: none;
            padding: 0;
        }
        
        .key-points li {
            background: white;
            margin: 12px 0;
            padding: 18px;
            border-left: 5px solid var(--key-points-color);
            border-radius: 8px;
            font-size: 1.05rem;
            color: #101a2c;
            line-height: 1.6;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        
        .key-points li strong {
            color: var(--key-points-color);
            font-weight: 600;
            font-size: 1.1rem;
        }
        
        
        /* Content sections */
        .content-section {
            margin: 30px 0;
        }
        
        .content-section p {
            margin: 20px 0;
            text-align: justify;
            font-size: 1.15rem;
            line-height: 1.8;
            font-weight: 400;
            color: var(--bg-color);
        }
        
        .content-section p strong {
            font-weight: 700;
            color: var(--primary-color);
        }
        
        /* Image placeholders */
        .image-placeholder {
            width: 100%;
            max-width: 600px;
            height: 300px;
            background: var(--card-bg);
            border: 2px dashed var(--border-color);
            border-radius: var(--border-radius);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 20px auto;
            color: var(--text-color);
            font-weight: bold;
            text-align: center;
            padding: 20px;
        }
        
        /* Tables */
        .comparison-table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
            background: white;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
			table-layout: fixed;              /* fondamentale */

        }
        
        .comparison-table th {
            background: var(--primary-color);
            color: var(--bg-color);
            padding: 15px;
            text-align: center;
            font-weight: 700;
        }
        
        .comparison-table td {
            padding: 12px 15px;
            text-align: center;
            border-bottom: 1px solid var(--border-color);
            color: var(--text-color);
        }

		.comparison-table th,
		.comparison-table td {
		  word-break: break-word;           /* o overflow-wrap:anywhere; */
		  overflow-wrap: anywhere;
		}
        
        .comparison-table tr:hover {
            background: var(--card-bg);
        }
        
        /* Lists */
        ul, ol {
            margin: 15px 0;
            padding-left: 30px;
        }
        
        li {
            margin: 8px 0;
        }
        
        /* Step lists */
        .step-list {
            background: var(--card-bg);
            border-radius: var(--border-radius);
			color: #101a2b;
            padding: 20px;
            margin: 20px 0;
            border: 1px solid var(--border-color);
        }
        
        .step-list ol {
            counter-reset: step-counter;
            list-style: none;
            padding: 0;
        }
        
        .step-list li {
            counter-increment: step-counter;
            background: white;
            margin: 10px 0;
            padding: 15px 15px 15px 50px;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            position: relative;
            color: var(--text-color);
        }
        
        .step-list li::before {
            content: counter(step-counter);
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            background: var(--primary-color);
            color: var(--bg-color);
            width: 25px;
            height: 25px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 0.9rem;
        }
        
        /* Warning box style */
.warning-box {
    background: #fff3cd;
    border: 2px solid var(--accent-color);
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(255, 149, 0, 0.2);
    position: relative;
	color: black;

}

.warning-box h3 {
    color: #856404;
    margin: 0 0 20px 0;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
}

.warning-box strong {
    color: var(--accent-color);
    font-weight: bold;
}

.warning-box ul {
    list-style: none;
    padding: 0;
}

.warning-box li {
    background: white;
    margin: 15px 0;
    padding: 15px 20px;
    border-left: 5px solid var(--accent-color);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-size: 1.05rem;
}

.warning-box li strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.warning-box::before {
    content: "⚠️";
    position: absolute;
    top: -15px;
    left: 20px;
    background: #fff3cd;
    padding: 0 10px;
    font-size: 1.5rem;
}

/* Important box style */
.important-box {
    background: #f8d7da;
    border: 2px solid var(--key-points-color);
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(230, 59, 24, 0.2);
    position: relative;
}

.important-box h3 {
    color: #721c24;
    margin: 0 0 20px 0;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
}

.important-box strong {
    color: var(--key-points-color);
    font-weight: bold;
}

.important-box ul {
    list-style: none;
    padding: 0;
}

.important-box li {
    background: white;
	color: #101a2c;
    margin: 15px 0;
    padding: 15px 20px;
    border-left: 5px solid var(--key-points-color);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-size: 1.05rem;
}

.important-box li strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.important-box::before {
    content: "❗";
    position: absolute;
    top: -15px;
    left: 20px;
    background: #f8d7da;
    padding: 0 10px;
    font-size: 1.5rem;
}
        
        /* FAQ */
        .faq-section {
            background: var(--card-bg);
            border-radius: var(--border-radius);
            padding: 30px;
            margin: 40px 0;
            border: 1px solid var(--border-color);
			color: #101a2b;
        }
        
        .faq-item {
            background: white;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            margin: 15px 0;
            overflow: hidden;
        }
        
        .faq-question {
            background: var(--primary-color);
            color: var(--text-color);
            padding: 15px 20px;
            font-weight: 700;
            margin: 0;
            font-size: 1.1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
        }
        
        .faq-question:hover {
            background: var(--secondary-color);
        }
        
        .faq-question::after {
            content: '+';
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 1.5rem;
            font-weight: bold;
            transition: transform 0.3s ease;
        }
        
        .faq-item.active .faq-question::after {
            transform: translateY(-50%) rotate(45deg);
        }
        
        .faq-answer {
            padding: 20px;
            line-height: 1.6;
            display: none;
            font-size: 1.1rem;
            color: var(--text-color);
        }
        
        .faq-item.active .faq-answer {
            display: block;
        }
        
       
        
        /* Responsive */
        @media (max-width: 768px) {
            .container {
                padding: 15px;
            }
            
            .video-placeholder {
                height: 250px;
            }
            
            iframe {
                height: 250px;
            }
        }
        
        /* Smooth scrolling */
        html {
            scroll-behavior: smooth;
        }



/* ANIMAZIONI ALLO SCROLL*/

:root{
  --apple-ease: cubic-bezier(.22, .61, .36, 1); /* simile Apple */
  --apple-ease-out: cubic-bezier(.16, 1, .3, 1);
  --apple-ease-in: cubic-bezier(.7, 0, .84, 0);
  --apple-dur-1: .45s;
  --apple-dur-2: .7s;
  --apple-dur-3: 1s;
}

/* Rispetto accessibilità */
@media (prefers-reduced-motion: reduce){
  *{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/*Fade + slide up*/

@keyframes apple-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.apple-fade-up{
  animation: apple-fade-up var(--apple-dur-2) var(--apple-ease) both;
  will-change: transform, opacity;
}

/*Fade + slide left/right*/

@keyframes apple-fade-left {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes apple-fade-right {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: translateX(0); }
}

.apple-fade-left{
  animation: apple-fade-left var(--apple-dur-2) var(--apple-ease) both;
  will-change: transform, opacity;
}
.apple-fade-right{
  animation: apple-fade-right var(--apple-dur-2) var(--apple-ease) both;
  will-change: transform, opacity;
}

/*Zoom morbido (scale-in)*/

@keyframes apple-scale-in {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}

.apple-scale-in{
  animation: apple-scale-in var(--apple-dur-2) var(--apple-ease-out) both;
  transform-origin: center;
  will-change: transform, opacity;
}

/*Blur-in “premium”*/

@keyframes apple-blur-in {
  from { opacity: 0; filter: blur(12px); transform: translateY(10px); }
  to   { opacity: 1; filter: blur(0); transform: translateY(0); }
}

.apple-blur-in{
  animation: apple-blur-in var(--apple-dur-3) var(--apple-ease) both;
  will-change: transform, opacity, filter;
}

/*Card che “respira”*/

.apple-card{
  transition: transform var(--apple-dur-1) var(--apple-ease),
              box-shadow var(--apple-dur-1) var(--apple-ease),
              background var(--apple-dur-1) var(--apple-ease);
  will-change: transform, box-shadow;
}

.apple-card:hover{
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 14px 30px rgba(0,0,0,.12);
}

/*Immagine con zoom leggero*/

.apple-zoom-img{
  overflow: hidden;
}
.apple-zoom-img img{
  transition: transform var(--apple-dur-2) var(--apple-ease);
  transform: scale(1);
  will-change: transform;
}
.apple-zoom-img:hover img{
  transform: scale(1.05);
}

/*“Sheen” (riflesso elegante)*/

.apple-sheen{
  position: relative;
  overflow: hidden;
}
.apple-sheen::after{
  content:"";
  position:absolute;
  inset:-40%;
  background: linear-gradient(120deg,
    transparent 40%,
    rgba(255,255,255,.35) 50%,
    transparent 60%);
  transform: translateX(-100%) rotate(10deg);
  transition: transform 1.1s var(--apple-ease);
  pointer-events:none;
}
.apple-sheen:hover::after{
  transform: translateX(100%) rotate(10deg);
}

/*Pulsanti “Apple-like”*/

.apple-button{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.85rem 1.15rem;
  border-radius: 999px;
  font-weight:600;
  transition: transform .18s var(--apple-ease),
              background var(--apple-dur-1) var(--apple-ease),
              box-shadow var(--apple-dur-1) var(--apple-ease);
  will-change: transform;
}

.apple-button:hover{ transform: translateY(-1px); }
.apple-button:active{ transform: translateY(1px) scale(.98); }

/* Variante filled scura */
.apple-button--dark{
  background: #111;
  color:#fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.2);
}
.apple-button--dark:hover{
  background:#000;
  box-shadow: 0 12px 22px rgba(0,0,0,.28);
}

/* Variante light */
.apple-button--light{
  background: #f5f5f7;
  color:#111;
  box-shadow: 0 8px 16px rgba(0,0,0,.08);
}
.apple-button--light:hover{
  background:#fff;
}

/*Sottolineatura fluida link*/

.apple-link{
  position:relative;
  text-decoration:none;
  color: inherit;
}
.apple-link::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-2px;
  height:2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--apple-dur-1) var(--apple-ease);
}
.apple-link:hover::after{
  transform: scaleX(1);
}

/*Titolo che appare “in sequenza” (stagger manuale)*/

.apple-stagger > *{
  opacity:0;
  transform: translateY(12px);
  animation: apple-fade-up var(--apple-dur-2) var(--apple-ease) both;
}

.apple-stagger > *:nth-child(1){ animation-delay: .00s; }
.apple-stagger > *:nth-child(2){ animation-delay: .08s; }
.apple-stagger > *:nth-child(3){ animation-delay: .16s; }
.apple-stagger > *:nth-child(4){ animation-delay: .24s; }

.apple-reveal{
  opacity:0;
  transform: translateY(20px) scale(.98);
  transition: opacity var(--apple-dur-2) var(--apple-ease),
              transform var(--apple-dur-2) var(--apple-ease);
  will-change: transform, opacity;
}
.apple-reveal.is-visible{
  opacity:1;
  transform: translateY(0) scale(1);
}

@keyframes apple-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

.apple-float{
  animation: apple-float 4s cubic-bezier(.22,.61,.36,1) infinite;
  will-change: transform;
}





  /* Desktop */
@media only screen and (min-width: 992px) {
  /* Inserisci qui le tue regole CSS per desktop */
}

/* Tablet in modalità landscape */
@media only screen and (min-width: 768px) and (max-width: 1366px) and (orientation: landscape) {
  /* Inserisci qui le tue regole CSS per tablet in modalità landscape */
}

/* Tablet in modalità portrait */
@media only screen and (min-width: 768px) and (max-width: 991px) and (orientation: portrait) {
  /* Inserisci qui le tue regole CSS per tablet in modalità portrait */
	
	#mega-menu-wrap-metric-header-menu .mega-menu-toggle { background: transparent;}

}


/* Smartphone in modalità landscape */
@media only screen and (max-width: 767px) and (orientation: landscape) {
  /* Inserisci qui le tue regole CSS per smartphone in modalità landscape */
	
	#mega-menu-wrap-metric-header-menu .mega-menu-toggle { background: transparent;}

}
	

/* Smartphone in modalità portrait */
@media only screen and (max-width: 767px) and (orientation: portrait) {
  /* Inserisci qui le tue regole CSS per smartphone in modalità portrait */
	
	main {padding: 0 15px;}

	
	#mega-menu-wrap-metric-header-menu .mega-menu-toggle { background: transparent;}
	.hero-header {width: auto; padding-left: 2svh;}
	.container-hero h1 {font-size: 3.5rem;}
	
	.single-side {
    position: relative;
    padding: 0;
}

.form-control {
    width: 65%;
    background: black;
    border: 1px solid #52ffdf;
    height: 30px;
    border-radius: 50px;
    color: #52ffdf;
}

.btn-outline-success {
    background: #52ffdf;
    width: 30%;
    height: 35px;
    border-radius: 20px;
}
	
}