/* ===== RESET & BASE STYLES ===== */
:root {
  --color-primary: #004aad;       /* blu istituzionale */
  --color-secondary: #004aad;     /* azzurro chiaro #99b7de */
  --color-accent: #f3b24d;        /* giallo ocra */
  --color-text: #333333;          /* colore testo base */
  --color-bg-light: #f8f9fa;      /* sfondo chiaro */
  --color-white: #ffffff;         /* bianco */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
    font-family: 'Staatliches', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
	visibility:hidden;
	opacity: 0;
	transition: all 300ms ease;
	filter: blur(10px)
}

body.visible {
  visibility:visible;
  opacity: 1;
  filter: blur(0)
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Serif Display', serif !important;
  text-transform: uppercase;
  letter-spacing: normal;
}

a {
  text-decoration: none;
  color: var(--color-accent);
  transition: color 0.3s ease;
}
a:hover {
  color: var(--color-primary);
}

i {
	color: var(--color-primary);
}

img {
  max-width: 100%;
  height: auto;
}
ul {
  list-style: none;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-secondary);
}
h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}
p {
  margin-bottom: 1rem;
}
/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #0071bc;
  color: var(--color-white);
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.btn:hover {
  background-color: #005a93;
  color: var(--color-white);
}
/* ===== HEADER ===== */
header {
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
}
.logo {
  max-width: 120px;
}
.language-selector {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 20px;
}
.language-selector a {
  display: flex;
  align-items: center;
  margin-right: 10px;
  color: #333;
  font-weight: 500;
}
.language-selector a.active {
  color: #0071bc;
  font-weight: 700;
}
/* ===== NAVIGATION ===== */
.main-nav ul {
  display: flex;
  align-items: center;
}
.main-nav li {
  position: relative;
  margin-left: 20px;
}
.main-nav a {
  color: #333;
  font-weight: 500;
  padding: 10px 0;
  display: block;
}
.main-nav a:hover, .main-nav li.active > a {
  color: #0071bc;
}
/* Dropdown Menu */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--color-white);
  min-width: 300px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 1;
  border-radius: 4px;
  padding: 10px 0;
  top: 100%;
  left: 0;
}
.dropdown-content a {
  color: #333;
  padding: 10px 15px;
  display: block;
  font-weight: 400;
}
.dropdown-content a:hover, .dropdown-content a.active {
  background-color: var(--color-white);
  color: var(--color-primary);
}
.dropdown:hover .dropdown-content {
  display: block;
}
/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}
.mobile-menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #333;
  border-radius: 3px;
}
/* ===== HERO SECTION ===== */
.hero {
  background-color: var(--color-secondary);
  color: var(--color-white);
  padding: 100px 0;
}
.hero-content {
	text-align: center;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}
.hero img {
  width: 300px;
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}
/* ===== COMPANY INTRO ===== */
.company-intro {
  padding: 80px 0;
  text-align: center;
}
.company-intro h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.company-intro p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 30px;
}
/* ===== SERVICES OVERVIEW ===== */
.services-overview {
  padding: 60px 0;
  background-color: #f5f5f5;
}
.services-overview .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.service-card {
  background-color: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}
  .read-more
, .read-more2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  bottom: 20px;
  right: 20px;
  transition: background-color 0.3s ease;
}
  .read-more:hover
, .read-more2:hover{
  background-color: #005a93;
  color: var(--color-white);
}
.read-more {
  position: absolute;
}
.read-more2 {
  transform: rotate(90deg);
}
.read-more-close {
  transform: rotate(270deg);
}
.arrow-icon {
    color: #fff !important;
    content: ">>";
    font-size: 12px !important;
	padding: 3px 0px 0px 3px;
}
/* ===== ABOUT SECTION ===== */
.about-section {
  padding: 80px 0;
}
.about-section h2 {
  text-align: center;
  margin-bottom: 40px;
}
.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}
.about-card {
  background-color: #f5f5f5;
  padding: 30px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}
.about-card:hover {
  transform: translateY(-5px);
}
.about-card h3 {
  margin-bottom: 20px;
}
.about-card .read-more {
  display: inline-block;
  position: relative;
  width: auto;
  height: auto;
  background-color: transparent;
  color: #0071bc;
  font-weight: 600;
  bottom: auto;
  right: auto;
}
.about-card .read-more:hover {
  color: #005a93;
}
/* ===== STATS SECTION ===== */
.stats-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}
.stats-section .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  text-align: center;
}
.stat-item h3 {
  font-size: 2.5rem;
  color: #0071bc;
  margin-bottom: 10px;
}
.stat-item p {
  font-size: 1rem;
  color: #666;
}
/* ===== PAGE HEADER ===== */
.page-header {
  background-color: #f5f5f5;
  padding: 60px 0;
  text-align: center;
}
.page-header h1 {
  margin-bottom: 10px;
}
.page-header h2 {
  font-size: 1.2rem;
  font-weight: 400;
  color: #666;
  margin-bottom: 0;
}
/* ===== CONTENT SECTION ===== */
.content-section {
  padding: 60px 0;
}
.content-placeholder {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  color: #999;
  font-style: italic;
}
/* ===== SERVICES GRID ===== */
.services-grid {
  padding: 60px 0;
}
.services-grid .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.service-icon {
  width: 60px;
  height: 60px;
  background-color: #e6f3fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
/* ===== NETWORK FILTERS ===== */
.network-filters {
  padding: 30px 0;
}
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.filter-tab {
  padding: 8px 16px;
  background-color: #f5f5f5;
  border-radius: 4px;
  color: #333;
  font-weight: 500;
  transition: all 0.3s ease;
}
.filter-tab:hover, .filter-tab.active {
  background-color: #0071bc;
  color: var(--color-white);
}
.provider-count {
  font-size: 1.2rem;
  font-weight: 600;
  color: #0071bc;
}
/* ===== NETWORK MAP ===== */
.network-map {
  padding: 40px 0;
}
.map-placeholder {
  width: 100%;
  height: 400px;
  background-color: #f5f5f5;
  border-radius: 8px;
}
/* ===== NEWS GRID ===== */
.news-grid {
  padding: 20px 0;
}
.news-grid .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.news-card {
  background-color: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	width: 200px;
}
.news-image {
  height: 200px;
  background-color: #f5f5f5;
}
.news-content {
  padding: 20px;
  position: relative;
}
.news-date {
  color: #666;
  margin-bottom: 10px;
}
.news-card h3 {
  font-size: 1.2rem;
  margin-bottom: 30px;
}
/* ===== CONTACT INFO ===== */
.contact-info {
  padding: 60px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.contact-item {
  padding: 30px;
  background-color: #f5f5f5;
  border-radius: 8px;
}
.contact-icon {
  width: 60px;
  height: 60px;
  background-color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.email-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.email-item p {
  margin-bottom: 5px;
  color: #666;
}
/* ===== CONTACT FORM ===== */
.contact-form {
  padding: 60px 0;
}
.contact-form form {
  max-width: 800px;
  margin: 0 auto;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}
.form-group textarea {
  resize: vertical;
}
.checkbox-group {
  display: flex;
  align-items: flex-start;
}
.checkbox-group input {
  width: auto;
  margin-right: 10px;
  margin-top: 5px;
}
.form-submit {
  margin-top: 30px;
}
/* ===== OFFICE LOCATIONS ===== */
.office-locations {
  padding: 60px 0;
  background-color: #f9f9f9;
}
.office-locations h2 {
  font-size: 1.5rem;
  margin-top: 30px;
}
.country-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
/* ===== FOOTER ===== */
footer {
  background-color: #f5f5f5;
  padding: 30px 0 30px 0;
}
.footer-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}
.footer-info p {
  margin-bottom: 0;
  color: #666;
}
.footer-links {
  margin-bottom: 30px;
}
.footer-links a {
  display: inline-block;
  margin-right: 20px;
  color: #0071bc;
}
.copyright {
  border-top: 1px solid #ddd;
  padding-top: 20px;
  color: #999;
}

.back-to-top {
	position: fixed;
	bottom: 20px;
	right: 20px;
	padding: 10px 15px;
	font-size: 18px;
	border: none;
	border-radius: 5px;
	background-color: #99b7de;
	color: var(--color-white);
	cursor: pointer;
	display: none;
	z-index: 1000;
	box-shadow: 0 2px 6px rgba(0,0,0,0.3);
	transition: opacity 0.3s ease;
}

.back-to-top.show {
	display: block;
	opacity: 1;
}

.back-to-top:hover {
	background-color: #99b7de99;
}



/* ---------------------------------------------- */
.service-section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
  flex-wrap: nowrap;
}

.service-image {
  flex: 0 0 50%;
  max-width: 50%;
}

.service-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

.service-content {
  flex: 0 0 40%;
  max-width: 40%;
}
#map {
  flex: 0 0 60%;
	height: 600px;
}

.service-content h1 {
  color: #004aad;
  font-size: 2rem;
  margin-bottom: 1rem;
  font-family: 'DM Serif Display', serif;
  text-transform: none;
  letter-spacing: normal;
}

.service-content p {
  line-height: 1.6;
  color: #333;
  font-family: 'Staatliches', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .service-section {
    flex-direction: column;
    padding: 2rem 1rem;
  }

  .service-image,
  .service-content {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .service-content h1 {
    font-size: 1.5rem;
  }
}


/* ---------------------------------------------- */
    .services-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      gap: 20px;
      padding: 2rem;
      max-width: 1200px;
      margin: 0 auto;
    }

    .service-block {
      position: relative;
      overflow: hidden;
      border-radius: 10px;
      cursor: pointer;
      height: 150px;
      transition: transform 0.3s ease;
    }

    .service-block img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease;
    }

    .service-block:hover img {
      transform: scale(1.1);
    }

    .service-title {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      padding: 1rem;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
		text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
      color: white;
      font-size: 1.2rem;
      transition: font-size 0.3s ease;
    }

    .service-block:hover .service-title {
      font-size: 1.4rem;
    }

    a.service-link {
      text-decoration: none;
      color: inherit;
    }


/* ---------------------------------------------- */
.services-carousel {
  overflow: hidden;
  padding: 3rem 0;
  background-color: #f8f9fa;
}

.carousel-track {
  display: flex;
  gap: 2rem;
  animation: scrollX 120s linear infinite;
  width: max-content;
}

.carousel-item {
  flex: 0 0 auto;
  width: 200px;
  text-align: center;
}

.carousel-item > img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.carousel-item > span {
  display: block;
  margin-top: 0.5rem;
  color: #99b7de;
  font-family: 'Staatliches', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

@keyframes scrollX {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* Puoi regolare per la lunghezza totale */
}


/* ---------------------------------------------- */
  .service-block
, .carousel-item {
  position: relative;
  overflow: hidden;
}

  .service-block::before
, .carousel-item::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(25deg);
  pointer-events: none;
  transition: transform 0.5s ease;
}

  .service-block:hover::before
, .carousel-item:hover::before {
  transform: translateX(300%) rotate(25deg);
  transition: transform 0.5s ease;
}


/* ---------------------------------------------- */
#change.active {
  background-color: #004aad;
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
}



.peme-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.company-description {
  flex: 1 1 60%;
}

.peme-image {
  /*flex: 1 1 20%;*/
  display: flex;
  justify-content: center;
}

.peme-image img {
	width: 200px !important;
    height: 200px !important;
    border-radius: 50%;
    object-fit: cover;
/*    border: solid 5px var(--color-primary);
*/}

@media (max-width: 768px) {
  .peme-layout {
    flex-direction: column;
  }

  .peme-image {
    margin-top: 2rem;
  }
}

.txtr {
	text-align: right;
}

/* ---------------------------------------------- */

.peme-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.peme-layout:not(:last-child) {
		margin-bottom: 40px;
    border-bottom: solid 1px var(--color-primary);
}

.company-description {
  flex: 1 1 60%;
}

.news-source {
  font-size: 10px;
  color: #ccc;
  margin-top: 2px;
}

.news-content {
  position: relative;
  padding-bottom: 1.5rem; 
    text-align: left;
}

/* --------------------------------------*/
.image {
/*	width: 99vw;
	height: 50vh;
	background-image: url("../images/ship.webp");
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	    margin: 50px 0px;*/
	
	    margin: 50px;
    text-align: center;
}
.parallax-container {
      position: fixed;
      top: 0; left: 0;
      width: 100%;
      height: 100vh;
      z-index: -1;
      overflow: hidden;
    }

    .bg-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0.8;
    }

    .logo-overlay {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      max-width: 40vw;
      opacity: 0;
      transition: opacity 0.2s linear;
    }

/*    .parallax-container {
      position: relative;
      height: 100vh;
      overflow: hidden;
   }
    .bg-ocean {
      background: url('../images/ocean2.png') no-repeat center center;
      background-size: cover;
      position: absolute;
      top: 0; left: 0;
      width: 100%;
      height: calc(100% - 100px);
      transform: scale(1);
      transition: transform 0.3s ease;
	  overflow: hidden;
	  z-index: 1;
    }

    .wake {
      position: absolute;
      top: 40%;
      left: 50%;
      width: 100%;
      max-width: 675px;
      transform: translate(-46%, 0%);
      opacity: 1;
      transition: opacity 0.4s ease;
      pointer-events: none;
		height: 70%;
	  z-index: 2;
    }
    .wake_over {
    position: absolute;
    top: 78%;
    left: 50.4%;
    width: 100%;
    max-width: 750px;
    transform: translate(-50%, 0%);
    opacity: 1;
    transition: opacity 0.4s ease;
    pointer-events: none;
    height: 36%;
    z-index: 4;
    }
    .ship {
      position: fixed;
      top: 55%;
      left: 50%;
      width: 600px;
      max-width: 90%;
      transform: translate(-50%, -50%);
      transition: transform 0.3s ease;
      pointer-events: none;
	  z-index: 3;
		scale: 0.90;
    }*/ 

    main.content {
      position: relative;
      z-index: 4;
      background: #fff;
      padding: 100vh 1.5rem 3rem;
    }

    main h1, main p {
      max-width: 800px;
      margin: 0 auto 2rem;
      line-height: 1.6;
    }

    @media (max-width: 768px) {
      .wake {
        max-width: 100%;
      }

      .ship {
        width: 280px;
      }

      main.content {
        padding: 90vh 1rem 3rem;
      }

      main h1 {
        font-size: 1.5rem;
      }

      main p {
        font-size: 0.95rem;
      }
    }