/*
  Eticonomia — stile del sito sopra il template Xiomi (main.css).
  Qui stanno: i colori del marchio (verde scuro e beige), i font in locale
  e i blocchi che il template non ha (testi lunghi, carta dei principi,
  citazioni, video, libri, modulo di contatto).
  Ogni pagina imposta il proprio colore d'accento con --pagina sul <body>,
  ripreso dai colori delle otto pagine nel documento dei contenuti.
*/

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --body: #fbf8f2;
  --theme: #2f7d5b;
  --theme-chiaro: #8fd3b2;
  --header: #13261e;
  --text: #4c5852;
  --bg: #f3ecdf;
  --bg-2: #0d1d17;
  --beige: #dccaa6;
  --border: 1.5px solid rgba(19, 38, 30, 0.16);
  --border-2: 1.5px solid #2f7d5b;
  --border-3: 1.5px solid rgba(19, 38, 30, 0.1);
  --pagina: #dccaa6;
}

body { color: var(--text); }
h1, h2, h3, h4, h5, h6 { text-transform: none; }
img { height: auto; }
p { font-size: 17px; line-height: 1.75; }
.theme-btn,
.header-main .main-menu ul li a { text-transform: none; }
.theme-btn { color: var(--white); }
.theme-btn.chiaro { background: var(--beige); color: var(--header); }
.theme-btn.chiaro:hover { color: var(--header); }
.theme-btn.chiaro::before { background-color: var(--white); }
.theme-btn.contorno {
  background: transparent;
  color: var(--header);
  border: 1.5px solid var(--header);
}
.theme-btn.contorno:hover { color: var(--white); }
.section-bg-2 .theme-btn.contorno,
.apertura .theme-btn.contorno { color: var(--beige); border-color: var(--beige); }
.section-bg-2 .theme-btn.contorno::before,
.apertura .theme-btn.contorno::before { background-color: var(--beige); }
.section-bg-2 .theme-btn.contorno:hover,
.apertura .theme-btn.contorno:hover { color: var(--header); }
.marquee-container { background-color: var(--bg-2); }
.marquee-text h3 { color: var(--beige); font-weight: 600; }
.marquee-text .punto { width: 10px; height: 10px; border-radius: 50%; background: var(--theme-chiaro); }

/* ── Testata ── */
.header-1 { position: relative; background: var(--body); }
.header-1 .header-logo img,
.offcanvas__logo img { height: 34px; width: auto; }
.header-1 .logo { margin-inline-end: 24px; }
.header-main .main-menu ul li { margin-inline-end: 26px; }
.header-main .main-menu ul li:last-child { margin-inline-end: 0; }
.header-main .main-menu ul li a { font-size: 15px; }
.header-main .main-menu ul li.active > a,
.header-main .main-menu ul li a:hover { color: var(--theme); }
@media (max-width: 1499px) {
  .header-main .main-menu ul li { margin-inline-end: 18px; }
  .header-main .main-menu ul li a { font-size: 14px; }
}
@media (max-width: 1365px) {
  .header-1 .logo { margin-inline-end: 16px; }
  .header-main .main-menu ul li { margin-inline-end: 12px; }
  .header-main .main-menu ul li a { font-size: 13px; }
  .header-main .main-menu ul li.accedi > a { padding: 7px 14px; }
}
/* «Accedi»: porta all'area membri su app.eticonomia.com, in evidenza come pulsante. */
.header-main .main-menu ul li.accedi > a { padding: 8px 18px; border-radius: 30px; background: var(--theme); color: #fff; }
.header-main .main-menu ul li.accedi > a:hover { background: var(--header); color: #fff; }
.sidebar__toggle { font-size: 22px; color: var(--header); cursor: pointer; }
.offcanvas__contact h4 { font-size: 18px; }

/* ── Apertura di pagina (sotto la testata) ── */
.apertura {
  background: radial-gradient(ellipse at 85% 0%, rgba(47, 125, 91, 0.35), transparent 55%), var(--bg-2);
  color: var(--beige);
  padding: 110px 0 90px;
  position: relative;
  overflow: hidden;
}
.apertura .numero {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: "Manrope", sans-serif; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; font-size: 14px; color: var(--pagina);
  margin-bottom: 22px;
}
.apertura .numero::before { content: ""; width: 34px; height: 3px; border-radius: 3px; background: var(--pagina); }
.apertura h1 { color: var(--white); font-size: 62px; line-height: 1.1; max-width: 900px; }
.apertura .sottotitolo { color: rgba(220, 202, 166, 0.88); font-size: 19px; max-width: 760px; margin-top: 24px; }
.apertura .briciole { display: flex; gap: 10px; margin-top: 34px; font-size: 14px; }
.apertura .briciole a { color: rgba(220, 202, 166, 0.7); }
.apertura .briciole a:hover { color: var(--white); }
.apertura .briciole span { color: var(--white); }
@media (max-width: 991px) { .apertura { padding: 80px 0 64px; } .apertura h1 { font-size: 44px; } }
@media (max-width: 575px) { .apertura h1 { font-size: 34px; } .apertura .sottotitolo { font-size: 17px; } }

/* ── Apertura della Home ── */
.apertura-home { padding: 90px 0 0; }
.apertura-home .scritta { width: min(520px, 100%); height: auto; margin-bottom: 30px; }
.apertura-home h1 { font-size: 54px; }
.apertura-home .sfera { width: 100%; max-width: 520px; margin-inline: auto; display: block; }
.apertura-home .bottoni { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
@media (max-width: 991px) { .apertura-home .sfera { max-width: 360px; margin-top: 10px; } .apertura-home h1 { font-size: 40px; } }

/* ── Titoli di sezione ── */
.section-title .etichetta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--theme); margin-bottom: 16px;
}
.section-title .etichetta::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.section-bg-2 .section-title .etichetta { color: var(--theme-chiaro); }
.section-title h2 { font-size: 44px; line-height: 1.18; }
.section-bg-2 .section-title h2,
.section-bg-2 h3, .section-bg-2 h4 { color: var(--white); }
.section-bg-2 p { color: rgba(220, 202, 166, 0.85); }
@media (max-width: 767px) { .section-title h2 { font-size: 32px; } }

/* ── Testi ── */
.testo { max-width: 780px; }
.testo p + p { margin-top: 16px; }
.testo .domanda { font-weight: 700; color: var(--header); }
.section-bg-2 .testo .domanda { color: var(--white); }
.collegamento {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px;
  font-family: "Manrope", sans-serif; font-weight: 700; color: var(--theme);
  border-bottom: 2px solid currentColor; padding-bottom: 4px;
}
.collegamento i { transition: transform .3s; }
.collegamento:hover i { transform: translateX(4px); }
.section-bg-2 .collegamento { color: var(--theme-chiaro); }
.blocco + .blocco { margin-top: 90px; }
@media (max-width: 767px) { .blocco + .blocco { margin-top: 60px; } }

/* ── Schede (responsabilità, principi, temi, concetti) ── */
.schede { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 40px; }
.scheda {
  background: var(--white); border: var(--border-3); border-radius: 18px;
  padding: 30px 28px; height: 100%;
}
.scheda .num { font-family: "Manrope", sans-serif; font-weight: 800; color: var(--theme); font-size: 15px; letter-spacing: .1em; }
.scheda h4 { font-size: 22px; margin: 10px 0 10px; }
.scheda p { font-size: 16px; line-height: 1.65; margin: 0; }
.section-bg .scheda { background: var(--body); }
.section-bg-2 .scheda { background: rgba(255, 255, 255, 0.04); border: 1.5px solid rgba(220, 202, 166, 0.16); }
.section-bg-2 .scheda .num { color: var(--theme-chiaro); }
.section-bg-2 .scheda h4 { color: var(--white); }

/* La carta dei principi usa le righe del template (services-item) su fondo scuro */
.service-wrapper .services-item .head { width: 280px; }
.service-wrapper .services-item .head span { color: var(--theme-chiaro); }
.service-wrapper .services-item .head h4 { color: var(--white); margin: 0; }
.service-wrapper .services-item .text { flex: 1; }
.service-wrapper .services-item .text p { margin: 0; color: rgba(220, 202, 166, 0.85); }
.service-wrapper .services-item { border-color: rgba(220, 202, 166, 0.16); }

/* ── Citazioni (Costituzione, Dichiarazione) ── */
.citazione {
  border-left: 4px solid var(--theme); background: var(--white);
  border-radius: 0 18px 18px 0; padding: 30px 34px; margin-top: 26px;
}
.citazione h4 { font-size: 18px; margin-bottom: 14px; }
.citazione blockquote { font-style: italic; color: var(--header); margin: 0; font-size: 18px; line-height: 1.7; }
.citazione blockquote p + p { margin-top: 12px; }

/* ── Immagini ── */
.ritratto { border-radius: 24px; width: 100%; max-width: 460px; background: var(--bg-2); display: block; }
.mappa { width: 100%; border-radius: 18px; display: block; margin-top: 36px; }
.libri { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-top: 40px; }
.libro { display: flex; gap: 24px; align-items: flex-start; }
.libro img { width: 150px; height: auto; flex-shrink: 0; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .25)); }
.libro h4 { font-size: 22px; margin-bottom: 6px; }
.libro .sottotitolo-libro { font-style: italic; color: var(--header); margin-bottom: 10px; }
.libro .editore { font-size: 15px; color: var(--theme); font-weight: 600; margin-top: 10px; }
@media (max-width: 575px) { .libro { flex-direction: column; } .libro img { width: 140px; } }

/* ── Video: anteprima in locale, il video si carica solo al clic ── */
.video-griglia { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 36px; }
.video-scheda { display: block; color: inherit; }
.video-scheda .anteprima { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-2); }
.video-scheda .anteprima img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.video-scheda:hover .anteprima img { transform: scale(1.04); }
.video-scheda .anteprima::after {
  content: "\f04b"; font-family: "Font Awesome 6 Pro"; font-weight: 900;
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--theme); font-size: 20px;
}
.video-scheda h4 { font-size: 18px; margin-top: 14px; line-height: 1.4; }
.section-bg-2 .video-scheda h4 { color: var(--white); }
.video-scheda .fonte { font-size: 14px; color: var(--theme); font-weight: 600; }
.section-bg-2 .video-scheda .fonte { color: var(--theme-chiaro); }
.anteprima.facebook { display: grid; place-items: center; background: linear-gradient(135deg, #12382a, #0d1d17); }
.anteprima.facebook img { width: auto; height: 78%; object-fit: contain; }
.nota-video { font-size: 14px; margin-top: 18px; opacity: .8; }

/* ── Avviso «in preparazione» ── */
.in-preparazione {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
  padding: 10px 18px; border-radius: 100px; font-size: 14px; font-weight: 600;
  background: rgba(47, 125, 91, 0.1); color: var(--theme);
}
.section-bg-2 .in-preparazione { background: rgba(143, 211, 178, 0.12); color: var(--theme-chiaro); }

/* ── Indice delle sezioni (incontri) ── */
.indice { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.indice a { padding: 10px 18px; border-radius: 100px; border: 1.5px solid rgba(220, 202, 166, 0.35); color: var(--beige); font-size: 14px; font-weight: 600; }
.indice a:hover { background: var(--beige); color: var(--header); }

/* ── Invito finale ── */
.invito { text-align: center; }
.invito .testo { margin-inline: auto; }
.invito .bottoni { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 34px; }

/* ── Modulo di contatto ── */
.modulo { background: var(--white); border-radius: 24px; padding: 44px; border: var(--border-3); }
.modulo label { display: block; font-family: "Manrope", sans-serif; font-weight: 700; color: var(--header); margin-bottom: 8px; font-size: 15px; }
.modulo label small { font-weight: 500; color: var(--text); }
.modulo input[type=text], .modulo input[type=email], .modulo input[type=tel], .modulo textarea, .modulo select {
  width: 100%; border: var(--border); border-radius: 12px; padding: 15px 18px;
  background: var(--body); color: var(--header); font-size: 16px; outline: none;
}
.modulo input:focus, .modulo textarea:focus, .modulo select:focus { border-color: var(--theme); }
.modulo textarea { min-height: 170px; resize: vertical; }
.modulo .campo { margin-bottom: 22px; }
.modulo .consenso { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; margin-bottom: 26px; }
.modulo .consenso input { margin-top: 6px; width: 18px; height: 18px; accent-color: var(--theme); flex-shrink: 0; }
.modulo .trappola { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.modulo .esito { margin-top: 20px; font-weight: 600; }
.modulo .esito.ok { color: var(--theme); }
.modulo .esito.errore { color: #b3261e; }
@media (max-width: 575px) { .modulo { padding: 28px 20px; } }
.argomenti .scheda h4 { font-size: 19px; }

/* ── Pagina informativa ── */
.informativa h2 { font-size: 28px; margin: 44px 0 14px; }
.informativa ul { list-style: disc; padding-left: 22px; }
.informativa li { margin-bottom: 8px; line-height: 1.7; }

/* ── Piede ── */
.piede { background: var(--bg-2); color: rgba(220, 202, 166, .8); padding: 80px 0 30px; }
.piede .scritta { width: 260px; height: auto; margin-bottom: 18px; }
.piede h4 { color: var(--white); font-size: 17px; margin-bottom: 18px; }
.piede p, .piede li { font-size: 15px; line-height: 1.8; color: rgba(220, 202, 166, .8); }
.piede a { color: rgba(220, 202, 166, .8); }
.piede a:hover { color: var(--white); }
.piede ul li { margin-bottom: 6px; }
.piede .fondo {
  border-top: 1px solid rgba(220, 202, 166, .14); margin-top: 50px; padding-top: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: 14px;
}
.piede .fondo ul { display: flex; gap: 20px; flex-wrap: wrap; }
.back-to-top { background-color: var(--theme); color: var(--white); }
@media (max-width: 767px) { .section-title { margin-bottom: 24px; } .section-title.mb-0 { margin-bottom: 0 !important; } }

/* ── App Eticonomia: QR e collegamenti agli store (piede di ogni pagina e sezione #app) ── */
.app-scarica { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
.app-scarica a {
  display: flex; align-items: center; gap: 14px; padding: 12px 20px 12px 12px; min-width: 235px;
  border: var(--border); border-radius: 14px; color: var(--header); font-weight: 600;
}
.app-scarica a:hover { border-color: var(--theme); color: var(--theme); }
.app-scarica img { width: 96px; height: 96px; background: #fff; border-radius: 8px; image-rendering: pixelated; }
.app-scarica small { display: block; font-size: 13px; font-weight: 400; opacity: .75; }
.app-nota { font-size: 14px; margin-top: 12px; }
.piede-app { margin-top: 44px; }
.piede-app .app-scarica a { color: var(--white); border-color: rgba(220, 202, 166, .3); }
.piede-app .app-scarica a:hover { border-color: var(--beige); color: var(--beige); }
.piede .piede-app .app-nota { font-size: 14px; }
