/* =============================================
   GILET ARANCIONI - style.css
   Tema: arancione #ff8c00, bianco, grigio scuro
   ============================================= */

/* RESET & BASE */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: Arial, sans-serif; line-height:1.6; color:#333; background:#fff; }
img { max-width:100%; height:auto; }

/* CONTAINER */
.container { max-width:1200px; margin:0 auto; padding:0 20px; }

/* =============================================
   HEADER
   ============================================= */
.site-header {
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    align-items:center;
    padding:12px 20px;
    background:#fff;
    border-bottom:3px solid #ff8c00;
    box-shadow:0 2px 6px rgba(0,0,0,0.08);
}
.site-header .logo img { max-height:65px; width:auto; }
.site-header .claims { text-align:center; flex:1; padding:0 20px; }
.site-header .claims .claim1 { font-size:1.3em; font-weight:bold; color:#b26200; display:block; }
.site-header .claims .claim2 { font-size:0.9em; color:#666; }
.site-header .social { display:flex; gap:12px; align-items:center; }
.site-header .social a {
    display:inline-flex; align-items:center; justify-content:center;
    width:36px; height:36px; border-radius:50%;
    background:#ff8c00; color:#1a1a1a; font-size:16px;
    text-decoration:none; transition:background 0.2s, transform 0.2s;
}
.site-header .social a:hover { background:#e67e00; transform:scale(1.1); }
.site-header .social a.btn-collegamenti {
    width:auto; height:auto; border-radius:5px;
    background:#fff; color:#1a1a1a; border:2px solid #ff8c00;
    padding:8px 14px; font-size:12px; font-weight:bold;
    text-transform:uppercase; letter-spacing:0.3px; white-space:nowrap;
}
.site-header .social a.btn-collegamenti:hover { background:#ff8c00; color:#1a1a1a; transform:none; }

/* =============================================
   MENU PRINCIPALE
   ============================================= */
.main-menu {
    position:sticky; top:0; z-index:100;
    background:#1a1a1a;
    border-bottom:3px solid #ff8c00;
    box-shadow:0 2px 6px rgba(0,0,0,0.2);
}
.main-menu .container {
    display:flex; flex-wrap:wrap; justify-content:center;
}
.main-menu .container a {
    display:block; padding:14px 10px;
    text-decoration:none; color:#fff;
    font-weight:bold; font-size:13px;
    letter-spacing:0.5px; text-transform:uppercase;
    transition:background 0.2s, color 0.2s;
    border-bottom:3px solid transparent;
    margin-bottom:-3px;
}
.main-menu .container a:hover,
.main-menu .container a.active {
    background:#ff8c00;
    color:#1a1a1a;
    border-bottom-color:#ff8c00;
}
.menu-toggle { display: none; background: none; border: none; font-size: 28px; cursor: pointer; }
.menu-links { display: flex; flex-wrap: wrap; }
@media (max-width: 768px) {
  .menu-toggle { display: block; color: #fff; }
  .menu-links { display: none; flex-direction: column; width: 100%; }
  .main-menu .container.open .menu-links { display: flex; }
  .main-menu .container { flex-wrap: wrap; }
}
.page-layout { display: flex; flex-wrap: wrap; gap: 30px; margin: 30px auto; }
.main-content { flex: 3; min-width: 250px; }
.sidebar { flex: 1; min-width: 200px; }
@media (min-width: 769px) {
  .sidebar { order: 2; }
  .main-content { order: 1; }
}
/* =============================================
   TIPOGRAFIA
   ============================================= */
h1 {
    color:#b26200;
    border-bottom:3px solid #ff8c00;
    padding-bottom:10px;
    margin:30px 0 20px;
}
h2 {
    color:#1a1a1a;
    margin:25px 0 15px;
    border-left:4px solid #ff8c00;
    padding-left:14px;
}
h3 { color:#333; margin:20px 0 10px; }
p  { margin:0 0 15px; }
ul { margin:15px 0 15px 30px; }
li { margin:5px 0; }
a  { color:#b26200; }
a:hover { color:#8a4c00; }

blockquote {
    background:#fff8f0;
    border-left:4px solid #ff8c00;
    margin:20px 0;
    padding:12px 20px;
    font-style:italic;
    border-radius:0 6px 6px 0;
}
hr { border:none; border-top:2px solid #ff8c00; margin:30px 0; }
pre, code {
    background:#f4f4f4; border:1px solid #ddd;
    border-radius:4px; font-family:monospace;
    padding:2px 6px; font-size:0.92em;
}
pre { padding:15px; overflow-x:auto; }
pre code { border:none; background:none; padding:0; }

/* =============================================
   BOTTONI
   ============================================= */
.btn, a.btn, button.btn {
    display:inline-block;
    padding:9px 20px;
    background:#fff; color:#1a1a1a;
    text-decoration:none; border:3px solid #ff8c00;
    border-radius:5px; font-weight:bold;
    font-size:14px; cursor:pointer;
    transition:background 0.2s, color 0.2s, transform 0.1s;
}
.btn:hover, a.btn:hover, button.btn:hover {
    background:#ff8c00; color:#1a1a1a; transform:translateY(-1px);
}
.btn-outline {
    background:transparent;
    border:2px solid #ff8c00;
    color:#1a1a1a;
}
.btn-outline:hover { background:#ff8c00; color:#1a1a1a; }

/* =============================================
   LAYOUT FLESSIBILE (COLONNE WIKI)
   ============================================= */
.media-flex-wrapper {display:flex;flex-wrap:wrap;width:100%;}
.mms-col {flex-grow:1;box-sizing:border-box;}
@media (max-width:768px) {.mms-col {flex-basis:100% !important;flex-grow:1;}}

/* =============================================
   HOME - HERO
   ============================================= */
.hero {
    position:relative; width:100%;
    background:#222; overflow:hidden; text-align:center;
    line-height:0;
}
.hero img { display:block; width:100%; height:auto; }
.hero-content { position:relative; z-index:2; color:#fff; padding:30px 20px; }
.hero-content h1 { color:#fff; border-color:#ff8c00; text-shadow:0 2px 6px rgba(0,0,0,0.5); }
.hero-content p  { font-size:1.2em; text-shadow:0 1px 4px rgba(0,0,0,0.5); }

/* SOCIAL BAR */
.social-bar {
    display:flex; justify-content:center; gap:18px;
    padding:18px 20px; background:#f9f9f9;
    border-bottom:1px solid #eee;
}
.social-bar a {
    display:inline-flex; align-items:center; justify-content:center;
    width:42px; height:42px; border-radius:50%;
    background:#ff8c00; color:#1a1a1a; font-size:18px;
    text-decoration:none; transition:background 0.2s, transform 0.2s;
}
.social-bar a:hover { background:#e67e00; transform:scale(1.12); }

/* NEWSLETTER BOX */
.newsletter-box {
    background:#f4f4f4;
    padding:30px 20px;
    text-align:center;
    border-radius:8px;
}
.newsletter-box h2 { border-left:none; margin:0 0 5px; }
.newsletter-box p  { color:#555; margin:5px 0; }
.newsletter-box input[type="text"],
.newsletter-box input[type="email"] {
    padding:10px; margin:5px; width:45%;
    max-width:280px; border:1px solid #ccc; border-radius:4px;
    font-size:14px;
}
.newsletter-box .btn { margin-top:8px; }
.newsletter-box .privacy { font-size:12px; color:#666; margin:5px 0; }

/* CONTATORE FIRME */
.counter-box {width:100%; background:#fff; border:3px solid #ff8c00; border-radius:8px; padding:30px 20px; text-align:center;}
.counter-box .count-number {
    font-size:2.4em; font-weight:bold;
    color:#b26200; display:block; margin:10px 0;
}
.counter-box .progress-bar {
    background:#eee; border-radius:20px;
    height:14px; margin:12px 0; overflow:hidden;
}
.counter-box .progress-fill {
    height:100%; background:#ff8c00;
    border-radius:20px; transition:width 0.5s;
}

/* =============================================
   CARDS (NEWS, SEZIONI)
   ============================================= */
.card {
    background:#fff; border:1px solid #e0e0e0;
    border-radius:8px; padding:20px;
    transition:transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform:translateY(-4px); box-shadow:0 6px 20px rgba(0,0,0,0.1); }
.card img { border-radius:5px; margin-bottom:12px; width:100%; height:160px; object-fit:cover; }
.card h2, .card h3 { border-left:none; }
.card .card-date { font-size:12px; color:#999; margin:6px 0; }
.news-card { transition:transform 0.2s, box-shadow 0.2s; }
.news-card:hover { transform:translateY(-5px); box-shadow:0 5px 20px rgba(0,0,0,0.1); }

/* =============================================
   SIDEBAR (PAGES)
   ============================================= */
.sidebar {
    background:#fafafa; padding:20px;
    border-radius:8px; border-left:3px solid #ff8c00;
}
.sidebar h3 {
    margin-top:0; padding-bottom:10px;
    border-bottom:2px solid #ff8c00;
    color:#b26200;
}
.sidebar ul { margin:0; padding:0; }
.sidebar li { list-style:none; margin:8px 0; }
.sidebar a {
    text-decoration:none; color:#333;
    display:block; padding:6px 10px;
    border-radius:4px; transition:background 0.15s, color 0.15s;
}
.sidebar a:hover { background:#fff3e0; color:#8a4c00; }
.sidebar a.active { font-weight:bold; color:#8a4c00; background:#fff3e0; }

/* =============================================
   GALLERY
   ============================================= */
.gallery-thumb {
    width:80px; height:60px; object-fit:cover;
    cursor:pointer; border:2px solid transparent;
    border-radius:4px; transition:opacity 0.2s, transform 0.2s, border-color 0.2s;
}
.gallery-thumb:hover { opacity:0.85; transform:scale(1.06); }
.gallery-thumb.active { border-color:#ff8c00; }
#prev-btn, #next-btn {
    padding:10px 22px; background:#ff8c00; color:#1a1a1a;
    border:none; border-radius:5px; cursor:pointer;
    font-weight:bold; transition:background 0.2s;
}
#prev-btn:hover, #next-btn:hover { background:#e67e00; }

/* =============================================
   VIDEO / WEBTV
   ============================================= */
.video-container { position:relative; padding-bottom:56.25%; height:0; margin:20px 0; }
.video-container iframe { position:absolute; top:0; left:0; width:100%; height:100%; border-radius:6px; }

/* =============================================
   PAGINAZIONE
   ============================================= */
.pagination { text-align:center; margin-top:40px; }
.pagination a {
    display:inline-block; padding:8px 13px;
    margin:0 4px; border:1px solid #ddd;
    text-decoration:none; color:#333;
    border-radius:4px; transition:background 0.15s;
}
.pagination a:hover { background:#fff3e0; border-color:#ff8c00; color:#b26200; }
.pagination a.active { background:#ff8c00; color:#1a1a1a; border-color:#ff8c00; }

/* =============================================
   FLOAT / FIX BLOCKS
   ============================================= */
.float-block, .fix-block {
    background:#fff; padding:15px;
    border-radius:8px; box-shadow:0 2px 10px rgba(0,0,0,0.1);
    border-top:3px solid #ff8c00;
}

/* =============================================
   FOOTER
   ============================================= */
footer, .site-footer {
    background:#1a1a1a; color:#ccc;
    padding:35px 20px; margin-top:50px;
    text-align:center;
}
footer p, .site-footer p { margin:6px 0; font-size:14px; }
footer a, .site-footer a { color:#ff8c00; text-decoration:none; font-weight:700; }
footer a:hover, .site-footer a:hover { color:#ffa533; text-decoration:underline; }
.footer-divider { border-color:#444; margin:15px auto; max-width:200px; }

/* =============================================
   UTILITY
   ============================================= */
.text-center { text-align:center; }
.text-orange { color:#b26200; }
.bg-orange { background:#ff8c00; color:#1a1a1a; }
.bg-light { background:#f9f9f9; }
.mt-20 { margin-top:20px; }
.mb-20 { margin-bottom:20px; }
.p-20  { padding:20px; }
.rounded { border-radius:8px; }
.shadow { box-shadow:0 2px 10px rgba(0,0,0,0.1); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width:768px) {
    .site-header { flex-direction:column; gap:12px; text-align:center; }
    .site-header .social { justify-content:center; }
    .main-menu .container { flex-direction:column; align-items:stretch; }
    .main-menu .container a { text-align:center; padding:10px; border-bottom:1px solid #333; }
    .main-menu .container a:last-child { border-bottom:none; }
    h1 { font-size:1.5em; }
    h2 { font-size:1.2em; }
    .counter-box .count-number { font-size:1.8em; }
}
@media (max-width:480px) {
    .newsletter-box input[type="text"],
    .newsletter-box input[type="email"] { max-width:100%; }
}
