/*
Theme Name: NasPesa 2025
Version: 1.0
*/

/* Base styles for mobile (320px - 480px) */
body {
  font-size: 12px;
  font-family: Arial, sans-serif;
  margin: 0;
}
.nas-container {
  padding-left: 0px;
  padding-right: 0px;
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
/* Footer */
.footer-black {
  text-align: left;
  padding: 20px;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  background-color: #000;
  color: #fff;
}
.footer-black a {
  color: #fff;
  text-decoration: underline;
}
.footer-black a:hover {
  text-decoration: none;
}
/* Header */
.site-header {
  max-width: 1160px;
  width: 100%;
  height: 350px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: url("https://delivery.naspesa.it/wp-content/themes/nas2023/img/cover-napoli.jpg")
    no-repeat center center;
  background-size: cover;
  background-position: center;
  margin: auto;
}
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: top;
  padding: 30px 20px;
  background: transparent;
}
.logo {
  z-index: 1;
}
.logo img {
  height: 60px;
}
.whatsapp-button {
  z-index: 1;
}
.whatsapp-button a {
  display: flex;
  align-items: center;
  background: #fff;
  text-decoration: none;
  font-weight: bold;
  color: black;
}
.whatsapp-button img {
  height: 24px;
}
.main-navigation {
  height: 202px;
  padding-left: 20px;
  padding-right: 20px;
  position: relative;
  overflow: hidden;
}
.menu-overlay {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1160px;
  height: 350px;
  background-color: rgba(0, 162, 255, 0.5);
  mix-blend-mode: darken;
  pointer-events: none;
  z-index: 1;
}
.menu-list {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 1;
}
.menu-list li {
  margin-bottom: 0px;
}
.menu-list a {
  background: yellow;
  color: black;
  display: inline-block;
  font-weight: bold;
  text-transform: uppercase;
  padding-left: 3px;
  padding-right: 3px;
  line-height: 1rem;
  padding-bottom: 2px;
}
.slogan {
  background: black;
  color: yellow;
  font-weight: bold;
  margin-left: 0px;
  width: 100%;
  font-size: 18px;
  text-align: left;
  padding-left: 20px;
  padding-right: 20px;
  line-height: 24px;
  padding-bottom: 5px;
  z-index: 1;
  position: absolute;
}
#slogan-text {
  margin: 0;
}
/* Pagina Homepage */
.homepage-section {
  display: block;
  padding: 30px 20px;
  background-color: #ffeb00;
}
.home-left {
  flex: 1;
  padding-right: 0px;
}
.home-left h2 {
  font-size: 28px;
  margin-bottom: 20px;
  font-weight: bold;
}
.home-left p {
  font-size: 18px;
  line-height: 1.5;
}
.home-right {
  flex-direction: column;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.service-box {
  margin: 10px 0;
  text-align: center;
  position: relative;
}
.service-box img {
  width: 200px;
  height: auto;
  margin-bottom: 10px;
}
.service-box p {
  font-weight: bold;
  font-size: 16px;
  background: #68e1fd;
  margin: auto;
  width: fit-content;
  color: white;
  padding-right: 3px;
  padding-left: 3px;
}
.green-dot {
  width: 15px;
  height: 15px;
  background-color: #ccc;
  border-radius: 50%;
  margin: 10px auto 0 auto;
  transition: all 0.3s ease;
}
.green-dot.active {
  background-color: #00cc00;
  box-shadow: 0 0 10px #00cc00;
}
/* Homepage - Sezione Perché NasPesa */
.why-naspesa-section {
  display: flex;
  justify-content: center;
  flex-direction: column-reverse;
  align-items: center;
  padding: 30px 20px;
  gap: 20px;
}
.slider-left-vertical {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.slider-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
#sliderWrapper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.slide-box-vertical {
  height: auto;
  flex-direction: column;
  text-align: center;
  margin-bottom: 20px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
  padding: 20px;
  display: flex;
  width: 100%;
  align-items: center;
}
.slide-box-vertical img {
  margin-right: 0px;
  width: 70px;
  height: 70px;
}
.slide-box-vertical-text {
  display: flex;
  flex-direction: column;
}
.slide-box-vertical-text h4 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 5px;
}
.slide-box-vertical-text p {
  font-size: 14px;
  margin: 0;
}
.slider-controls button {
  background: none;
  border: none;
  padding: 0;
  font-size: 30px;
  cursor: pointer;
  line-height: 1;
}
@keyframes vertical-slide {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-600px);
  } /* 3 slide visibili = 200px * 3 */
}
.text-right {
  flex: 1;
  max-width: 500px;
  text-align: left;
}
.text-right h2 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: left;
}
.text-right p {
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}
.clienti-flex {
  display: block;
}
.cliente-box {
  height: 200px;
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  flex: 1 1 calc(50% - 10px);
}
.cliente-box:hover {
  transform: scale(1.02);
}
.cliente-box.aziende {
  background-image: url("https://delivery.naspesa.it/wp-content/uploads/2023/10/aziende-delivery.jpg");
}
.cliente-box.privati {
  background-image: url("https://delivery.naspesa.it/wp-content/uploads/2023/10/privati-delivery.jpg");
}
.overlay-content {
  position: absolute;
  bottom: 30px;
  left: 30px;
  border-radius: 12px;
  text-align: left;
}
.overlay-content h2 {
  font-family: "Exo 2", sans-serif;
  font-weight: 900;
  font-size: 32px;
  margin: 0 0 15px;
  line-height: 1.1;
}
.overlay-content h2 span:first-child {
  color: #00bfff;
}
.overlay-content h2 span:last-child {
  color: #ffd700;
}
.btn-scopri {
  display: inline-block;
  background: white;
  padding: 10px 20px;
  color: black;
  font-weight: 600;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}
.btn-scopri:hover {
  background: #f1f1f1;
}
/* homepage - sezione app bordo tratteggiato */
.app-box {
  background-color: #b3e5fc;
  position: relative;
  display: flex;

  margin-top: 0px;
  padding: 30px 20px;
  flex-direction: column;
}
.app-inner-border {
  border: 6px dashed white;
  padding: 20px;
}
.app-inner-border h2 {
  font-family: "Exo 2", sans-serif;
  font-weight: 800;
  margin-bottom: 20px;
  text-align: center;
}
.app-inner-border p {
  max-width: 1000px;
  margin: 0 auto 30px auto;
  font-family: "Roboto", sans-serif;
  text-align: center;
}
.app-statistiche {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 30px 0;
  flex-wrap: wrap;
}
.stat-box {
  background-color: black;
  color: white;
  padding-left: 5px;
  padding-right: 5px;
  font-size: 24px;
  font-family: "Exo 2", sans-serif;
}
.bottone-app {
  text-align: center;
  width: 100%;
  background: black;
  color: white;
  padding: 15px 40px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  margin: 0 auto;
}
.bottone-app:hover {
  background: #333;
}
.app-accesso {
  margin: 20px 0 30px 0;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
}
/* homepage - Sezione Partner */
.slider-partner {
  overflow: hidden;
  position: relative;
  width: 100%;
  background: #fff;
  padding: 30px 0;
}
.partner-item {
  flex: 0 0 210px; /* 200px + 10px spazio incluso */
  margin: 0 5px; /* 5px a destra e sinistra => 10px totale */
  filter: grayscale(100%);
  transition: filter 0.3s;
}
.partner-item:hover {
  filter: grayscale(0%);
}
.partner-logo {
  width: 160px;
  height: 160px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: grayscale(100%);
}
.partner-logo:hover {
  filter: grayscale(0%);
}
@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.track-partner {
  display: flex;
  width: calc(200%);
  animation: scrollLeft 50s linear infinite; /* più fluido e morbido */
}
.splide__slide {
  padding: 0 !important;
  margin: 0 !important;
}
/* pagina Chi siamo */
.chisiamo-section {
  padding-top: 30px;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 0px;
}
.chisiamo-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.chisiamo-text {
  flex: 1 1 50%;
}
.chisiamo-text h2 {
  font-family: "Exo 2", sans-serif;
  font-weight: 800;
  font-size: 28px;
  margin-bottom: 20px;
}
.chisiamo-text p {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
}
.chisiamo-img {
  flex: 1 1 40%;
  text-align: right;
}
.chisiamo-img img {
  max-width: 500px;
  height: 300px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.orbit-partner-section {
  gap: 0px;
  padding: 0px;
  flex-direction: column-reverse;
  flex-wrap: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #b3e5fc;
}
.orbit-col-left {
  flex: 1;
  min-width: 400px;
  display: flex;
  justify-content: center;
}
.orbit-col-right {
  padding-left: 20px;
  padding-right: 20px;
  min-width: none;
  padding-top: 30px;
}
.orbit-wrapper {
  position: relative;
  width: 300px;
  height: 300px;
}
.bag-center {
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  z-index: 1;
  position: absolute;
  top: 50%;
  left: 50%;
}
.bag-center img {
  width: 100%;
  height: auto;
}
.orbit {
  top: 28%;
  left: 25%;
  width: 300px;
  height: 300px;
  scale: 0.8;
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.label {
  position: absolute;
  background: yellow;
  padding-left: 3px;
  padding-right: 3px;
  font-weight: bold;
  white-space: nowrap;
  font-family: "Exo 2", sans-serif;
  transform: translate(-50%, -50%);
}
.storia-slider-section {
  padding: 30px 20px;
  text-align: left;
}
.titolo-sezione-storia {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
}
.sottotitolo-sezione-storia {
  font-size: 18px;
  margin-bottom: 20px;
  color: #333;
}
.storia-content {
  flex-direction: column;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  gap: 20px;
}
.storia-slider-wrapper {
  position: relative;
  width: 150px;
  height: 150px;
  overflow: hidden;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.storia-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: transform 0.4s ease;
}
.storia-slide {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.anno-box {
  background: black;
  color: white;
  font-size: 48px;
  font-weight: 800;
  padding: 10px 20px;
}
.storia-testo {
  max-width: 600px;
  text-align: left;
  min-height: 150px;
}
.storia-testo h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 15px;
}
.storia-testo p {
  font-size: 16px;
  line-height: 1.5;
}
.freccia-sotto {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 20px solid cyan;
  cursor: pointer;
  transition: transform 0.2s;
}
.freccia-sotto:hover {
  transform: translateX(-50%) scale(1.2);
}
.team-section {
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 20px;
  display: flex;
  justify-content: space-between;
  background-color: #ffd700;
}
.team-left {
  padding-right: 0px;
  flex: 1;
}
.team-right {
  height: 480px;
  flex: none;
  position: relative;
  padding-top: 50px;
  margin-bottom: 50px;
  width: 80%;
  margin: auto;
}
#team-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}
.team-card {
  position: absolute;
  top: 0;
  left: 0;
  background: white;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #ccc;
  transition: all 0.4s ease;
  height: auto;
}
.team-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid #ddd;
  font-weight: bold;
  font-size: 20px;
}
.close-btn {
  background: red;
  color: white;
  border: none;
  padding: 5px 15px;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
}
.team-body {
  flex-direction: column;
  padding-top: 0px;
  gap: 15px;
  display: flex;
}
.team-photo img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  object-position: top;
  padding-top: 0px;
}
.team-description {
  font-size: 14px;
  line-height: 1.4;
  padding: 0px 15px 12px 15px;
}
/*pagina blog*/
.nas-article-card {
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}
.nas-article-card:hover {
  transform: translateY(-5px);
}
.nas-article-img img {
  object-fit: cover;
  height: 150px;
  object-position: center;
  width: 100%;
}
.nas-article-text p {
  font-size: 14px;
  line-height: 1.4;
}
.filter-btn {
  padding: 0px 3px 3px 3px;
  border: none;
  background-color: black;
  font-weight: bold;
  cursor: pointer;
  color: white;
}
.filter-btn.active {
  background-color: #ffff00;
  color: black;
}
.article-section {
  padding: 50px;
}
/*pagina partner*/
.sezione-partner {
  padding-left: 20px;
  padding-right: 20px;
}
.partner-filters {
  display: block;
  text-align: center;
}
.filter-bar {
  margin-bottom: 40px;
  text-align: center;
}
.filter-btn-partner {
  padding: 0px 3px 3px 3px;
  border: none;
  background-color: black;
  font-weight: bold;
  cursor: pointer;
  color: white;
  margin: 2px;
}
.filter-btn-partner-partner {
  background-color: black;
  color: white;
  border: none;
  padding: 0px 3px 3px 3px;
  margin: 2px;
}
.filter-btn-partner.active,
.filter-btn-partner-partner.active {
  background-color: black;
  color: #ffff00;
}
/* Sezione Partner Grid */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
  margin-top: 40px;
  justify-items: center;
  align-items: center;
}
.partner-card {
  background: white;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  padding: 5px;
  display: flex;
  align-items: center;
  transition: transform 0.2s;
  max-width: 300px;
  min-width: 300px;
}
.partner-card:hover {
  transform: translateY(-5px);
}
.partner-inner {
  display: flex;
}
.partner-logo img {
  width: 200px;
  height: 200px;
  object-fit: contain;
}
.partner-info {
  margin-left: 20px;
  flex: 1;
}
.partner-name {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 10px;
}
.partner-badges .badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 5px;
  color: black;
  font-weight: bold;
  margin: 2px;
  font-size: 14px;
}
/*pagina privati*/
/* Contenitore principale telefono + testo */
.telefono-privati {
  position: relative;
  z-index: -1;
  margin-bottom: 0px;
}
.box-telefono {
  flex-direction: column-reverse;
  padding-left: 10px;
  padding-right: 10px;
  gap: 30px;
  padding-top: 30px;
  margin-bottom: -22px;
}
#img-telefono {
  width: 330px;
  height: 410px;
}
.telefono-overlay {
  background-color: rgba(62, 62, 62, 0.8);
  z-index: 0;
}
/* Box messaggi WhatsApp */
#messaggi-wrapper div {
  transition: all 0.5s ease;
}
.griglia-privati {
  grid-template-columns: repeat(1, 1fr);
}
.box-messaggio {
  width: 290px;
  font-size: 14px;
  left: 20px;
}
/* Badge titoli sotto immagini (I NOSTRI ORARI, INVIA ORDINE, CONSEGNATO) */
h4 {
  font-weight: 800;
  font-size: 16px;
  margin-top: 10px;
}
/* Box come funziona */
.sezione-come-funziona {
  background-color: #ffd900;
  padding: 50px 30px;
}

/* Sezione Esplosione */
.explosion-section {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d0f0ff;
  position: relative;
}
.explosion-left {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 50px;
}
.explosion-text {
  position: absolute;
  z-index: 2;
  text-align: center;
}
.explosion-text h1 {
  font-size: 48px;
  font-weight: 900;
  margin: 0;
}
.explosion-text h3 {
  font-size: 22px;
  font-weight: 700;
  color: #f5b800;
  margin: 5px 0 0;
}
.bubble {
  position: absolute;
  z-index: 1;
  width: 300px;
  height: auto;
  transform: scale(0);
  opacity: 0;
  transition: all 0.6s ease;
}
.bubble.active {
  transform: scale(1);
  opacity: 1;
}
.explosion-right {
  max-width: 600px;
}
.explosion-right h2 {
  font-size: 30px;
  font-weight: 900;
  margin-bottom: 20px;
}
.explosion-right p {
  font-size: 16px;
  line-height: 1.5;
}
/*pagina contatti */
.section-contatti {
  display: block;
  padding: 0px;
}
/* Sezione Cartolina */
.section-cartolina {
  padding-top: 30px;
  padding-bottom: 50px;
  padding-left: 50px;
  padding-right: 50px;
}

/* === CARTOLINA (bordo airmail, timbro/segno in alto dx, misure fisse) === */

/* default = mobile */
:root {
  --pc-pad: 14px; /* padding interno */
  --pc-border: 8px; /* spessore bordo airmail */
  --pc-height: 520px; /* altezza fissa mobile */
}

/* desktop */
@media (min-width: 1025px) {
  :root {
    --pc-pad: 16px;
    --pc-border: 10px;
    --pc-height: 380px; /* altezza fissa desktop */
  }
}

.postcard {
  position: relative;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  padding: var(--pc-pad);
  height: var(--pc-height);
  max-height: none !important;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* bordo airmail */
.postcard::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: var(--pc-border);
  border-radius: 0px;
  z-index: 0;
  background: repeating-linear-gradient(
    45deg,
    #e31d2d 0 14px,
    #e31d2d 14px 28px,
    #ffffff 28px 42px,
    #1b5fbf 42px 56px,
    #1b5fbf 56px 70px,
    #ffffff 70px 84px
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* segno/timbro in alto a destra */
.postcard::after {
  content: "";
  position: absolute;
  top: calc(var(--pc-pad) + 6px);
  right: calc(var(--pc-pad) + 6px);
  width: 110px;
  height: 44px;
  z-index: 1;
  opacity: 0.6;
  pointer-events: none;
  background: radial-gradient(
        circle at 20% 50%,
        rgba(0, 0, 0, 0.12) 0 8px,
        transparent 9px
      )
      no-repeat,
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.15),
      rgba(0, 0, 0, 0.15) 8px,
      transparent 9px,
      transparent 16px
    );
}
@media (max-width: 1024px) {
  .postcard::after {
    width: 86px;
    height: 36px;
    top: calc(var(--pc-pad) + 4px);
    right: calc(var(--pc-pad) + 4px);
  }
}

/* francobollo sopra al segno */
#francobollo {
  position: absolute;
  top: calc(var(--pc-pad) + 2px);
  right: calc(var(--pc-pad) + 2px);
  width: 90px;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s ease;
  rotate: 2deg;
}
@media (max-width: 1024px) {
  #francobollo {
    width: 70px;
  }
}

/* form interno */
.postcard-form {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.postcard-body {
  flex: 1 1 auto;
  overflow: auto; /* scorre solo il contenuto */
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 colonne desktop */
  gap: 20px;
  padding-right: 4px;
  scrollbar-width: none;
}
.postcard-body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* dopo invio (opzionale, se JS aggiunge .sent): blocca lo scroll interno */
.postcard-form.sent .postcard-body {
  overflow: hidden;
}

/* 1 colonna fino a 1024px */
@media (max-width: 1024px) {
  .postcard-body {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* footer fisso in basso */
.postcard-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  bottom: 0;
  padding-top: 8px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 30%);
}
.postcard-footer .btn-invia {
  background: #000;
  color: #fff;
  font-weight: 700;
  border: none;
  font-size: 16px;
  padding: 6px 10px;
  cursor: pointer;
}

/* micro-ritocchi */
.colonna2cartolina {
  margin-top: 6px !important;
}
#cartolina-img,
.postcard {
  height: var(--pc-height) !important;
}
/*box contatti sidebar partner */
.box-contatti {
  height: fit-content;
}
#contatti-form {
  padding: 10px 15px;
}
.riga-bottone {
  margin-bottom: 20px;
}
.team-container {
  overflow: hidden;
}
.testo-aziende {
  padding-left: 0px;
  padding-right: 0px;
}
.page > div:nth-child(2) {
  display: none;
}
.page > div:last-child {
  flex: 1 1 100%;
  transform: none; /* rimuove effetto 3D */
}
.page {
  flex-direction: column;
  transform: none;
}
#prevPage {
  display: none;
}
#nextPage {
  right: 1%;
  top: 93%;
  rotate: -2deg;
}
/* pagina aziende */
.section-aziende {
  background-color: #d6f1ff;
  padding: 30px 20px;
}
.nas-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.nas-btn:hover {
  background: #ffcc00;
  color: #000;
}
.page-image {
  height: 150px;
  object-position: top;
}
.left-page-libro {
  padding: 10px;
}
.section-explosione {
  display: block;
  padding: 0px;
  padding-left: 20px;
  padding-right: 20px;
  background: #ffda00;
}
.testo-servizio {
  padding-left: 0px;
  padding-bottom: 20px;
}
.box-explosione {
  min-height: 300px;
}
#bubble {
  padding: 30px;
}
#bubble-line1 {
  font-size: 25px;
  padding: 0px 5px;
}
#bubble-line2 {
  font-size: 16px;
  padding: 0px 5px;
  width: max-content;
}
.center-line {
  display: none;
}
.section-funziona-aziende {
  padding: 30px 20px;
}
#whatsapp-square {
  width: 50px;
}
.text-consegne-privati {
  padding-left: 10px;
  padding-right: 10px;
}
.text-consegne-privati h2 {
  font-size: 22px;
}
.come-funziona-box {
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 30px;
  padding-bottom: 0px;
  text-align: left;
}
#come-funziona-wrapper {
  flex-direction: column;
}
.come-funziona-box p {
  text-align: left;
}
.come-funziona-box h3 {
  text-align: left;
}
#img-come-funziona {
  width: 120px;
}
#titolo-come-funziona {
  font-size: 16px;
}
#box-card {
  padding: 0px;
  padding-bottom: 10px;
}
#testo-box-card {
  text-align: center;
}
#img-griglia {
  height: 150px;
  object-fit: cover;
}
#didascalia-griglia {
  padding: 0px 5px;
}
#colonna1cartolina {
  min-width: unset;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.colonna2cartolina {
  min-width: unset;
  justify-content: flex-start;
  margin-top: 90px;
}
#box-cartolina {
  min-width: 300px;
  max-width: 350px;
  padding: 5px;
  margin: auto;
}
#contatti-label {
  font-size: 12px;
}
#contatti-label-inviato {
  font-size: 12px;
  position: absolute;
  top: 160px;
}
#francobollo {
  width: 70px;
}
#contatti-autorizzo {
  font-size: 12px;
  position: static; /* prima era absolute: lo rendo fluido col layout */
  width: auto;
  border: 0;
  padding: 0;
}
#col-sx-contatti {
  padding: 30px 20px;
}
#btn-invia {
  margin-top: 15px;
}
.section-telefono {
  flex-direction: column;
  flex-wrap: unset;
  padding: 0px;
  gap: 0px;
}
#testo-chiama {
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 30px;
}
#btn-chiamasubito {
  display: none;
}
#nas-container-partner {
  padding-top: 30px;
  padding-bottom: 30px;
}
/* partner page */
#rowpartner {
  flex-direction: column-reverse;
}
.hero-partner {
  padding: 30px 20px;
}
.bg-warning {
  margin-bottom: 20px;
}
.testo-partner {
  padding-right: 20px;
}
/*blog page */
#nas-container-blog {
  padding: 30px 20px;
}
/*pagina articolo */
.single-article {
  padding: 30px 20px;
}
#testo-articolo {
  padding-right: 15px;
}
.p-3 {
  margin-top: 20px;
}
#cover-img {
  margin-top: 0px;
}
/***********************************************************/
/* Small tablets and larger mobile devices (481px - 768px) */
@media (min-width: 481px) {
  .home-right {
    flex-direction: row;
  }
  .service-box img {
    width: 120px;
  }
  .app-inner-border {
    padding: 10px;
  }
  .app-statistiche {
    gap: 10px;
  }
  .stat-box {
    font-size: 18px;
  }
  .orbit-wrapper {
    height: 400px;
  }
  .orbit {
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    scale: 1;
  }
  #nextPage {
    top: 92%;
    rotate: -2deg;
  }
  .section-explosione {
    display: block;
  }
  .team-body {
    flex-direction: row;
    padding: 15px;
  }
  .team-photo img {
    height: 210px;
    width: 120px;
  }
  .team-right {
    height: 410px;
  }
  .nas-article-card {
    width: 420px;
  }
  .nas-article-img img {
    height: 180px;
  }
  .telefono-privati {
    margin-bottom: 30px;
  }
  #img-telefono {
    width: 430px;
    height: 380px;
  }
  .griglia-privati {
    grid-template-columns: repeat(2, 1fr);
  }
  .box-messaggio {
    width: 380px;
    font-size: 14px;
  }
  #contatti-form {
    padding: 15px 25px;
  }
  #img-griglia {
    height: 180px;
  }
  .section-contatti {
    display: flex;
    flex-direction: column;
  }
  #box-cartolina {
    height: 330px;
    max-width: 500px;
  }
  /* mappo la vecchia regola: il contenitore adesso è .postcard/#cartolina-img */
  #cartolina-img,
  .postcard {
    height: 340px;
  }
}

/***********************************************************/
/* Tablets and small laptops (769px - 1024px) */
@media (min-width: 769px) {
  .footer-black {
    padding: 30px 0;
    text-align: center;
  }
  .site-header {
    height: 400px;
  }
  .header-top {
    padding: 20px 30px;
  }
  .main-navigation {
    padding-left: 30px;
    padding-right: 30px;
    height: 100%;
  }
  .menu-overlay {
    height: 400px;
  }
  .slogan {
    font-size: 24px;
    text-align: center;
    padding-left: 3px;
    padding-right: 3px;
    width: fit-content;
    margin-left: 30px;
    position: absolute;
  }
  .homepage-section {
    display: flex;
    flex-direction: column;
    padding: 50px;
  }
  .home-right {
    flex-direction: row;
  }
  .service-box {
    margin: auto;
  }
  .service-box img {
    width: 200px;
  }
  .why-naspesa-section {
    align-items: center;
    flex-direction: column-reverse;
    gap: 50px;
    padding: 50px;
  }
  .stat-box {
    font-size: 24px;
  }
  .text-right {
    max-width: unset;
  }
  .slider-left-vertical {
    width: 500px;
  }
  #sliderWrapper {
    width: 500px;
  }
  .slide-box-vertical {
    flex-direction: row;
    height: 100px;
  }
  .slide-box-vertical img {
    width: 90px;
    height: 90px;
    margin-right: 20px;
  }
  .clienti-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }
  .cliente-box {
    height: 300px;
  }
  .app-box {
    flex-direction: row;
    padding: 30px;
    margin-top: 20px;
    text-align: center;
  }
  .bottone-app {
    width: unset;
  }
  .app-inner-border {
    padding: 30px 30px;
  }
  .partner-logo {
    width: 200px;
    height: 200px;
  }
  .chisiamo-section {
    padding: 50px;
    display: flex;
  }
  .storia-slider-wrapper {
    width: 100%;
    padding: 20px;
  }
  .orbit-partner-section {
    gap: 50px;
    padding: 50px;
    flex-wrap: wrap;
    flex-direction: column-reverse;
  }
  .orbit-col-left {
    min-width: 400px;
  }
  .orbit-col-right {
    flex: 1;
    padding-left: 0px;
    padding-right: 0px;
  }
  .orbit-wrapper {
    height: 300px;
  }
  .bag-center {
    width: 180px;
    height: 180px;
  }
  .orbit {
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    scale: 1;
  }
  .storia-slider-section {
    text-align: center;
    padding: 50px;
  }
  .sottotitolo-sezione-storia {
    margin-bottom: 40px;
  }
  .storia-content {
    flex-direction: row;
    gap: 50px;
    align-items: flex-start;
  }
  .team-section {
    display: block;
    padding: 50px;
  }
  .team-left {
    padding-right: 50px;
  }
  .team-right {
    flex: 1;
    height: 350px;
  }
  .team-body {
    flex-direction: row;
    padding: 15px;
  }
  .team-photo img {
    width: 150px;
    height: 200px;
  }
  /* pagina blog */
  .nas-article-card {
    width: 335px;
  }
  .nas-article-img img {
    width: 100%;
    height: 200px;
  }
  .sezione-partner {
    padding-left: 50px;
    padding-right: 50px;
  }
  .partner-filters {
    justify-content: center;
  }
  /* Sezione Partner Grid */
  .partner-grid {
    gap: 30px;
  }
  .partner-card {
    width: 350px;
  }
  /* pagina privati */
  .telefono-privati {
    margin-bottom: unset;
  }
  .box-telefono {
    gap: 0px;
  }
  #img-telefono {
    width: 450px;
    height: auto;
  }
  .griglia-privati {
    grid-template-columns: repeat(3, 1fr);
  }
  .box-messaggio {
    width: 400px;
    left: 25px;
  }
  /*pagina aziende*/
  .section-aziende {
    padding-top: 50px;
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 80px;
  }
  .page {
    flex-direction: row;
  }
  .page-image {
    height: unset;
  }

  .section-explosione {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  /*pagina contatti */
  .section-contatti {
    display: flex;
    padding: 20px;
  }
  #contatti-form {
    padding: 20px 30px 20px 30px;
  }
  #come-funziona-wrapper {
    flex-direction: row;
  }
  .section-telefono {
    flex-direction: row;
    flex-wrap: wrap;
  }
  /* partner page */
  #rowpartner {
    flex-direction: row;
  }
  #prevPage {
    display: block;
    left: -1%;
    top: 102%;
  }
  #nextPage {
    right: -1%;
    top: 7%;
  }
}

/***********************************************************/
/* Large desktops and high-resolution screens (1025px and up) */
@media (min-width: 1025px) {
  .main-navigation {
    height: 220px;
  }
  #prevPage {
    display: block;
    left: -3%;
    top: 50%;
  }
  #nextPage {
    right: -3%;
    top: 50%;
  }
  .nas-container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .homepage-section {
    flex-direction: row;
    gap: 50px;
  }
  .service-box img {
    width: 150px;
  }
  .why-naspesa-section {
    flex-direction: row;
  }
  .orbit-partner-section {
    flex-direction: row;
  }
  .team-section {
    display: flex;
    flex-direction: row;
  }
  .team-right {
    flex: 1;
    height: 400px;
    margin-right: 30px;
    align-items: flex-start;
  }
  .section-contatti {
    flex-direction: row;
    padding: 60px;
  }
  .partner-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 3fr));
  }
  .chisiamo-section {
    display: flex;
    flex-direction: row;
  }
  .box-telefono {
    display: flex;
    flex-direction: row;
  }
}

/***********************************************************/
/* Extra-large screens (1440px and up) */
@media (min-width: 1440px) {
}
/***********************************************************/
/* === TASTO WHATSAPP con stato e pallino === */
.whatsapp-button a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #000;
  text-decoration: none;
  padding: 8px 14px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.whatsapp-button a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.whatsapp-button .ops-label {
  line-height: 1;
}

/* pallino: rosso fisso base (chiusi) */
.whatsapp-button .ops-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff3b30; /* rosso */
  box-shadow: none;
  animation: none;
}

/* aperti: verde + pulsing */
.ops-open .whatsapp-button .ops-dot {
  background: #00d084;
  box-shadow: 0 0 0 0 rgba(0, 208, 132, 0.6);
  animation: opsPulse 2s infinite;
}

@keyframes opsPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 208, 132, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 208, 132, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 208, 132, 0);
  }
}
