:root {
    --bg-color: #f5f5f7;
    --bg-alt: #ffffff;
    --text-color: #222222;
    --text-color-legacy: #FFE661;
    --muted-color: #666666;
    --accent-color: #1c7ed6;
    --accent-soft: #d0ebff;
    --border-color: #dddddd;
    --header-bg: #ffffffee;
    --footer-bg: #111111;
    --footer-text: #f1f3f5;
    --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.06);
}

html[data-theme="dark"] {
    --bg-color: #0f172a;
    --bg-alt: #848A97; /*#111827;*/
    --text-color: #e5e7eb;
    --text-color-legacy: #FFE661
    --muted-color: #9ca3af;
    --accent-color: #38bdf8;
    --accent-soft: #0f172a;
    --border-color: #FF0000; /*#1f2933;*/
    --header-bg: #020617ee;
    --footer-bg: #020617;
    --footer-text: #e5e7eb;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* link */
a.link_sito:link, a.link_sito:visited {
    color: navy;
    text-decoration: none;
}
a.link_sito:hover{
    color: red;
    text-decoration: underline;
}


/* Layout */
/*
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
}
*/
.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    text-decoration: none;
    color: #ffffff; /*var(--text-color);*/
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.logo_img{
    margin-left: 10px;
    display: block;
    max-width: 130px;
}

.logo-main {
    font-weight: 700;
    letter-spacing: 0.03em;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--muted-color);
}

.header_badge{
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.6fr);
}
    

.badge {
  text-align: center;
  border: 1px solid #065F46;
  color: #000;;
  background: #F3FEF7;
  border-radius: 999px;
  font-size: 10px;
  padding: 6px 10px;
}

.count-firme {
    font-size: 15px;
    margin-top: 0;
    /*max-width: 150px;*/
}

.accent{
    background-color: #F29237;
}

.accent:hover{
    background-color: #E20613;  
    font-style:  !important; 
}

.accent a{
    text-decoration: none;
}


.main-nav {
    /*margin-left: auto;*/
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    color: var(--muted-color);
    transition: background-color 0.2s, color 0.2s;
}

.main-nav li.active a,
.main-nav a:hover {
    background-color: var(--accent-soft);
    color: var(--accent-color);
}

.theme-toggle {
    margin-left: 0.5rem;
    margin-top: auto;
    margin-left: auto;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.3rem 0.6rem;
    background: var(--bg-alt);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.theme-icon {
    font-size: 1rem;
}

/* Main */

.site-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

.hero {
    padding: 3rem 0 2.5rem;
}

.hero-inner {
    max-width: 680px;
}

.hero h1 {
    font-size: 2.1rem;
    margin-bottom: 0.6rem;
}

.hero p {
    color: var(--muted-color);
    font-size: 1rem;
    margin-bottom: 1.3rem;
}

.grid.two {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.grid.two2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 0.5rem;
    margin-top: 0rem;
}


.grid.two h2 {
    margin-top: 0;
}

.highlight {
    margin-top: 2.5rem;
    padding: 1.5rem;
    border-radius: 1rem;
    background: var(--accent-soft);
    box-shadow: var(--shadow-soft);
}

.highlight h2 {
    margin-top: 0;
}

/* Buttons */

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-color);
    color: #ffffff;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-soft);
}

/* Pages */

.page-header {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.page-header h1 {
    margin-bottom: 0.4rem;
}

.page-header p {
    color: var(--muted-color);
}

.content {
    margin-bottom: 2.5rem;
}

.content h2 {
    margin-top: 1.6rem;
    margin-bottom: 0.4rem;
}

.content ul {
    padding-left: 1.1rem;
}

/* Map */

.map-figure {
    margin: 1.5rem 0;
}

.map-figure img {
    max-width: 100%;
    border-radius: 0.8rem;
    box-shadow: var(--shadow-soft);
}

.map-figure figcaption {
    font-size: 0.85rem;
    color: var(--muted-color);
    margin-top: 0.4rem;
}

/* Footer */

.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    margin-top: 2rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.3rem 1rem;
    font-size: 0.85rem;
}

/* Responsive */

@media (max-width: 710px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
  
    .mappa{
       width: 400px; 
       height: 300px;
    }
    
}
@media (max-width: 900px) {
    .grid.two2{
            grid-template-columns: 1fr;
    }
}

@media (min-width: 711px) {
    .mappa{
       width: 600px; 
       height: 450px;
    }
}

/* ================================
   HERO HEADER ===================== */

.hero-header {
    position: relative;
    width: 100%;
    height: 280px;
    background-image: url("/TrekkingPiccolomini/img/header-piccolomini.png"); /* QUI METTI IL RENDERING */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    z-index: 10;
}

.hero-logo {
    width: 130px;
    height: auto;
    margin-bottom: 0.5rem;
}

.hero-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0;
}

.hero-subtitle {
    font-size: 1rem;
    margin-top: 0.2rem;
    opacity: 0.9;
}

/* MENU SEPARATO DAL BANNER */
.site-header {
    position: sticky;
    top: 0;             
    z-index: 30;
    margin-bottom: 1rem;
    background: var(--header-bg);
    box-shadow: var(--shadow-soft);
}

/* ================================
   FORM FIRME ===================== */

.firma-form {
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.firma-form input[type="text"],
.firma-form input[type="email"],
.firma-form input[type="number"] {
    padding: 0.6rem;
    border-radius: 0.4rem;
    border: 1px solid var(--border-color);
    background: var(--bg-alt);
    color: var(--text-color);
}

.firma-form label {
    font-weight: 600;
    margin-bottom: -0.3rem;
}

.captcha-box {
    background: var(--bg-alt);
    padding: 0.8rem;
    border-radius: 0.6rem;
    border: 1px dashed var(--border-color);
    font-size: 0.9rem;
}

.privacy-box {
    background: var(--accent-soft);
    padding: 1rem;
    border-radius: 0.6rem;
    font-size: 0.9rem;
}

.privacy-box input[type="checkbox"] {
    margin-right: 0.4rem;
}

.informativa {
    margin-top: 0.7rem;
    font-size: 0.85rem;
    color: var(--muted-color);
}

.legacy{
    font-size: 10px;
    text-align: center;
    color: var(--text-color-legacy);
    position: relative;
    margin-bottom: auto;    
}


/* ==============================================
   SHARE BOX 2 ==================================== */


.share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.share-title {
  font-weight: 600;
  color: var(--text);
  margin-right: 4px;
}

.share-icon {
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: transform .15s ease;
}

.share-icon:hover {
  transform: scale(1.15);
}

.share-icon svg {
  width: 25px;
  height: 25px;
}



/* PETIZIONE =================
==============================*/

    .petizione-doc {
      max-width: 800px;
      margin: 40px auto;
      padding: 40px;
      background: #ffffff;
      border: 1px solid #ccc;
      border-radius: 8px;
      font-family: "Georgia", serif;
      line-height: 1.6;
      color: #222;
    }
    .petizione-doc h2 {
      text-align: center;
      font-size: 28px;
      font-weight: 700;
      margin-bottom: 25px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .petizione-doc p {
      margin-bottom: 18px;
      font-size: 18px;
    }
    .petizione-doc ol {
      margin-left: 20px;
      margin-bottom: 25px;
    }
    .petizione-doc ol li {
      margin-bottom: 12px;
      font-size: 18px;
    }


/* Pulsante share nativo solo su mobile */
@media (min-width: 900px) {
  .share-icon.mobile { 
    display: none; 
  }
}