/* === BASE === */
* {
  box-sizing: border-box;
}

#bannerprincipale {
  margin-top: 108px;
}

p, li {
  font-size: 18px;
}
   
h1 {
  font-size: 36px!important;
  text-align: center;
  line-height: 1.1;
}

h1.top40 {
  padding-top: 40px;
}

h2 {
  font-size: 24px!important;
  padding-top: 30px;
  line-height: 1.2;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Jost", sans-serif;
  background: #f8f9fa;
  color: #001E33;
  overflow-x: hidden;
}

img {
  max-width:100%;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  border-bottom: 1px solid #001E33;
}

/* === BUBBLE HEADER AMARANTYA === */
.am-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    position: fixed;
    margin: 0;
    left: 0;
    right: 0;
    top: 0;
    z-index: 666;
}

.am-header-bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    45deg,
    #999 5%,
    #fff 10%,
    #ccc 30%,
    #ddd 50%,
    #ccc 70%,
    #fff 80%,
    #999 95%
  );
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
  border-radius: 0;
  padding: 1.5rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 100%;
}

.site-footer {
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(
    45deg,
    #999 5%,
    #fff 10%,
    #ccc 30%,
    #ddd 50%,
    #ccc 70%,
    #fff 80%,
    #999 95%
  );
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
  border-radius: 0;
  padding: 1.5rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 2rem;
  color: #333;
  font-size: 0.9rem;
}

.am-logo img {
  height: 60px;
}

.am-hamburger {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #8F1539;
  transition: transform 0.2s ease;
}

.am-hamburger:hover {
  transform: scale(1.1);
}

.am-mobile-nav {
  background: white;
  border-radius: 12px;
  margin-top: 1rem;
  padding: 1rem 2rem;
  width: 100%;
  max-width: 680px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  display: none;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.am-mobile-nav.open {
  display: block;
  opacity: 1;
  transform: scale(1);
}

.am-mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.am-mobile-nav li {
  margin: 1rem 0;
}

.am-mobile-nav a {
  color: #001E33;
  font-weight: 500;
  font-size: 1.1rem;
}

.socialico {
  width: 30px;
  margin-right: 20px; 
}

.hero > h1, .hero > p {
  max-width: 1200px;
  position: relative;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
}

/* === CTA === */
.cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  margin-top: 2rem;
  background-color: white;
  color: #001E33;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease;
}

.cta:hover {
  background-color: #e3e3e3;
  transform: scale(1.05);
}


/* === IFRAME VIDEO === */



.section.videoframe {
    position: fixed;
    display: block;
    z-index: 777;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    height:100vh;
    width:100vw;
    background-color: rgba(0,0,0,0.6);
}

.section.bannerframe {
    position: fixed;
    display: block;
    z-index: 9999;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    background-color: rgba(0,0,0,0.6);
}

.section.videoframe2 {
    position: fixed;
    display: block;
    z-index: 2;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    background-color: rgba(0,0,0,0.6);
}

.exit {
  position: fixed;
  display: block;
  z-index: 9999;
  top: 15px;
  right: 15px;
  color: white;
  width: 45px;
  height: 45px;
  background-color: transparent;
  text-align: center;
  border: 3px solid white;
  border-radius: 5em;
  cursor: pointer;
}

.new-frame-container {

}
.new-frame-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 78vw;
    height: 44vw;
    margin: auto;
    right: 0;
    bottom: 0;
}

.widecont {
  max-width: 100vw !important;
    width: 100vw !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    position: relative;
    left: 50%;
    right: 50%;
}

.new-frame-container iframe#videobanner {
    position: absolute;
    top: 0;
    left: 0;
    width: 35.2vw;
    height: 44vw;
    margin: auto;
    right: 0;
    bottom: 0;
}


@media screen and (max-width:500px) {
  div.widecont > iframe {
    height:275px!important;
    padding-bottom:20px;
  }

  .drone-container {
    padding-top: 40px;
  }
}

.frame-container {
    position: relative;
    padding-bottom: 56.25% !important;
    padding-top: 25px;
    width: 300%;
    left: -100%;
}

.frame-container2 {
    position: relative;
    padding-bottom: 56.25% !important;
    padding-top: 25px;
    width: 300%;
    left: -100%;
}

.frame-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

span.closevid {
    font-family: Arial !important;
    font-weight: 500;
    font-stretch: extra-expanded;
    line-height: 2;
    font-size: 20px;
}

.bannervideocontainer {
  padding-top:30px;
}

.mobonly {
  display: none;
}


@media screen and (max-width: 767px) {
    .new-frame-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 98vw;
        height: 55.5vw;
        margin: auto;
        right: 0;
        bottom: 0;
    }
    
    .mobonly {
      display: block!important;
    }
    .deskonly {
      display: none;
    }
}


/* === FEATURES GRID === */
.features-grid {
  padding: 2rem 2rem 0rem 2rem;
  background-color: #f4f4f4;
  text-align: center;
}

.features-title,
.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #001E33;
}

.grid-container {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 1200px;
  margin: 0 auto;
}

.grid-item,
.feature-box {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  padding: 0rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.grid-item img,
.feature-box img {
  width: 100%;
  border-radius: 0px;
  margin-bottom: 1rem;
}

.grid-item img {
  display: block;          /* evita spazi indesiderati sotto l'immagine */
  width: 100%;             /* occupa tutta la larghezza */
  height: auto;
  margin: 0 0 10px 0;      /* margine solo sotto, ad esempio 10px */
  border-top-left-radius: inherit;  /* se vuoi mantenere gli angoli arrotondati ereditati */
  border-top-right-radius: inherit;
}

.grid-item h3,
.feature-box h3 {
  color: #8F1539;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  padding: 0px 3rem;
}

.grid-item p,
.feature-box p {
  font-size: 0.95rem;
  color: #333;
  padding: 0px 3rem 1rem 3rem;
}

.grid-item:hover,
.feature-box:hover {
  transform: translateY(-5px);
}

.feature-text {
  padding: 1rem;
}

/* === FEATURES === */

.features {
    display: block;
    padding: 3rem 10%;
    background: #fff;
    color: #001E33;
    text-align: justify;
}

.feature {
  max-width: 1200px;
  text-align: center;
}

/* === ANIMAZIONI === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out forwards;
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-600px);
  animation: fadeInLeft 1s ease-out forwards;
}

.fade-in.delay-1 { animation-delay: 0.3s; }
.fade-in.delay-2 { animation-delay: 0.6s; }
.fade-in.delay-3 { animation-delay: 0.9s; }
.fade-in.delay-4 { animation-delay: 1.2s; }
.fade-in.delay-5 { animation-delay: 1.5s; }
.fade-in.delay-6 { animation-delay: 1.8s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* === FOOTER === */

.am-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-selector {
  position: relative;
}

.lang-toggle {
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: #001E33;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.lang-toggle:hover {
  background: #f0f0f0;
}

.lang-menu {
  display: none;
  position: absolute;
  top: 120%;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 0.5rem 0;
  min-width: 80px;
  z-index: 100;
}

.lang-menu li {
  text-align: center;
}

.lang-menu a {
  display: block;
  padding: 0.4rem 0.75rem;
  text-decoration: none;
  color: #033D61;
  transition: background 0.2s ease;
}

.lang-menu a:hover {
  background: #f4f4f4;
}

/* Attivo toggle JS */
.lang-selector.open .lang-menu {
  display: block;
}

/* === LANG SELECTOR ANIMATO === */
.lang-selector {
  position: relative;
}

.lang-toggle {
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: #033D61;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: background 0.2s ease;
}

.lang-toggle::after {
  content: "▾";
  transition: transform 0.3s ease;
}

.lang-selector.open .lang-toggle::after {
  transform: rotate(180deg);
}

.lang-toggle:hover {
  background: #f0f0f0;
}

.lang-menu {
  display: block;
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  position: absolute;
  top: 120%;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 0.5rem 0;
  min-width: 80px;
  z-index: 100;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.lang-selector.open .lang-menu {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.lang-menu li {
  text-align: center;
}

.lang-menu a {
  display: block;
  padding: 0.4rem 0.75rem;
  text-decoration: none;
  color: #033D61;
  transition: background 0.2s ease;
}

.lang-menu a:hover {
  background: #f4f4f4;
}

/* === MOBILE NAV ANIMATO === */
.am-mobile-nav {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  background: white;
  border-radius: 12px;
  margin-top: 1rem;
  padding: 1rem 2rem;
  width: 100%;
  max-width: 680px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.am-mobile-nav.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.DM {
  color: black;
}

.DM:hover {
  text-decoration: unset;
  font-weight: 600;
  color: #FF0000;
}

.amalink:hover {
  color: #8F1539;
}

.storelogo {
  width: 200px;
  padding: 10px 20px 10px 0px;
}

.herocontent {
  max-width:1200px;
  position: relative;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  padding-top: 3rem;

}



.rightcol {
  text-align: left;
}

.smartphone {
  max-width: 100%
}

@media screen and (max-width: 924px) {
  .rightcol {
    order: 1;
    text-align: center;
  }
  .leftcol {
    order: 2;
  }

  .herocontent {
    display: flex;
    flex-direction: column;
  }

  .smartphone {
    max-width: 100%;
    width: 55vw;
  }
}

@media screen and (max-width: 768px) {
  /* HERO */
  .hero {
    padding: 8rem 1rem 0rem 1rem;
  }

  .storelogo {
    width: 140px;
    padding: 6px;
  }

  /* GRID */
  .grid-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .grid-item h3,
  .feature-box h3 {
    font-size: 1.1rem;
  }

  .grid-item p,
  .feature-box p {
    font-size: 0.9rem;
  }

  /* FEATURES */
  .features {
    flex-direction: column;
    align-items: center;
    padding: 3rem 1rem;
  }

  .feature {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
  }

  /* HEADER BUBBLE */
  .am-header-bubble {
    max-width: 100vw;
    width: 100%;
    min-height: 108px;
  }

  .am-mobile-nav.open {
    max-width: 90vw;
  }
  
  .am-logo > img {
    height: 40px;
  }

  /* FOOTER */
  .site-footer {
    font-size: 0.8rem;
    padding: 1.5rem 1rem;
  }

  /* LANG */
  .lang-toggle {
    font-size: 0.95rem;
  }

  .lang-menu a {
    font-size: 0.9rem;
  }
}

table, th, td {
  border: 1px solid #001E33;
  border-collapse: collapse;
}

th, td {
  padding: 10px 10px;
  width: 50%;
}

table.gridlike > tbody > tr > td {
  padding: 10px 10px;
  width: 33.3%;
}

th {
  background-color: #bebebe;
  color: #001E33;
  font-size: 24px;
}

table.horiz  > tbody > tr > td:first-child {
  background-color: #bebebe;
  color: #001E33;
}

h2.flow {
  position: relative;
  display: inline-block;
  font-weight: 500;
  text-align: center;
  color: #93c13d;
}

h2.flow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #2c3873, #ea6958, #f7c061, #99cad6, #007c8d);
  animation: gradientMove 1s linear infinite;

}

@keyframes gradientMove {
  to {
    background-position: 200% center;
  }
}


.video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 80px;
}

.video-container > iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.button {
  width: fit-content;
  position: relative;
  left: 0;
  right: 0;
  margin: auto;
  padding: 20px;
  background-color: #1C2535;
  color: white;
  border-radius: 12px;
}

.wholerow {
  display: block;
}

.halfcol {
  display: inline-block;
  max-width: 49.5%;
  padding: 2.5%;
  vertical-align: middle;

}

.athirdcol {
  display: inline-block;
  max-width: 33%;
  padding: 2.5%;
  vertical-align: middle;
}

.twothirdcol {
  display: inline-block;
  max-width: 66%;
  padding: 2.5%;
  vertical-align: middle;
}

@media screen and (max-width: 500px) {
  .halfcol {
    display: inline-block;
    max-width: 100%;
    padding: 2.5%;
    vertical-align: middle;
  }
  .btnrow {
    width: 100%;
  }

  .inlinebtn {
    width: 100%;
  }
}

span.bulletpoint {
  vertical-align: middle;
  font-weight: 900;
  font-size: 25px;
  padding: 10px;
}

.inlinebtn {
    display: inline-block;
    padding: 20px;
}

.btnrow {
    display: block;
    position: relative;
    width: fit-content;
    left: 0;
    right: 0;
    margin: auto;
}