/*
Theme Name: Bioxyne
Theme URI: https://mbcreativedesign.it
Author: Mattia Baffe
Author URI: https://mbcreativedesign.it
Description: Tema WordPress vuoto di base creato da Mattia Baffe (mbcreativedesign.it)
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bioxyne
*/


/* =========================================================
   ROOT VARIABLES
========================================================= */
:root {
--main: #0C5786;
--standout: #0C5786;
--highlight: #51ace3;
--pink: #d9edf4;
}

/* =========================================================
   FONTS
========================================================= */




/* =========================================================
   RESET
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #f9f9f9;
  color: #000;
  line-height: 1.6;
    font-size: 17px;
}
img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   TYPOGRAPHY
========================================================= */
h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -2;
  margin-bottom: 25px;
  text-transform: uppercase;
}

h1 {
  font-size: 2.5rem;   /* ≈ 40px */
  color: var(--standout);
  letter-spacing: -0.03em;
}
h2 {
  font-size: 2rem;     /* ≈ 32px */
  color: var(--standout);
  letter-spacing: -0.02em;
}
h3 {
  font-size: 1.25rem;  /* ≈ 20px */
  letter-spacing: -0.01em;
}

p {
color: #1a1a1a;
margin-bottom: 1rem;
font-weight:300;
}

ul {
  font-weight:300;  
}

.pretitle {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight:300;
}

/* =========================================================
   LAYOUT
========================================================= */
section {
  padding: 6em 2em;
    
}
      
      section .container, footer .container{
                max-width:1400px;
          margin:auto;
      }
      
#primary .container{
max-width:1400px;
margin:auto;
    padding:20px;
}

#primary{
    margin:3em 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7rem;
}
@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
}


.separatore{
    width:100%;
    display:block;
    height:1px;
    border-top:1px dashed grey;
    margin-top:10px;
    margin-bottom:10px;
}
/* =========================================================
   NAVBAR
========================================================= */
header nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  padding: 0.8rem 5rem;
  background: transparent;
  color: #fff;
  transition: background-color 0.1s ease, border-bottom 0.1s ease;
  z-index: 11000;
}

nav.scrolled {
  background: #fff;
  border-bottom: 1px solid #eee;
}

/* Logo al centro */
.logo {
  justify-self: left;
  display: flex;
  padding-top: 10px;
}
nav .logo svg .st0 { fill: #fff; }
nav.scrolled .logo svg .st0 { fill: #00425e !important; }

/* Hamburger menu a sinistra */
.menu {
  justify-self: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 11000;
}
.menu span {
  width: 100%;
  height: 3px;
  background: #000;
  border-radius: 0;
  transition: all 0.3s ease;
  transform-origin: center;
}
nav .menu span { background: #fff; }
nav.scrolled .menu span { background: #000; }
.menu.active span { background: #000; }

/* Destra: investors + search */
.nav-right {
  justify-self: end;
  display: flex;
  flex-direction: row;
  gap: 15px;
  align-items: center;
}

/* Search icon */
.search {
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
}
nav .search i { color: #fff; transition: color 0.3s ease; }
nav.scrolled .search i { color: #000; }

/* Button investors */
.btn-investors {
  position: relative;
  display: inline-block;
  padding: 0.5rem 1.5rem 0.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s ease, border-color 0.3s ease;
}
nav .btn-investors {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}
nav.scrolled .btn-investors {
  border: 2px solid #000;
  color: #000;
  background: transparent;
}
.btn-investors::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%;
  height: 100%;
  z-index: -1;
  transition: left 0.35s ease;
}
nav .btn-investors::before { background: #fff; }
nav .btn-investors:hover { color: #000; }
nav .btn-investors:hover::before { left: 0; }
nav.scrolled .btn-investors::before { background: #000; }
nav.scrolled .btn-investors:hover { color: #fff; }
nav.scrolled .btn-investors:hover::before { left: 0; }

/* Stato menu aperto */
body.menu-open nav .logo,
body.menu-open nav .btn-investors,
body.menu-open nav .search {
  opacity: 0 !important;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

body.menu-open nav {
  border-bottom: none !important;
    
}

body.menu-open .site-nav{
 background: transparent;   
}

body.menu-open {
  overflow: hidden;
}

.menu-voci a {
    text-decoration:none !important;
    color:white;
}

@media screen and (max-width:1199px){
    .menu-voci {display:none;}
}

@media screen and (min-width:1200px){
    .menu {display:none;}
}

nav.scrolled .menu-voci a {
    color:var(--main);
}

.menu-voci ul{
    list-style:none;
    margin-left:0;
        display:flex;
    flex-direction:row;
    gap:20px;
    font-weight:600;
}

.site-nav .container {

    width: 100%;
    max-width: 1400px;
    margin:auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between; /* spinge gli elementi ai due lati */
}



/* Quando c'è la barra admin WP */
body.admin-bar .site-nav {
  top: 32px; /* altezza standard della barra desktop */
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-nav {
    top: 46px; /* altezza barra admin su mobile */
  }
}

.site-nav.relative{
    opacity:1 !important;
}

html, body {
  overscroll-behavior: none;    /* Chrome/Edge/Firefox */
  -webkit-overflow-scrolling: auto; /* iOS Safari (toglie lo scorrimento elastico) */
}


@media screen and (max-width:768px){
    
    .search {
        display:none;
    }
}

/* =========================================================
   HERO
========================================================= */
#mainhero, #secondaryhero {
  position: relative;
  height: calc(var(--vh, 1vh) * 100);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  overflow: hidden; /* importante per contenere il video */
  background: rgba(3,37,49,1);
}

/* Video come background */
#mainhero video.hero-bg-video {
  position: absolute;
  top: 50%;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  transform: translateY(-50%); /* solo verticale, non più -50% orizzontale */
  object-fit: cover;
  object-position: center; /* assicura che il "cover" parta da sinistra */
}

/* Overlay gradient */
#mainhero::before, #secondaryhero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(3,37,49,0.6);
  z-index: 1;
}

/* Contenuto sopra il video */
#herocontent {
  z-index: 2;
  max-width: 1100px;
  text-align: center;
}

body:not(.loaded) #mainhero #herocontent h1,
body:not(.loaded) #mainhero #herocontent h3 {
  opacity: 0;
  transform: translateY(40px);
  will-change: opacity, transform;
}


#herocontent h1{
    color:white;
    font-size:5em;
}

#scrolldown{
 position: absolute;
 z-index:9999;
 bottom: 20px;
}

#mainhero #scrolldown {
     opacity:0;
}

#mouse_body {

border-style: solid;
border-width: 2px;
border-color: #fff;
border-radius: 32px;
height: 43px;
width: 23px;
margin: 0 auto;

}

#mouse_wheel {
  border-style: solid;
  border-width: 2px;
  border-color: #fff;
  border-radius: 8px;
  background-color: #fff;
  /* position property required to play animation  */
  position: relative; 
  height: 3px;
  width: 3px;
  /* to center wheel in mouse body */
  margin: 0 auto; 
  animation: wheel_animation 1.5s linear infinite;
}

/* include use -moz-, -webkit-, or -o- for respective browser type*/
@keyframes wheel_animation { 
  0% {
    opacity: 0;
    top: 2px;
  }
  50% {
    opacity: 1;
    top: 50%;
  }
  100% {
    opacity: 0;
    top: 33px;
  }
}



/* =========================================================
   DARK MODE
========================================================= */
.dark { background: var(--main) !important; color: #fff !important; }
.dark p { color: #fff; }

/* Buttons in dark */
.dark .btn-primary { color: #fff; }
.dark .btn-primary::after {
  border-color: #fff;
  color: #fff;
}
.dark .btn-primary:hover { color: var(--highlight);}
.dark .btn-primary:hover::after {
  background: var(--highlight);
  border-color: var(--highlight);
  color: #000;
}
      
      
      /* Buttons in dark */
.standout.btn-primary { color: #fff; }
.standout.btn-primary::after {
  border-color: #fff;
  color: #fff;
}
.standout.btn-primary:hover { color: var(--highlight); }
.standout.btn-primary:hover::after {
  background: var(--highlight);
  border-color: var(--highlight);
  color: #fff;
}
      
      
      

/* =========================================================
   VIDEO SECTION
========================================================= */
.video-section {
  position: relative;
  height: 800px;
  overflow: hidden;
  margin-top: 4rem;
}

.video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;   /* copre tutto lo spazio */
  z-index: 0;
}

.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 160px; height: 160px;
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: bold; font-size: 1.2rem;
  color: #fff;
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  transition: 0.3s;
  z-index: 2;
}
.play-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: translate(-50%, -50%) scale(1.05);
}



/* =========================================================
   SERVICES + ACCORDION
========================================================= */


.services .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7rem;
  align-items: start;
}

/* Versione mobile */
@media (max-width: 768px) {
  .services .container {
    grid-template-columns: 1fr;
    gap: 3rem; /* opzionale: riduci un po’ lo spazio verticale */
  }
}

      
.services-title h2 {
  font-size: 3rem;
  text-transform: uppercase;
  color: var(--standout);
}
.accordion-item { border-bottom: 1px solid #ccc; }
.accordion-header {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
  padding: 1rem 0;
}
.accordion-header h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.2rem;
  font-weight: 300;
  margin: 0;
}
.accordion-header .toggle {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}
.accordion-content {
  display: none;
  padding: 0 0 1rem 0;
  font-size: 1rem;
  color: #333;
}
.accordion-item.active .accordion-content { display: block; }
      
/* =========================================================
   COMPANY
========================================================= */
      


/* =========================================================
   BUTTONS
========================================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  color: #000;
  line-height: 1;
  padding-top: 2px;
  transition: color 0.35s ease;
}
.btn-primary::after {
content: "\f061";
font-family: "Font Awesome 6 Free";
font-weight: 900;
display: flex;
align-items: center;
justify-content: center;
width: 1.2rem;
height: 1.2rem;
border: 2px solid #000;
border-radius: 50%;
color: #000;
font-size: 10px;
transition: background-color 0.35s ease,
border-color 0.35s ease,
color 0.35s ease,
transform 0.35s ease;
}


.btn-primary:hover { color: var(--highlight); }
.btn-primary:hover::after {
  background: var(--highlight);
  border-color: var(--highlight);
  color: #fff;
  transform: translateX(4px);
}

/* =========================================================
   IMAGES
========================================================= */
.zoom-wrapper { overflow: hidden; position: relative; }
.zoom-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transform-origin: center center;
}

/* =========================================================
   SOLUTIONS
========================================================= */
/* OUR SOLUTIONS */
.solutions {
    background: var(--pink);
}

/* GRID 4 */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 1.8rem 0;
}

@media (max-width: 991px) {
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}


/* GRID 3 */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 1.8rem 0;
}

@media (max-width: 991px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}


/* CARD */
.solution-card {
  position: relative;
  overflow: hidden;
    min-height:500px;
    
}

.solution-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* zoom on hover */
.solution-card:hover img {
  transform: scale(1.3) !important;
}

/* OVERLAY con gradiente */
.solution-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 30%, rgba(0,0,0,0) 100%);
  color: #fff;
  z-index: 2;
}

/* TITOLI */
.solution-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
    
}

/* PARAGRAFO piccolo bianco */
.solution-overlay p {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: #fff;
  max-width: 90%;
}

/* BUTTON dentro overlay */
.solution-overlay .btn-primary {
  align-self: flex-start;
}

      
      

/* =========================================================
   MOBILE RESPONSIVE
========================================================= */
@media (max-width: 991px) {

  /* Layout base */
  section {
    padding: 40px 20px;
  }
    
    header nav {
        padding:10px 20px;
    }
    
h2, h3, h4, h5, h6,
  p,
  .pretitle,
  .mission-text,
  #company,
  #what {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

    h1:not(:where(.hero-content h1, #primaryhero h1, #secondaryhero h1)) {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

      
      
      

  /* Grid 2 colonne → 1 colonna */
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Navbar */
  nav {
    padding: 0.5rem 1.5rem;
  }

  .logo svg {
    width: 250px;
  }

  .btn-investors {
    padding: 0.5rem 1rem 0.25rem;
    font-size: 0.8rem;
  }



  #herocontent h1 {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
  }

  #herocontent p {
    font-size: 1rem;
  }

  /* Services */
  .services {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services-title h2 {
    font-size: 2rem;
  }

  /* Accordion */
  .accordion-header h3 {
    font-size: 1rem;
  }

  /* Video */
  .video-section {
    height: 300px;
    margin: 2rem 0;
  }

  .play-btn {
    width: 80px;
    height: 80px;
    font-size: 0.9rem;
  }

  /* Mission */
  #mission-section {
    height: auto !important;
    padding: 40px 20px !important;
  }

  .mission-text {
    font-size: 1.2rem;
  }

  /* Stats */
  .stats-section {
    flex-direction: column;
    height: auto !important;
    gap: 1.5rem;
  }

  .stat-card {
    flex: unset;
    padding: 1.5rem;
  }

  .stat-card h2 {
    font-size: 2rem;
  }

  .stat-card p {
    font-size: 1rem;
  }

  /* Fullscreen menu */
  .menu-main a {
    font-size: 2rem;
  }

  .menu-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1rem;
    left: 20px;
    right: 20px;
  }

  .menu-footer {
    gap: 15px;
  }
}


/* =========================================================
   LIGHTBOX
========================================================= */

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.9);
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.lightbox video {
  width: 80%;
  height: auto;
  max-height: 80%;
}
.lightbox .close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

.lightbox video {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.lightbox video.loaded {
  opacity: 1;
}




/* =========================================================
   FULLSCREEN MENU
========================================================= */
.menu-wrapper {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; 
    height: calc(var(--vh, 1vh) * 100);
  background: var(--pink);
  z-index: 9999;
  transform: translateY(-100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 5vw;
}

/* Main links */
.menu-main {
  list-style: none;
  margin: 80px 0 0 0;
  padding: 0;
}
.menu-main li { margin: 20px 0; }
.menu-main a {
  display: inline-block;
  font-size: 45px;
  font-weight: bold;
  text-decoration: none;
  color: #111;
  transition: color 0.2s;
    font-weight: bold;
  text-transform: uppercase;
}
.menu-main a:hover { color:var(--standout); }

/* Footer links */
.menu-bottom {
  bottom: 30px;
    width:100%;
    margin-top:auto;
  display: flex;
  justify-content: space-between;

  font-size: 25px;
  font-weight: bold;
  text-transform: uppercase;
}
.menu-footer {
  display: flex;
  gap: 30px;
      list-style: none !important;
}
.menu-footer a {
  text-decoration: none;
  color: #111;
  transition: color 0.2s;
}
.menu-footer a:hover { color:var(--standout); }

/* Languages */
.menu-lang {
  display: flex;
  gap: 15px;
  list-style: none !important;
}
.menu-lang a {
  font-size: 14px;
  text-decoration: none;
  color: #999;
  transition: color 0.2s;
}
.menu-lang a:hover { color:var(--standout); }
.menu-lang a.active {
  color: #111;
  font-weight: bold;
}
      
      
 /* =========================================================
   MISSION
========================================================= */     
      
      #mission-section {
  position: relative;
  height: 60vh;                 /* fullscreen */
  background: url("bg-mission.jpg") no-repeat center/cover;
  background-attachment: fixed;  /* fondo fisso */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10vw;
  text-align: center;
  overflow:hidden;
}
      
      #mission-section::before{
          content:'';
          width:100vw;
          height:100vh;
          background:rgba(0,0,0,0.6);
          position:absolute;
          z-index:0
      }

.mission-text {
  font-size: 2rem;
  line-height: 1.5;
  color: #777;                   /* grigio iniziale */
  max-width: 900px;
    position:relative;
    z-index:1;
}

.mission-text span {
  color: #777;                   /* grigio iniziale */
  transition: color 0.3s ease;
}
      
      
/* =========================================================
   WHAT WE STAND FOR
========================================================= */
      
      #what{
          text-align:left;
      }     
      
          
      
/* =========================================================
   STATS
========================================================= */      
      
.stats-section {
display: flex;
gap: 1rem;
padding: 0;
height: 250px;
margin-top:40px;
}
      
.stat-card {
  flex: 1; /* default stretto */
  background: #eee;
  padding: 2rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: flex 0.25s ease, background 0.25s ease;
  cursor: pointer;
  overflow: hidden;
}

.stat-card h2 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: black;
}



.stat-card p {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.4;
  color: black;
}


.stat-card-content {
    transform: scale(0.85);
    transform-origin: bottom left;
    transition: transform 0.25s ease; 
    width: 270px;
}


.stat-card.active .stat-card-content{
transform:scale(1.1);
 transform-origin: bottom left;
}


/* Card attiva */
.stat-card.active {
  flex: 2;               /* più larga */
  background: var(--main);
  color: #fff;
}

.stat-card.active h2,
.stat-card.active p {
  color: #fff;
}

 /* =========================================================
   SECTION HIGHLIGHT (con video di sfondo)
========================================================= */

.section-highlight {
  position: relative;
  color: #fff;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 6rem 0;
  overflow: hidden;
}

/* Video di sfondo */
.section-highlight__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Overlay scuro per contrasto */
.section-highlight__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

/* Contenuto */
.section-highlight__content {
  position: relative;
  background-color: var(--main);
  padding: 3rem;
  max-width: 700px;
  z-index: 2;
}

.section-highlight__content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.section-highlight__content p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #fff;
}



/* --- RESPONSIVO --- */
@media (max-width: 768px) {
  .section-highlight {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
  }

  .section-highlight__content {
    max-width: 100%;
    margin: 0;
    padding: 2rem;
  }
    
    .section-highlight__video {
        position:relative;
    }
}

      
/* ===============================
   TEAM SECTION
   =============================== */


.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  justify-items: center;
    margin-top:50px;
}


.team-card {
  background: #fafafa;
  border-radius: 10px;
  overflow: hidden;
  border:1px solid #ddd;
  text-align: center;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 350px;
}

.team-card:hover {
  transform: translateY(-6px);
}

/* Immagine */
.team-card .team-img {
  height: 320px;
  overflow: hidden;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}

.team-card:hover img {
  transform: scale(1.05);
}

.card-content{
    padding:15px;
}

.team-card .role {
  font-size: 16px;
}

.team-card .degree {
  font-size: 14px;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  #leadership h2 {
    font-size: 32px;
  }
  .team-card {
    max-width: 100%;
  }
  .team-card .team-img {
    height: 260px;
  }
}

      
      
 /* =========================================================
   FOOTER
========================================================= */
      
      .footer {
  background: #fff;
  border-top: 1px solid #e5e5e5;
  padding: 40px 20px 20px 20px;
  font-size: 0.95rem;

}

.footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}

.footer-logo img {
  display: block;
  margin-bottom: 1.5rem;
}

.footer-menu {
  list-style: none !important;
  padding: 0;
  margin: 0;
}
.footer-menu li {
  margin-bottom: 0.5rem;
}
.footer-menu a {
  text-decoration: none;
  color: #111;
  transition: color 0.3s ease;
}
.footer-menu a:hover {
  color: var(--accent);
}

.footer h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer p {
  margin: 0 0 0.5rem 0;
  color: #444;
  line-height: 1.5;
}

footer #Livello_1 rect, footer #Livello_1 path {
fill: var(--main);
}



.footer a {
  color: #111;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid #e5e5e5;
  margin-top: 3rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
}

.footer-bottom .legal a {
  margin-left: 1.5rem;
  font-size: 0.85rem;
  color: #555;
}
.footer-bottom .legal a:hover {
  color: var(--accent);
}

/* Mobile */
@media (max-width: 991px) {
  .footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .footer .footer-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
}
  /* OVERLAY */
.investors-overlay {
  width: 100vw;
  height: calc(var(--vh, 1vh) * 100);
  background: rgba(0,0,0,0.5);
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999999;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.investors-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.investors-menu {
  background: var(--main);
    color:white;
  width: 700px;
  height: calc(var(--vh, 1vh) * 100);
  padding: 5rem;
  position: fixed; /* meglio fixed per overlay */
  right: 0;
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s ease-in-out, opacity 0.3s ease, visibility 0.3s ease;
}

@media screen and (max-width:991px){
    .menu-investors a, menu-investors li {
        font-size: 1.3rem !important;
       line-height:3rem !important;
    }
    
}
    
 .investors-menu {
  background: var(--main);   
}

.investors-overlay.active .investors-menu {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}


/* LISTA INVESTORS */
.menu-investors {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.menu-investors a{
    color:white;
    text-decoration:none;
    transition: 0.2s color;
    font-size:2rem;
    line-height:4.5rem;
}

.menu-investors a:hover{
color: var(--standout)
}


/* Close button */
#investors-close {
  position: absolute;
  top: 40px;
  right: 40px;
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
}

/* 📱 Mobile fullscreen */
@media (max-width: 991px) {
  .investors-menu {
    width: 100%;
    padding: 3rem 1.5rem;  /* meno padding sui lati */
  }

  #investors-close {
    top: 20px;   /* più vicino al bordo */
    right: 20px; /* centrato su mobile */
    font-size: 1.8rem;
  }

  .menu-investors li {
    font-size: 1.2rem; /* un po’ più piccolo */
  }
}



@media screen and (max-width:768px){
    .btn-investors {
    transform: scale(0.8);
    transform-origin: center right;
}
    
    .mission-text{
        font-size:1.3em;
    }
    
    #herocontent h1{
    font-size:3em;
}
    
    #mainhero::before {
  background: rgba(3,37,49,0.5);

}
    
    #mainhero video.hero-bg-video {
  object-position: -230px center;
    }
    
    #herocontent h1{
        text-align:center !important;
    }
    
    #herocontent h3 {
     text-align:center !important;
        font-size:17px;
    }
    
    
    
}      




/* ==== BLOG ARCHIVE ==== */


.archive-header {
  margin: 0 auto 3rem;
}

.archive-title {
  margin-bottom: 1rem;
}

.archive-intro {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 1rem;
}

/* GRID */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
}

.archive-item {
  text-align: left;
}

.archive-thumb {
  display: block;
  aspect-ratio: 4/3;
  background: #f0f0f0;
  overflow: hidden;
}

.archive-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.archive-thumb:hover img {
  transform: scale(1.05);
}

.thumb-placeholder {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    #ddd,
    #ddd 10px,
    #ccc 10px,
    #ccc 20px
  );
}

/* META */
.archive-meta {
  color: #999;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin: 0.8rem 0;
}

.cat-name {
  color: #666;
  font-weight: 500;
}

.sep {
  color: #ccc;
  margin: 0 4px;
}

/* TITOLI ED ESTRATTI */
.archive-item-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.archive-item-title a {
  text-decoration: none;
  color: #111;
}

.archive-item-title a:hover {
  color: #0073aa;
}

.archive-excerpt {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* PAGINAZIONE */
.pagination {
  text-align: center;
  margin-top: 3rem;
}

.pagination a,
.pagination span {
  display: inline-block;
  margin: 0 4px;
  padding: 6px 12px;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #0073aa;
  border-radius: 4px;
}

.pagination a:hover,
.pagination .current {
  background: #0073aa;
  color: #fff;
  border-color: #0073aa;
}


/* ==== SINGLE POST ==== */

.post-hero {
  position: relative;
  width: 100%;
  min-height: 70vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  color: #fff;
text-align:center !important;
}

.post-hero .overlay {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.hero-content {
  position: relative;
  z-index: 2;
color:white !important;
}

.post-title {
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
    color:white !important;
}

.post-meta {
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  opacity: 0.9;
  border-top: 1px solid rgba(255,255,255,0.5);
  padding-top: 0.8rem;
    color:white !important;
}

.post-meta .sep {
  margin: 0 6px;
  opacity: 0.6;
    color:white !important;
}

/* CONTENT */
.post-content {
  background: #fff;
  padding: 3rem 1rem;
}

.post-content .container {
  max-width: 1000px;
  margin: 0 auto;
  color: #333;
  line-height: 1.7;
  font-size: 1rem;
}

.post-content p {
  margin-bottom: 1.5rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .post-title {
    font-size: 1.8rem;
  }
    
    .post-hero {
        min-height:50vh;
    }
    
    
  .hero-content {
    padding: 3rem 1rem 2rem;
  }
}



/*Certificates*/

.certificate-item {
background: #fff;
padding: 20px;
border: 1px solid #ddd;
border-radius: 10px;
}


#certificates-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}


#certificate-search {
  width: 100%;
  padding: 14px 18px;
  margin: 40px 0 50px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 40px;
  background: #fff;
  transition: box-shadow .2s ease, border .2s ease;
}

#certificate-search:focus {
  outline: none;
  border:3px solid var(--highlight);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}


