/* @import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Playfair+Display:wght@0,400..900;1,400..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&display=swap');
/* @import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&display=swap"); */
/* @import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&display=swap"); */
/* @import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700"); */
/* @import url("https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap"); */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Story+Script&display=swap');

:root {
  font-size: 100%; /* 16px */
  --light-color: #fff;
  --dark-color: #000;
  --text-color: #300;
  --primary-color: rgb(102, 0, 0); /* #600; */
  --accent-color: #900;
  --secondary-color: rgb(255, 153, 0, 90%); /*rgb(255, 153, 0)*/
  --secondary-color-dark: #d56b02; /* rgb(255, 110, 0, 90%); */
  --secondary-color-bg: rgb(255, 153, 0, 70%);
  --background-color: #fff8e1;
  /* --background-color: rgb(255, 153, 0, 10%); */
  /* --background-color: #f9f9f9; */
  --header-color: rgb(102, 0, 0);
  --font-body: 'Noto Sans', 'Roboto', Arial, Helvetica, sans-serif;
  /* --font-header: 'Playfair Display', 'Times New Roman', serif; */
  /* --font-header: 'Source Serif 4', 'Times New Roman', serif; */
  /* --font-header: 'Merriweather', 'Lora', serif; */
  --font-header: 'Noto Serif', 'Roboto', serif;
  /* --font-header: 'Noto Sans', 'Liberation Sans', sans-serif; */
  --border-radius: 8px;
  --border-default: solid 2px;

  /* Palette nuova */
  --bg: #fff8e1; /* giallo tenue caldo */
  --bg-alt: #fff3cc; /* variante per sezioni alternate */
  --card: #fff9ed; /* superficie card */
  --bordeaux: #7b2e2e;
  --bordeaux-90: rgba(123, 46, 46, 0.9);
  --ochre: #e88c30;
  --ochre-15: rgba(232, 140, 48, 0.15);
  --text: #2f2a28; /* antracite caldo */
  --muted: #7a6f68;
  --border: #e6d9b8;
  --focus: #2f2a28;
  /* --card-bg: rgb(255 153 0 / 12%); */
  --card-bg: #ffedc6;

  /* Tipografia */
  /* --font-sans: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto,
    'Helvetica Neue', Arial, 'Noto Sans', 'Liberation Sans', sans-serif; */
  --fs-100: clamp(0.95rem, 0.9rem + 0.2vw, 1rem); /* testo */
  --fs-200: clamp(1.05rem, 1rem + 0.6vw, 1.25rem); /* lead */
  --fs-250: clamp(1.15rem, 1.1rem + 0.8vw, 1.5rem); /* lead */
  --fs-300: clamp(1.25rem, 1.2rem + 1vw, 1.8rem); /* h3 */
  --fs-400: clamp(1.5rem, 1.3rem + 2vw, 2.2rem); /* h2 */
  --fs-500: clamp(1.9rem, 1.6rem + 3vw, 2.8rem); /* h1 */

  --fw-header: 500;

  /* Spazi */
  --sp-1: 0.5rem;
  --sp-2: 0.75rem;
  --sp-3: 1rem;
  --sp-4: 1.5rem;
  --sp-5: 2rem;
  --sp-6: 3rem;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

/* Reset Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Font e Stile Generale */
html,
body {
  font-family: var(--font-body);
  font-size: 1.1rem;
  height: 100%;
  line-height: 1.5;
  color: var(--text-color);
  background-color: var(--background-color);
}

h1,
h2,
h3,
h4,
h5 {
  font-weight: var(--fw-header);
  color: var(--header-color);
  font-family: var(--font-header);
  /* font-style: italic; */
}

h1 {
  font-size: var(--fs-500);
  text-wrap: nowrap;
}

h2 {
  font-size: var(--fs-400);
}

h3, .hero-content h1 {
  font-size: var(--fs-300);
}

h4 {
  font-size: var(--fs-200);
}

h5 {
  font-size: var(--fs-180);
}

a {
  color: var(--header-color);
  text-decoration: none;
  text-wrap: nowrap;
}

a:hover {
  text-decoration: underline;
}

.p-like-header {
  font-family: var(--font-header);
  font-size: var(--fs-200);
  font-weight: var(--fw-header);
  color: var(--header-color);
}

/* Header e Navbar Sticky */
header {
  background-color: var(--bg-alt);
  color: var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  flex-wrap: nowrap;
  /* Non permettere il wrapping in desktop */
}

/* Toggle per Navbar (Hamburger) */
#nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  cursor: pointer;
  height: 24px;
  justify-content: space-between;
  flex: 1 1 50%;
  align-items: flex-end;
}

.nav-toggle-label span {
  width: 25px;
  height: 3px;
  /* background: var(--light-color); */
  background: var(--primary-color);
  margin: 3px 0;
}

/* Navbar */
header nav {
  flex-basis: 100%;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: end;
  align-items: center;
}

nav ul li {
  margin: 0 0 0 1rem;
}

nav ul li a {
  /* color: var(--light-color); */
  color: var(--primary-color);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: var(--secondary-color);
}

/* Contenitore Centrale */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  padding: 3rem 0 3rem 0;
  text-align: center;
  background: var(--secondary-color-bg);
}

.hero-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background-color: var(--card-bg) !important;
  margin: auto;
  /* border: var(--border-default) var(--secondary-color); */
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
  width: fit-content;
  max-width: 750px;
}

.border-box-shadow {
  border: var(--border-default) var(--secondary-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.bg-card {
  background-color: var(--card-bg) !important;
}

.hero-content-text {
  margin: 1rem 2.5rem;
  text-align: center;
  justify-content: space-evenly;
  display: flex;
  flex-direction: column;
}

.avatar {
  width: 320px;
}

.society {
  padding: 0 1rem;
  display: inline-flex;
  justify-content: space-between;
  max-width: 750px;
  background-color: var(--primary-color);
  color: var(--light-color);
  text-align: left;
  font-style: normal;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: auto;
}

/* End Hero Section */

/* Intro Card Section */
.intro-card {
  margin: 2rem auto;
  text-align: center;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4rem;
}

.intro-card .card {
  margin: 0 auto;
  max-width: 500px;
  padding: 1.5rem;
  /* background: linear-gradient(135deg, #fff, #fff5e6); */
  /* sfumatura delicata */
  background: var(--card-bg);
  /* bordo in accent color */
  border: var(--border-default) var(--secondary-color);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  justify-content: center;
}

.intro-card .card h2 {
  font-size: var(--fs-300);
}

.intro-card .card h3 {
  font-size: var(--fs-250);
}

.intro-card .card img.intro-image {
  display: block;
  margin: 0 auto 1rem;
  max-width: 100%;
}

/* Cards Section (CSS Grid) */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem auto;
  justify-content: center;
  justify-items: center;
}

.card {
  background: var(--secondary-color-bg);
  border: 1px solid #ddd;
  padding: 1.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  width: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* .card h3 {
  font-family: var(--font-header);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
} */

/* .card p {
  margin-bottom: 1rem;
  color: #300;
} */

/* Divider (usato nelle sezioni dove serve) */
hr.divider {
  border: none;
  height: 4px;
  background-color: var(--secondary-color);
  margin: 1.5rem auto;
  width: 100%;
  max-width: 561px;
}

/* Video Section */
.video-section {
  max-width: 800px;
  /* Limita la larghezza della sezione video */
  margin: 2rem auto;
  /* Centra la sezione orizzontalmente e aggiunge margine verticale */
  padding: 2rem 0;
  text-align: center;
}

.video-section h2 {
  font-family: var(--font-header);
  font-size: 2rem;
  margin-bottom: 1rem;
  margin-top: 1rem;
  color: #300;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 */
  height: 0;
  overflow: hidden;
}

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

/* YouTube Info Section */
.youtube-info {
  padding: 2rem 0;
  text-align: center;
}

.youtube-info h2 {
  font-family: var(--font-header);
  font-size: 2rem;
  margin-bottom: 1rem;
  margin-top: 1rem;
  color: #300;
}

.youtube-info p {
  margin-bottom: 1rem;
  color: #300;
}

#now-what {
  display: grid;
  gap: 2rem;
  margin: 2rem auto;
  justify-items: center;
  grid-template-columns: 100px 1fr 420px;
  align-items: center;
}

/* Banner Promozionale */
#banner {
  background-color: #ecf0f1;
  padding: 1rem;
  margin: 2rem auto;
  /* Centra il banner rispetto alla pagina */
  width: 100%;
  max-width: 1200px;
  /* Assicura che il banner non si allarghi troppo */
}

.banner-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.banner-content img {
  max-width: 200px;
  margin: 0 auto 1rem auto;
}

.banner-text {
  flex: 1;
  text-align: left;
  margin: 1rem;
}

.banner-text h3 {
  font-family: var(--font-header);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #300 /* 333333 */;
}

.banner-text p {
  font-size: 1rem;
  color: #300;
}

.hero-img {
  width: 220px;
  margin: auto;
}

/* Footer */
footer {
  background-color: var(--header-color);
  color: #fff;
  padding: 1.5rem 0;
  width: 100%;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content p {
  margin-bottom: 1rem;
}

#footerNav {
  list-style: none;
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}

#footerNav li {
  margin: 0 10px;
}

#footerNav li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

#footerNav li a:hover {
  color: var(--secondary-color);
}

.hero-logo {
  width: 230px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
}

.btn.ghost {
  background: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
  margin-top: 2rem;
}

.contacts-card {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-direction: row;
  font-weight: bold;
  padding-top: 1rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  /* margin: auto; */
  width: fit-content;
}

.contact-section {
  max-width: 600px;
  margin: 1rem auto;
  padding: 1rem;
  /* background-color: #fff; */
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.contact-section h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-family: 'Playfair Display', serif;
}

.contact-form label {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Lora', serif;
  font-size: 1rem;
}

.contact-form button {
  margin-top: 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-family: 'Playfair Display', serif;
}

.contact-form button:hover {
  background-color: var(--accent-color);
}

/* Ottimizzazione per mobile */
/* Inizio Media Query per Navbar Mobile */
@media (max-width: 768px) {
  .onlydesktop {
    display: none;
  }

  .header-container {
    flex-wrap: wrap;
  }
  .text-nowrap-xl {
  }

  header h1 {
    flex: 1 1 50%;
    text-align: left;
  }

  .nav-toggle-label {
    display: flex;
    flex: 1 1 50%;
    justify-content: space-between;
    align-items: end;
  }

  header nav {
    order: 1;
    width: 100%;
    background-color: var(--header-color);
    display: none;
  }

  #nav-toggle:checked ~ nav {
    display: block;
  }

  nav ul {
    flex-direction: column;
    margin: 0;
  }

  nav ul li {
    margin: 0.5rem 0;
    text-align: center;
  }

  nav ul li a {
    color: var(--light-color);
  }

  .banner-content {
    flex-direction: column;
    text-align: center;
  }

  .banner-text {
    text-align: center;
  }

  .banner-content img {
    margin: 0 auto 1rem;
  }

  #now-what {
    display: none;
  }

  .hero-content {
    flex-direction: column;
    border: none;
    gap: 2rem;
    padding-top: 1rem;
  }

  .hero-content > img {
    order: -1;
    max-width: 100%;
    margin: 0 auto;
  }
  .avatar {
    width: unset;
    max-width: 320px;
  }

  .hero-logo {
    width: 180px;
  }

  .hero {
    padding: 1rem 0 2rem 0;
    text-align: center;
    background: var(--secondary-color-bg);
  }

  .btn-ghost {
    margin: 1rem auto 1rem auto;
  }

  .contacts-card {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .m2-xs {
    margin: 2rem;
  }
}
/* Fine Media Query per Navbar Mobile */

@media (min-width: 769px) {
  .onlymobile {
    display: none;
  }
}
@media (min-width: 1024px) {
  .hero-img {
    width: 350px;
  }
  .text-nowrap-xl {
    text-wrap: nowrap;
  }
}

/* Utility class */
.column-space-between {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Start space and size utility */
.p-15 {
  padding: 1.5rem;
}

.m-auto {
  margin: auto;
}

.m-0 {
  margin: 0;
}

.p-0 {
  padding: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.m-05 {
  margin: 0.5rem;
}

.m-1-auto {
  margin: 1rem auto;
}

.m-1 {
  margin: 1rem;
}

.mt-1 {
  margin-top: 1rem;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}
.mt-25 {
  margin-top: 2.5rem;
}

.w-100 {
  width: 100%;
}

.fit-content {
  width: fit-content;
  height: fit-content;
}

/* End space and size utility */

/* Start Fonts and Colors Utility */

.font-header {
  font-family: var(--font-header);
}

.italic {
  font-style: italic;
  /* font-style: oblique 15deg; */
}

.fw-header {
  font-weight: var(--fw-header);
}

.fw-400 {
  font-weight: 400;
}

.fw-500 {
  font-weight: 500;
}

.fw-600 {
  font-weight: 600;
}

.fw-700 {
  font-weight: 700;
}

.fw-800 {
  font-weight: 800;
}

.color-header {
  color: var(--header-color);
}

.color-secondary-dark {
  color: var(--secondary-color-dark) !important;
  font-weight: 600;
}

.bg-secondary-color {
  background-color: var(--secondary-color-bg) !important;
}

.lower {
  text-transform: lowercase;
}

.upper {
  text-transform: uppercase;
}

.text-center {
  text-align: center;
}

.text-start {
  text-align: start;
}

/* End Fonts and Colors Utility */
blockquote p:before {
  content: '\201D';
  font-family: var(--font-header);
  font-size: 5rem;
  font-weight: 700;
}

blockquote p {
  font-family: var(--font-header);
  font-size: var(--fs-250);
  font-style: italic;
}

.handwritten {
  font-family: 'Story Script', italic;
  font-size: 1.5rem;
  letter-spacing: 0.1rem;
}

.pt-0 {
  padding-top: 0 !important;
}
