﻿@font-face {
  font-family: 'miofont';
  src: url('fonts/Anaktoria.otf');
  font-display: swap;
}

/* --- BASE --- */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ededed;
}

.container {
  width: 90%;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* --- SEZIONI PRINCIPALI --- */
.section-one,
.section-two {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin: 40px 0;
}

.section-one img,
.section-two img {
  width: 45%;
  max-width: 380px;
  border-radius: 10px;
  margin-right: 20px;
}

.section-one .text-section,
.section-two .text-section {
  width: 60%;
  padding-top: 0;
  padding-left: 10px;
  padding-right: 10px;
  box-sizing: border-box;
}

/* --- TESTO E TITOLI --- */
h1 {
  font-family: miofont, Arial, sans-serif;
  font-size: 3em;
  letter-spacing: 5px;
  color: #8b4513;
  margin: 0;
  text-align: center;
}
h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 25px;
  color: #131212;
  margin-bottom: 15px;
  text-align: center;
}
h3 {
  font-family: Arial, sans-serif;
  font-size: 1.3em;
  color: #4c330e;
  margin: 0.7em 0 0.2em 0;
}
hr {
  border: 2px solid #6C5B4C;
  margin: 20px 20px;
}
.style2 {
  text-align: justify;
  padding-right: 40px;
  font-size: 16px;
}
.style3 {
  text-align: center;
  font-weight: bold;
}
.text-section .highlight {
  font-weight: bold;
  font-size: 14px;
  color: #6C5B4C;
}
.subtitle {
  font-family: 'Georgia', serif;
  font-size: 18px;
  color: #131212;
}

/* --- UTILITY TESTO --- */
ul {
  font-size: 14px;
  line-height: 1.6;
  color: #6C5B4C;
}
.text-section p {
  font-size: 14px;
  line-height: 1.6;
  color: #4c330e;
}

/* --- IMMAGINI PRINCIPALI --- */
.operator-image,
.phone-image,
.img-responsive {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
  margin: 0 auto 16px auto;
  border-radius: 10px;
}
.phone-image-svizzera {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}
.operator-image-svizzera {
  max-width: 220px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto 30px auto;
}

/* --- IMMAGINI APP & BADGE --- */
.img-app {
  max-width: 150px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 8px 12px 8px;
  box-sizing: border-box;
  transition: transform 0.2s;
}
.img-app:hover {
  transform: scale(1.06);
}
.silhouette {
  max-width: 100px;
  width: 100%;
  height: auto;
  display: inline-block;
  margin: 0 12px;
}

/* --- IMAGE CONTAINERS --- */
.image-container,
.image-container2 {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.image-container img,
.image-container2 img {
  max-width: 100%;
  height: auto;
}

/* --- BLOCCO SCARICA APP CON IMMAGINE RITAGLIATA E PULSANTI --- */
.download-apps-section,
.image-container-download {
  text-align: center;
  margin: 40px auto 0 auto;
  max-width: 400px;
}
.banner-app-img {
  max-width: 100%;
  height: auto;
  margin-bottom: 14px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.app-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* --- BOTTONI TAROCCHI --- */
.tarocchi-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 20px;
}
.tarocchi-list button {
  background-color: #4c330e;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  font-size: 12px;
  font-weight: bold;
  margin: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 200px;
}
.tarocchi-list button:hover {
  background-color: #4f4337;
}

/* --- UTILITY --- */
.centered {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.text-justify { text-align: justify; }
.pt-35 { padding-top: 35px; }
.mt-20 { margin-top: 20px; }
.pb-5 { padding-bottom: 5px; }

/* --- SEZIONE OPERATORE CENTRATA --- */
.operator-row {
  display: flex;
  justify-content: center;
}
.operator-image-svizzera {
  max-width: 320px;
  width: 100%;
  height: auto;
  border-radius: 18px;
  display: block;
  margin: 40px auto 0 auto;
  background: #fff;
  padding: 24px 0 0 0;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 800px) {
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
  }
  .container {
    width: 100vw;
    max-width: 100vw;
    padding: 0 2vw;
    margin: 0;
    box-sizing: border-box;
  }
  h1 {
    font-size: 2em;
    padding: 0 2vw;
    margin-top: 14px;
    margin-bottom: 8px;
  }
  h2 {
    font-size: 1.2em;
    margin-bottom: 10px;
  }
  h3 {
    font-size: 1em;
  }
  .section-one,
  .section-two {
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
    gap: 10px;
  }
  .section-one img,
  .section-two img {
    width: 100%;
    max-width: 95vw;
    margin-right: 0;
  }
  .section-one .text-section,
  .section-two .text-section {
    margin-left: 2vw;
    margin-right: 2vw;
    padding-left: 10px;
    padding-right: 10px;
    width: 100%;
    box-sizing: border-box;
  }
  .tarocchi-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 10px;
    justify-content: center;
  }
  .tarocchi-list button {
    font-size: 13px;
    padding: 7px 4px;
    width: 95%;
    margin: 6px auto;
    border-radius: 14px;
  }
  .img-app { max-width: 110px; }
  .img-responsive { width: 90vw; max-width: 95vw; }
  .operator-image-svizzera { max-width: 98vw; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.3em; }
  h2 { font-size: 1.1em; }
  .container { padding: 0 1vw; }
  .section-one .text-section,
  .section-two .text-section {
    margin-left: 1vw;
    margin-right: 1vw;
    padding-left: 10px;
    padding-right: 10px;
  }
  .tarocchi-list { grid-template-columns: 1fr; }
  .tarocchi-list button {
    font-size: 12px;
    padding: 7px 2px;
    width: 90%;
    margin: 5px auto;
  }
  .img-app { max-width: 90vw; }
  .operator-image-svizzera { max-width: 98vw; }
}

@media (max-width: 400px) {
  .img-app { max-width: 80px; }
}