/* Root theme */
:root {
  --bg: #0f1115;
  --surface: #151821;
  --text: #e6e8ec;
  --muted: #b7bcc7;
  --brand: #7bd389;
  --brand-2: #6aa3ff;
  --accent: #ffc861;
  --danger: #ff7a7a;
  --shadow: rgba(0,0,0,0.5);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 36px;
  --space-6: 56px;
  --max-w: 1080px;
}

/* CSS Reset (minimal) */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding-left: 1.2rem; }

/* Typography */
body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  /*background: radial-gradient(1200px 800px at 80% -10%, #1b1f2b, transparent 60%), var(--bg);*/
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body pre{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 800px at 80% -10%, #1b1f2b, transparent 60%), var(--bg);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 var(--space-3); }
h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.02em; }
h2 { font-size: clamp(22px, 3.2vw, 32px); }
h3 { font-size: clamp(18px, 2.4vw, 24px); }

p, li{ margin: 0 0 var(--space-3); color: var(--text); }


/* Layout */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--space-4); }
.container.narrow { max-width: 760px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(15,17,21,0.9), rgba(15,17,21,0.7));
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3) var(--space-4);
}

.brand { display: flex; align-items: center; gap: var(--space-2); position: relative; }
.brand__logo { width: 36px; height: 36px; }
.brand__name { font-weight: 700; letter-spacing: 0.2px; }
.brand__tag { color: var(--muted); font-size: 14px; margin-left: 6px; }

.site-nav { display: flex; align-items: center; gap: var(--space-3); }
.site-nav a { opacity: 0.9; transition: opacity .2s ease; padding: 8px 10px; border-radius: 8px; }
.site-nav a:hover, .site-nav a:focus { opacity: 1; background: rgba(255,255,255,0.05); outline: none; }

/* Hamburger button - hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 100;
  position: relative;
}

.hamburger__line {
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger[aria-expanded="true"] .hamburger__line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 6px);
}

.hamburger[aria-expanded="true"] .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger__line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -5px);
}

/* Mobile navigation menu */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 21, 0.98);
  backdrop-filter: saturate(120%) blur(12px);
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
  height: fit-content;
}

.mobile-nav[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav a {
  font-size: 20px;
  padding: var(--space-3) var(--space-4);
  width: 100%;
  text-align: center;
  border-radius: var(--radius);
  transition: background 0.2s ease;
}

.mobile-nav a:hover,
.mobile-nav a:focus {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

/* Hero */
.hero { padding: var(--space-6) 0 var(--space-5); background: radial-gradient(800px 400px at 20% -10%, #1b2230, transparent 60%); }
.hero__title { margin-bottom: var(--space-3); }
.hero__qs { color: var(--muted); font-size: 18px; display: grid; gap: 6px; }

/* Manifesto */
.manifesto { padding: var(--space-5) 0; }


/* Paths grid */
.paths { padding: var(--space-5) 0; }
.paths__intro, .paths__note { color: var(--muted); }
.grid { display: grid; gap: var(--space-4); }
.grid--paths { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--space-3);}
.grid--mobile{ grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--space-3);  grid-template-columns: repeat(3, minmax(0,1fr));}

.card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06); isolation: isolate; z-index: 7;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card__img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-4);
}
.card__title {
  position: absolute; left: 16px; bottom: 12px; z-index: 10; font-weight: 700; letter-spacing: 0.2px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.6);
}

/* Fog effect */
.card--fog::before, .card--fog::after {
  content: ""; position: absolute; inset: -20%; z-index: 2; pointer-events: none;
  background: radial-gradient(200px 120px at 20% 80%, rgba(255,255,255,0.08), transparent 60%),
              radial-gradient(240px 140px at 80% 20%, rgba(255,255,255,0.08), transparent 62%);
  filter: blur(16px) saturate(120%);
}
.card--fog::after {
  inset: -10%;
  background: radial-gradient(300px 160px at 50% 100%, rgba(255,255,255,0.07), transparent 65%);
  mix-blend-mode: screen; opacity: 0.9;
}
.card:hover .card__img { transform: scale(1.03); }
.card .card__img { transition: transform .5s ease; }

/* CTA */
.cta { padding: var(--space-6) 0; /*background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));*/ border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); }

/* Footer */
.site-footer { padding: var(--space-5) 0; }
.footer__sigil { margin-top: var(--space-3); display: flex; justify-content: center; opacity: 0.9; }
.footer__logo { width: 44px; height: 44px; filter: drop-shadow(0 4px 16px rgba(0,0,0,0.6)); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.14); transition: all .2s ease; font-weight: 600; }
.btn--primary { background: linear-gradient(180deg, var(--brand), #55c874); color: #0b1015; border-color: transparent; }
.btn--primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { background: rgba(255,255,255,0.06); }

/* Forms */
.input, textarea { width: 100%; background: var(--surface); color: var(--text); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 12px 14px; }
label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 14px; }
.field { margin-bottom: var(--space-3); }

/* Utilities */
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* Responsive */
@media (max-width: 760px) {
  .site-nav { display: none; }
  .site-header {
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  .hamburger { 
    display: flex;
    margin-left: var(--space-3);
    flex-shrink: 0;
  }
  .brand {
    flex: 1;
    min-width: 0;
  }
  .mobile-nav { 
    display: flex; 
  }
  .grid--paths { grid-template-columns: 1fr; }
  .hero { padding: var(--space-5) 0 var(--space-4); }
} 

.title_center { 
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.p_text {
  font-size: larger;
  margin-bottom: 40px;
}

.con .title_center{
  margin-bottom: 60px;
}

.manifesto h3{
  font-weight: 100;
  margin-bottom: 0;
}

.ready{
  font-size: x-large;
  font-style: italic;
  font-weight: 100;
}

.hover-text {
  transition: transform 0.3s ease;  
  cursor: pointer;
}

.hover-text:hover {
  transform: scale(1.2);   
}

.glass {
background: rgba(255, 255, 255, 0.16);
border-radius: 16px;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
border: 1px solid rgba(255, 255, 255, 0.3);
}


.fogcontainer { /* il div genitore */
  position: relative;
  overflow: hidden; /* taglia tutto ciò che esce dai bordi */
  width: 100%;
  height: 100%; /* o l’altezza desiderata */
  /*pointer-events: none !important;*/
}

.fogcontainer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 25%; /* altezza sfumatura */
  background: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0) 100%);
  pointer-events: none; /* lascia cliccare elementi sotto */
  z-index: 10; /* sopra il livello 1 della nebbia ma sotto eventuali elementi interattivi */
}

.undertitle{
  font-size: 1.3em; /* o controlla la dimensione del tuo h4 */
  font-weight: 400;
  margin: 0; /* opzionale: così si comporta più come h4 */
}

.undertitle-medium{
  font-size: 1.2em; /* o controlla la dimensione del tuo h4 */
  font-weight: 400;
  margin-bottom: 8px;
  color:var(--text)
}

.undertitle-small{
  font-size: 1.1em; /* o controlla la dimensione del tuo h4 */
  font-weight: 400;
  margin-bottom: 8px;
}

.role{
  background-color: #55c874;
  padding: 0.2em 0.2em;
  border-radius: 0.1em;
  box-shadow: 0 6px 18px rgba(255, 203, 64, 0.18);
}

/* Main section styling */
.mainsection {
  padding: var(--space-5) 0;
}

.mainsection img {
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  margin: var(--space-4) 0;
  width: 100%;
  height: auto;
  display: block;
}

.back-home{
  text-decoration: underline;
}

.paths h2{
  margin-bottom: 30px;
  text-align: center;
}

.price {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  font-family: 'Poppins', sans-serif;
  margin-top: auto;
  padding-top: var(--space-3);
}

.currency {
  font-size: 1.5rem;
  font-weight: 500;
  transform: translateY(-6px); /* per rialzarla leggermente */
  opacity: 0.8;
}

.amount {
  font-size: 2rem;
  font-weight: 700;
}

.paths-prices .card{
  border-color: #55c874;
  box-shadow: 4px 3px 20px 0px rgba(255, 255, 255, 0.08);
}

.paths li{
  color: var(--muted);
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr; 
  }
}

.logo_title{
  width:250px;
  margin: auto;
  margin-top: 40px;
  margin-bottom: 40px;
}

.title_site{
  font-family: 'Lato', Roboto,sans-serif;
  text-align: center;
  font-size: 480%;
  margin-bottom: 0;
}

.parallax-section {
  position: relative;
  height: 200vh;      /* più alto per permettere lo scroll */
  overflow: hidden;
}

/* SFONDO */
.parallax-img {
  position: fixed;    /* chiave per effetto end-credits */
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  z-index: 1;
}

/* TESTO */
.content {
  position: relative;
  z-index: 2;         /* sopra l’immagine */
  color: white;
  padding-top: 100vh; /* parte dal basso */
  text-align: center;
  font-size: 2rem;
}

.hero-bg {
  min-height: 160vh;
  background-image: url("assets/viandante.jpg");
  background-size: cover;
  background-position: 20% center;
  background-repeat: no-repeat;
}

@media (max-width: 768px) {
  .hero-bg {
    background-position: center center;
    min-height: 100vh;
    background-position-y: 0px;
    background-size: 900%;
  }
}

.hl{
  background-color: black;
  padding:0.2em 0.2em;
}

.hl-big{
  background-color: black;
  padding:0.1em 0.2em;
}

.hl-white{
  background-color: white;
  padding:0.1em 0.2em;
}

.hl-title{
  background-color: black;
  padding:0em 0.2em;
}

.RSD h2{
 font-size: 40px;
}

.paths .card__title{
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform: translate(-50%,20%);
  font-size: 40px;
  text-align: center;
}

.p_text .hl{
  font-size: large;
}

.imgrow{
  float: left;
  width: 50%;
  height: 80%;
}

.imgrow img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0.5vw;
}

.table {
  height: 34vh;
}

.singleimg{
  width: 50%;
  height: 80%;
  margin:auto;
}

.singleimg img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

p a {
  text-decoration: underline;
}

.mobile-nav a{

}

.aimref .title_center{
  font-size: 50px;
  color: black;
}

.start-section{
  position: relative;
  overflow: hidden;
}

.start-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 25%; /* altezza sfumatura */
  background: linear-gradient(to top, #000 0%, rgba(0,0,0,0) 35%);
  pointer-events: none; /* lascia cliccare elementi sotto */
  z-index: 10; /* sopra il livello 1 della nebbia ma sotto eventuali elementi interattivi */
}

.manifestao::before {
  content: "";
  position: absolute;
  bottom: -655px;
  left: 0;
  width: 100%;
  height: 25%; /* altezza sfumatura */
  background: linear-gradient(to top, #000 0%, rgba(0,0,0,0) 100%);
  pointer-events: none; /* lascia cliccare elementi sotto */
  z-index: 10; /* sopra il livello 1 della nebbia ma sotto eventuali elementi interattivi */
}

.RSD{

}

.lotr-small1{
  font-family: jorvik;
  font-size: 25px;
  text-shadow: #000000 1px -1px 15px;
}

.lotr-small2{
  font-family: jorvik;
  font-size: 24px;
  text-shadow: #ffcc00 1px 2px 8px;
}

.lotr-medium1{
  font-family: jorvik;
  font-size: 24px;
  -webkit-background-clip: text;
  text-shadow: #ffcc00 1px -1px 2px;
}

.lotr-medium2{
  font-family: jorvik;
  font-size: px;
  -webkit-background-clip: text;
}

.lotr-big1{
  font-family: jorvik;
  font-size: larger;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: #ffcc00 1px -1px 2px;
}

.lotr-big2{
  font-family: jorvik;
  text-shadow: #000 1px -1px 44px;
}

.aimref .lotr-big2{
  color: white;
  text-shadow: #ffcc00 1px 1px 21px;
}

.container .lotr-big1{
  color: white;
  text-shadow: #ffcc00 1px 1px 21px;
  font-size: 48px;
  -webkit-text-fill-color: white;
}

.fogcontainer .lotr-big2{
  color: white;
  text-shadow: #ffcc00 1px 1px 21px;
}

.lotr-title{
  font-family: jorvik;
  font-size: larger;
  text-shadow: #dbbc3f 1px -1px 5px;
  color: white;
}

@font-face {
  font-family: morrisroman;
  src: url(assets/morris-roman/MorrisRoman-Black.ttf);
}

@font-face {
  font-family: jorvik;
  src: url(assets/jorvik-informal/jorvik.TTF);
}

@font-face {
  font-family: knightsquest;
  src: url(assets/knights-quest/KnightsQuest.ttf);
}

@font-face {
  font-family: rot;
  src: url(assets/rot/Rot/Rot-ProtoRoman102R.otf);
}

.small-p{
  font-size: larger;
  text-align: left;
  font-weight: 700;
}