/* ==========================================================================
   MEDITECK - STYLESHEET PRINCIPALE OTTIMIZZATO
   ========================================================================== */

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;color:#12283a}
a{color:inherit;text-decoration:none}

header{height:76px;padding:0 6vw;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:10;background:#fffdfbf2;backdrop-filter:blur(12px);border-bottom:1px solid #edf2f5}
.logo{font-size:26px;font-weight:800;letter-spacing:-2px}
.logo sup{font-size:8px}
nav{display:flex;gap:28px;font-size:12px;color:#526878}
.contact{font-size:12px;border-bottom:1px solid;font-weight:bold;color:#00a8cc}

/* HERO SECTION FULLSCREEN */
.hero{position:relative;width:100vw;height:calc(100vh - 76px);min-height:650px;background:url('./assets/nice1.jpg') no-repeat center center/cover;display:flex;align-items:center;justify-content:center;text-align:center;padding:0 5vw}
.hero::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background:linear-gradient(180deg,rgba(11,32,51,0.75) 0%,rgba(11,32,51,0.9) 100%);z-index:1}
.hero>div{position:relative;z-index:2;max-width:900px;padding:0}
.hero small,.section>small,.intro>small,.technology small,.split small,.rental small,.contactsec small{font-size:9px;letter-spacing:2px;font-weight:bold;color:#7dd3fc}
.hero h1{font-size:clamp(60px,9vw,130px);line-height:.85;letter-spacing:-6px;color:#ffffff;margin:20px 0 25px 0;text-shadow:0 4px 20px rgba(0,0,0,0.3)}
.hero i,h2 i{font-family:Georgia,serif;font-weight:400}
.hero h1 i{color:#38bdf8}
.hero p{max-width:600px;margin:0 auto 30px auto;line-height:1.7;color:#e2e8f0;font-size:19px;text-shadow:0 2px 10px rgba(0,0,0,0.4)}

/* STILI PULSANTI DINAMICI E ATTRACTIVE */
.btn{display:inline-block;background:#00a8cc;color:#ffffff;padding:16px 32px;font-size:12px;font-weight:bold;margin-top:22px;border-radius:40px;letter-spacing:1px;box-shadow:0 4px 15px rgba(0,168,204,0.35);transition:all 0.3s ease;cursor:pointer;text-align:center}
.btn:hover{background:#0086a3;transform:translateY(-3px);box-shadow:0 8px 25px rgba(0,168,204,0.5);color:#ffffff}

.btn-action{background:#ffffff;color:#0b2033;box-shadow:0 4px 15px rgba(255,255,255,0.25)}
.btn-action:hover{background:#00a8cc;color:#ffffff;box-shadow:0 8px 25px rgba(0,168,204,0.4)}

.btn-pro{background:#0b2033;color:#ffffff;border:2px solid #0b2033;box-shadow:0 4px 15px rgba(11,32,51,0.2)}
.btn-pro:hover{background:#00a8cc;border-color:#00a8cc;color:#ffffff}

.btn-primary-cta{background:linear-gradient(135deg,#00a8cc 0%,#007799 100%);color:#ffffff;padding:18px 40px;font-size:13px;letter-spacing:1.5px;box-shadow:0 6px 20px rgba(0,168,204,0.4)}
.btn-primary-cta:hover{transform:translateY(-3px) scale(1.02);box-shadow:0 10px 30px rgba(0,168,204,0.6)}

.btn-link{display:inline-block;font-size:13px;font-weight:bold;color:#00a8cc;margin-top:15px;transition:all 0.3s ease}
.btn-link:hover{color:#007799;transform:translateX(5px)}

.intro{padding:13vw 14vw}
.intro h2,.section h2,.split h2,.rental h2,.contactsec h2{font-size:clamp(44px,6vw,80px);line-height:.97;letter-spacing:-4px;color:#0b2033;margin:28px 0}
.intro p{max-width:550px;margin-left:auto;color:#667c89;line-height:1.7}
.section{padding:9vw 6vw}

/* CARDS PRODOTTI (SEZIONE 01) */
.products{display:grid;grid-template-columns:1.35fr .85fr .75fr;gap:18px;margin-top:55px}
.products .maincard,
.products .product-card {
  position: relative;
  min-height: 540px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 35px;
  background: #0b2033;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.products .maincard .pic,
.products .product-card .pic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: none;
  overflow: hidden;
  border-radius: 12px;
}

.products .maincard .pic img,
.products .product-card .pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  display: block;
}

.products .maincard::before,
.products .product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 32, 51, 0.2) 30%, rgba(11, 32, 51, 0.9) 85%);
  z-index: 2;
  transition: background 0.3s ease;
}

.products .maincard > small,
.products .maincard h3,
.products .maincard p,
.products .maincard > a,
.products .product-card > small,
.products .product-card h3,
.products .product-card p,
.products .product-card > a {
  position: relative;
  z-index: 3;
  margin-left: 0 !important;
  margin-right: 0 !important;
  color: #ffffff !important;
}

.products .maincard p,
.products .product-card p {
  color: #e2e8f0 !important;
}

.products .maincard .btn-link,
.products .product-card .btn-link {
  color: #38bdf8 !important;
}

.future{padding:36px;display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(140deg,#f7fbfd,#d9ebf4);color:#0b2033;border-radius: 12px; transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);}
.future b{font-size:50px;line-height:.9;letter-spacing:-3px}
.future em{font-size:9px;letter-spacing:2px;font-style:normal}
.future.dark{background:#102b40;color:#fff}

.technology{background:#0b2033;color:#fff;padding:11vw 8vw;display:grid;grid-template-columns:1fr 1fr;gap:9vw}
.technology h2{font-size:clamp(55px,7vw,100px);line-height:.85;letter-spacing:-5px;margin:28px 0}
.technology>div>p{max-width:470px;color:#b7c8d2;line-height:1.7}

.specs{display:grid;grid-template-columns:1fr 1fr}
.specs div{border-top:1px solid #ffffff25;padding:25px 25px 42px 0;transition:all 0.3s ease;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.specs b{font-size:9px;color:#8caabb}
.specs h3{font-size:14px;letter-spacing:1px;margin-top:8px}
.specs p{font-size:12px;color:#b7c8d2;line-height:1.5}

.pale{background:#f8fafb}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:55px}
.cards article{background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 4px 12px rgba(0,0,0,0.03);transition:transform 0.3s ease}
.cards img{width:100%;height:250px;object-fit:cover}
.cards h3,.cards p{margin-left:20px;margin-right:20px}
.cards h3{font-size:20px;margin-top:20px}
.cards p{font-size:12px;line-height:1.6;color:#687d8a;margin-bottom:25px}

/* SLIDER ORIZZONTALE GUIDE ANATOMICHE */
.bodygrid-intro{max-width:550px;color:#687d8a;font-size:14px;line-height:1.6;margin-bottom:25px}
.bodygrid-slider-wrapper{position:relative;width:100%;margin-top:20px}
.bodygrid-slider{display:flex;gap:20px;overflow-x:auto;scroll-behavior:smooth;padding:10px 5px 25px 5px;scrollbar-width:none;-ms-overflow-style:none}
.bodygrid-slider::-webkit-scrollbar{display:none}

.bodygrid-item{flex:0 0 340px;height:500px;position:relative;overflow:hidden;background:#edf5f8;border-radius:12px;display:block;transition:transform 0.3s ease,box-shadow 0.3s ease}
.bodygrid-item:hover{transform:translateY(-6px);box-shadow:0 12px 30px rgba(11,32,51,0.12)}
.bodygrid-item img{width:100%;height:100%;object-fit:cover;transition:transform 0.5s ease}
.bodygrid-item:hover img{transform:scale(1.06)}
.bodygrid-item b{position:absolute;left:20px;bottom:20px;background:#ffffff;color:#0b2033;padding:10px 16px;font-size:10px;letter-spacing:1.5px;border-radius:6px;z-index:3;font-weight:bold;box-shadow:0 4px 12px rgba(0,0,0,0.1)}

.bodygrid-overlay{position:absolute;inset:0;background:rgba(11,32,51,0.45);display:flex;align-items:center;justify-content:center;color:#ffffff;opacity:0;transition:opacity 0.3s ease;z-index:2}
.bodygrid-item:hover .bodygrid-overlay{opacity:1}
.bodygrid-overlay span{font-size:12px;font-weight:bold;letter-spacing:1px;border-bottom:2px solid #00a8cc;padding-bottom:4px}

.slider-controls{display:flex;gap:12px;align-items:center}
.slider-arrow{width:46px;height:46px;border-radius:50%;background:#ffffff;border:1px solid #dcecf5;color:#0b2033;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all 0.3s ease;box-shadow:0 2px 8px rgba(0,0,0,0.05)}
.slider-arrow:hover{background:#00a8cc;color:#ffffff;border-color:#00a8cc;transform:scale(1.08)}

.split{display:grid;grid-template-columns:1fr 1fr;background:#dcecf5}
.split>img{width:100%;height:650px;object-fit:cover}
.split>div{padding:10vw 8vw;display:flex;flex-direction:column;justify-content:center}
.split p,.rental p,.contactsec p{max-width:480px;line-height:1.7;color:#5f7583}

.rental{display:grid;grid-template-columns:1fr 1fr;gap:7vw;padding:10vw 8vw;align-items:center}
.rental img{width:100%;height:500px;object-fit:cover;border-radius:12px}

.manifesto{min-height:65vh;background:#e5f1f7;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;color:#0b2033;font-size:clamp(60px,9vw,135px);line-height:.85;letter-spacing:-7px}
.manifesto small{font-size:9px;letter-spacing:2px;margin-top:40px}

.contactsec{padding:11vw 8vw}
.contactsec p{margin-bottom:0}

footer{padding:25px 6vw;border-top:1px solid #d5e0e7;display:flex;justify-content:space-between;font-size:10px;color:#718592}
footer b{font-size:16px;color:#0b2033}

/* RECOVERY SECTION */
.recovery-better-section{position:relative;width:100vw;height:100vh;min-height:600px;background:url('./assets/lady.jpg') no-repeat center center/cover;display:flex;align-items:center;justify-content:center;color:#ffffff;text-align:center;padding:0 1.5rem}
.recovery-better-section::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(11,32,51,0.6);z-index:1}
.recovery-better-content{position:relative;z-index:2;max-width:800px;padding:2rem}
.recovery-better-content small{font-size:9px;letter-spacing:2px;font-weight:bold;color:#7dd3fc}
.recovery-better-content h1{font-size:clamp(40px,6vw,90px);line-height:0.95;letter-spacing:-4px;color:#ffffff;margin:20px 0}
.recovery-better-content p{color:#e2e8f0;font-size:17px;line-height:1.7;margin-bottom:25px}

/* INSTAGRAM */
.instagram-section{text-align:center}
.insta-subtitle{max-width:500px;margin:0 auto 40px auto !important;color:#687d8a;font-size:14px;line-height:1.6}
.instagram-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:35px}
.insta-item{position:relative;height:320px;border-radius:8px;overflow:hidden;display:block;background:#e2e8f0}
.insta-item img{width:100%;height:100%;object-fit:cover;transition:transform 0.5s ease}
.insta-item:hover img{transform:scale(1.05)}
.insta-overlay{position:absolute;inset:0;background:rgba(11,32,51,0.4);display:flex;flex-direction:column;align-items:center;justify-content:center;color:#ffffff;opacity:0;transition:opacity 0.3s ease;gap:8px;font-size:13px;font-weight:bold;letter-spacing:1px}
.insta-item:hover .insta-overlay{opacity:1}
.insta-overlay i{font-size:24px}
.insta-cta-container{margin-top:20px}

/* FLOATING CTA SPOSTATO A SINISTRA */
.floating-noleggio-btn{
  position: fixed;
  bottom: 25px;
  left: 25px; /* <-- Spostato a sinistra anziché right */
  right: auto;
  z-index: 99;
  background: linear-gradient(135deg,#00a8cc 0%,#007799 100%);
  color: #ffffff !important;
  padding: 14px 24px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 8px 25px rgba(0,168,204,0.45);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.floating-noleggio-btn:hover{
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0,168,204,0.6);
  background: linear-gradient(135deg,#00bce6 0%,#0088b3 100%);
}

/* MOBILE MENU TOGGLE */
.mobile-menu-toggle{display:none;background:none;border:none;font-size:22px;color:#0b2033;cursor:pointer}

@media (max-width: 900px) {
  .mobile-menu-toggle{display:block}
  nav,.contact{display:none}
  header nav{display:none;position:absolute;top:100%;left:0;width:100%;background:#ffffff;flex-direction:column;padding:20px 6vw;box-shadow:0 10px 25px rgba(0,0,0,0.1);gap:15px}
  header nav.active{display:flex}
  .hero,.technology,.split,.rental{grid-template-columns:1fr}
  .hero{height:auto;padding:100px 7vw}
  .products,.cards{grid-template-columns:1fr}
  .specs{grid-template-columns:1fr 1fr}
  .split>img{height:430px}
  .rental{padding:18vw 7vw}
  .instagram-grid{grid-template-columns:repeat(2,1fr)}
  .bodygrid-item{flex:0 0 270px;height:420px}
  .floating-noleggio-btn{bottom:15px;left:15px;padding:12px 18px;font-size:11px}
  
  /* Correzione Footer per iPhone / Mobile */
  footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 10px !important;
    padding: 30px 6vw !important;
  }
  footer b {
    font-size: 15px !important;
    margin-bottom: 2px !important;
  }
  footer span {
    font-size: 11px !important;
    line-height: 1.5 !important;
    color: #617785 !important;
  }
}

/* 1. Forza l'header a rimanere sticky anche su iPhone e mobile */
@media (max-width: 900px) {
  header {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
  }
}

/* 2. Assicura che Safari su iOS gestisca correttamente lo scroll senza rompere gli elementi fissi */
@media screen and (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    /* Rimuovi overflow-y: hidden se era presente, altrimenti blocca lo sticky di Safari */
  }
}

@media(max-width:560px){
  .section,.intro{padding:18vw 7vw}
  .technology{padding:18vw 7vw}
  .instagram-grid{grid-template-columns:1fr}
}

/* ==========================================================================
   MENU A TENDINA MANUALI NELL'HEADER (DESKTOP & MOBILE)
   ========================================================================== */
.manual-dropdown-container{position:relative;display:inline-block}
.manual-menu-btn{background:#f0f7fb;border:1px solid #d0e5f2;color:#0b2033;padding:8px 14px;border-radius:30px;font-size:12px;font-weight:bold;cursor:pointer;display:flex;align-items:center;gap:8px;transition:all 0.25s ease}
.manual-menu-btn:hover{background:#00a8cc;color:#ffffff;border-color:#00a8cc}
.manual-menu-btn:hover i{color:#ffffff !important}

.manual-dropdown-menu{display:none;position:absolute;right:0;top:calc(100% + 8px);background:#ffffff;min-width:220px;box-shadow:0 10px 30px rgba(11,32,51,0.15);border-radius:10px;border:1px solid #e2e8f0;z-index:100;overflow:hidden}
.manual-dropdown-menu.active{display:block !important;visibility:visible !important;opacity:1 !important;z-index:999999 !important}

.manual-dropdown-menu a{color:#0b2033;padding:12px 16px;text-decoration:none;display:block;font-size:13px;font-weight:500;border-bottom:1px solid #f1f5f9;transition:background 0.2s ease,color 0.2s ease}
.manual-dropdown-menu a:last-child{border-bottom:none}
.manual-dropdown-menu a:hover{background:#f0f7fb;color:#00a8cc}

@media screen and (max-width: 900px) {
  .manual-menu-btn{padding:6px 10px;font-size:11px}
  .manual-menu-btn span{display:inline-block !important}
  .manual-dropdown-menu{right:0;left:auto;min-width:200px}
}

/* ==========================================================================
   MENU A TENDINA INTEGRATO NELLA NAVIGAZIONE (Fasce Anatomiche)
   ========================================================================== */
.nav-dropdown{position:relative;display:inline-flex;align-items:center}
.nav-dropdown-content{display:none;position:absolute;top:calc(100% + 10px);left:0;background:#ffffff;min-width:210px;box-shadow:0 10px 30px rgba(11,32,51,0.15);border-radius:10px;border:1px solid #e2e8f0;z-index:100;overflow:hidden}
.nav-dropdown-content.active{display:block !important;visibility:visible !important;opacity:1 !important;z-index:999999 !important}

.nav-dropdown-content a{color:#0b2033;padding:11px 16px;text-decoration:none;display:block;font-size:12px;font-weight:500;border-bottom:1px solid #f1f5f9;transition:background 0.2s ease,color 0.2s ease}
.nav-dropdown-content a:last-child{border-bottom:none}
.nav-dropdown-content a:hover{background:#f0f7fb;color:#00a8cc}

@media screen and (max-width: 900px) {
  .nav-dropdown{width:100%;flex-direction:column;align-items:flex-start}
  .nav-dropdown-toggle{width:100%;display:flex;justify-content:space-between;align-items:center}
  .nav-dropdown-content{position:static !important;width:100% !important;box-shadow:none !important;border:none !important;background:#f7fbfd !important;padding-left:15px;margin-top:5px;border-radius:6px}
}

/* ==========================================================================
   STILI FORM DI CONTATTO E CRM
   ========================================================================== */
.crm-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
  width: 100%;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  width: 100%;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  color: #0b2033;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid #dcecf5;
  background: #f8fafb;
  font-family: inherit;
  font-size: 14px;
  color: #0b2033;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00a8cc;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 168, 204, 0.1);
}

.form-status-msg {
  margin-top: 15px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
}

.form-status-msg.success { color: #059669; }
.form-status-msg.error { color: #dc2626; }

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 15px;
  }
}

/* ==========================================================================
   EFFETTO FOCUS, ZOOM IMMAGINE E CARD SWIPER (SEZIONE 01 & ALTRE)
   ========================================================================== */

/* 1. DESKTOP ONLY: Zoom immagine, sfumatura delle altre card e sollevamento */
@media (hover: hover) and (pointer: fine) {
  /* Le altre card sfumano quando passi sulla griglia */
  .products:hover article {
    transform: scale(0.96);
    opacity: 0.65;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  }

  /* La card attiva si ingrandisce, si solleva e proietta luce */
  .products article:hover {
    transform: scale(1.04) translateY(-6px) !important;
    opacity: 1 !important;
    z-index: 10;
    box-shadow: 0 15px 35px rgba(0, 168, 204, 0.35) !important;
  }

  /* Zoom specifico dell'immagine interna alla maincard */
  .products .maincard:hover .pic img {
    transform: scale(1.12) !important;
  }
}

/* 2. MOBILE / IPHONE: Card in orizzontale con scorrimento fluido (Card Swiper) */
@media screen and (max-width: 768px) {
  .products {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch;
    gap: 16px !important;
    padding-bottom: 15px !important;
    margin-top: 25px !important;
    scrollbar-width: none;
  }

  .products::-webkit-scrollbar {
    display: none;
  }

  .products article {
    flex: 0 0 85% !important;
    min-width: 85% !important;
    scroll-snap-align: center !important;
    transform: none !important;
    opacity: 1 !important;
    min-height: 420px !important;
    box-sizing: border-box;
  }

  /* Disattiva l'effetto hover touch per evitare blocchi o trasparenze anomale su smartphone */
  .products:hover article {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ==========================================================================
   RIPRISTINO EFFETTI SEZIONE 02 (STANDARD MEDITECK)
   ========================================================================== */

/* 1. DESKTOP ONLY: Effetto Focus e Glow al passaggio del mouse */
@media (hover: hover) and (pointer: fine) {
  /* Quando passi sopra l'area delle specifiche, tutti i box sfumano leggermente */
  .specs:hover div {
    transform: scale(0.94);
    opacity: 0.4;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  }

  /* Il box specifico su cui posi il mouse si accende di luce CRIO */
  .specs div:hover {
    transform: scale(1.08) translateY(-6px) !important;
    opacity: 1 !important;
    z-index: 10;
    background: rgba(14, 42, 69, 0.98) !important;
    border: 1px solid #38bdf8 !important;
    border-top: 3px solid #38bdf8 !important;
    border-radius: 12px !important;
    box-shadow: 0 15px 40px rgba(0, 168, 204, 0.45), 0 0 25px rgba(56, 189, 248, 0.35) !important;
  }

  /* Ingrandisce l'icona e colora i testi all'interno del box attivo */
  .specs div:hover i {
    transform: scale(1.3);
    color: #38bdf8 !important;
    transition: transform 0.3s ease;
  }

  .specs div:hover h3 {
    color: #38bdf8 !important;
  }

  .specs div:hover p {
    color: #ffffff !important;
  }
}

/* 2. MOBILE / IPHONE: Slider Orizzontale Touch (Card Swiper) per la Sezione 02 */
@media screen and (max-width: 768px) {
  .specs {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch;
    gap: 16px !important;
    padding-bottom: 15px !important;
    margin-top: 25px !important;
    scrollbar-width: none;
  }

  .specs::-webkit-scrollbar {
    display: none;
  }

  .specs div {
    flex: 0 0 75% !important;
    min-width: 75% !important;
    scroll-snap-align: center !important;
    transform: none !important;
    opacity: 1 !important;
    background: rgba(14, 42, 69, 0.85) !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
    border-radius: 12px !important;
    padding: 30px 20px !important;
  }

  /* Disattiva l'effetto hover da touch su mobile per evitare blocchi */
  .specs:hover div {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Ripristina la spaziatura corretta sui titoli e sul logo */
.hero-fascia h1, 
.hero h1, 
.section h1, 
.section h2 {
  letter-spacing: normal !important;
  word-spacing: 0.2em !important;
  font-kerning: normal !important;
}

.hero-fascia h1 i, 
.hero h1 i {
  margin-left: 0.25em !important;
  letter-spacing: normal !important;
  display: inline-block !important;
}

/* Evita che il marchio registrato o l'header collassino */
header .logo sup {
  margin-left: 2px !important;
}

/* --- EFFETTO APPLE METALLICO VELOCE CON ONDA UNICA (NO LOOP) --- */

/* Riga 1 (CHI): Onda da sinistra a destra (1.2s) */
.mediteck-apple-riga1 {
  background: linear-gradient(110deg, #ffffff 0%, #475569 60%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.75));
  
  /* Animazione singola: si blocca a fine corsa lasciando il colore fisso */
  animation: mediteckShineSingle 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  display: inline-block;
}

/* Riga 2 (SIAMO): Stesso identico gradiente e verso, con piccolo ritardo a cascata */
.mediteck-apple-riga2 {
  background: linear-gradient(110deg, #ffffff 0%, #475569 60%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.75));
  
  /* Ritardo di 0.15s per far proseguire l'onda da "CHI" a "SIAMO" */
  animation: mediteckShineSingle 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.15s forwards;
  display: inline-block;
}

/* Scorrimento rapido unico da sinistra a destra */
@keyframes mediteckShineSingle {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: 0% center;
  }
}

/* --- TRASFORMA LA SEZIONE 03 IN SLIDER ORIZZONTALE SU IPHONE --- */
@media screen and (max-width: 768px) {
  /* Forza il contenitore delle card della sezione 03 ad andare in riga orizzontale */
  #applicazioni .cards,
  .section.pale .cards {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 16px !important;
    padding: 10px 20px 20px 20px !important;
    margin: 0 -20px !important; /* Allinea i bordi dello schermo */
    box-sizing: border-box !important;
  }

  /* Impedisce alle card di andare verticali e assegna la larghezza fissa dell'85% */
  #applicazioni .cards article,
  .section.pale .cards article {
    flex: 0 0 85% !important;
    min-width: 85% !important;
    max-width: 85% !important;
    scroll-snap-align: center !important;
    box-sizing: border-box !important;
  }
}

/* --- TRASFORMA SEZIONE 07 INSTAGRAM IN SLIDER ORIZZONTALE SU MOBILE --- */
@media screen and (max-width: 768px) {
  .instagram-section .instagram-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 16px !important;
    padding: 10px 20px 20px 20px !important;
    margin: 0 -20px !important; /* Allinea i bordi dello schermo */
    box-sizing: border-box !important;
  }

  .instagram-section .instagram-grid .insta-item {
    flex: 0 0 75% !important; /* Larghezza card Instagram nello slider */
    min-width: 75% !important;
    max-width: 75% !important;
    scroll-snap-align: center !important;
    box-sizing: border-box !important;
  }
}

/* --- CORREZIONE SFASAMENTO IMPAGINAZIONE MOBILE --- */
@media screen and (max-width: 768px) {
  body, html {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* Nota: 'header' è stato rimosso qui per permettere il posizionamento sticky su iPhone */
  section, footer, div {
    max-width: 100% !important;
    box-sizing: border-box;
  }
}

/* --- CORREZIONE TITOLI TAGLIATI SU MOBILE --- */
@media screen and (max-width: 768px) {
  .instagram-section, 
  .section {
    overflow: visible !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
  }

  .instagram-section h2, 
  .instagram-section small, 
  .instagram-section .insta-subtitle {
    overflow: visible !important;
    white-space: normal !important;
    max-width: 100% !important;
  }
}

/* --- CORREZIONE DEFINITIVA LEGGIBILITÀ E FONT SU IPHONE --- */
@media screen and (max-width: 768px) {
  h1, .mediteck-apple-riga1, .mediteck-apple-riga2 {
    font-size: clamp(32px, 8vw, 44px) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em !important;
    word-break: normal !important;
    overflow-wrap: break-word;
  }

  p, .bodygrid-intro, .insta-subtitle {
    font-size: 15px !important;
    line-height: 1.65 !important;
    color: #475569 !important;
  }

  section, .hero, .instagram-section {
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   FORZA HEADER STICKY PERFETTO SU IPHONE E MOBILE
   ========================================================================== */
@media (max-width: 900px) {
  header {
    position: -webkit-sticky !important; /* Indispensabile per Safari iOS */
    position: sticky !important;
    top: 0 !important;
    z-index: 99999 !important;
    width: 100% !important;
  }
}
