@charset "utf-8";
/* Stile comune "road book" di compagniamotociclisti.com
   1) testata, menu, piede: classi c4-* (valgono ovunque si includa top.php / foot.php)
   2) pagine interne (pag.php): regole sotto html.c4, sovrascrivono style.css / styleint.css */

@font-face { font-family: Aniron; src: url(/aniron.ttf); font-display: swap; }
:root { --c4-asph: #1c1e22; --c4-asph2: #26292e; --c4-card: #2d3036; --c4-text: #f2f2ee; --c4-muted: #a8abb2; --c4-yel: #2c7bbd; --c4-giro: #f2c230; --c4-red: #d93a2b; --c4-paper: #fbfaf7; --c4-ink: #24262b; --c4-pad: clamp(16px, 4vw, 40px); }

/* ---------- testata ---------- */
.c4-bar { position: sticky; top: 0; z-index: 500; background: var(--c4-asph); border-bottom: 4px solid var(--c4-yel); border-image: linear-gradient(90deg, #c42414 50%, #2c7bbd 50%) 1; font-family: Barlow, system-ui, sans-serif; color: var(--c4-text); }
.c4-bar * { box-sizing: border-box; }
.c4-bar a { color: inherit; text-decoration: none; }
.c4-wrap { max-width: 1600px; box-sizing: border-box; margin: 0 auto; padding: 0 var(--c4-pad); }
.c4-bar .c4-wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.c4-logo img { width: 46px; height: 46px; display: block; }
.c4-name { font: 400 15px/1.2 Aniron, "Barlow Condensed", serif; letter-spacing: 0; color: var(--c4-text); white-space: nowrap; }
.c4-name span { color: #fff; }
.c4-nav { display: none; margin-left: auto; align-items: center; gap: 2px; height: 100%; }
.c4-dd { position: relative; height: 100%; display: flex; align-items: center; }
.c4-dd > button, .c4-nav > a.c4-lk { height: 100%; display: flex; align-items: center; gap: 6px; padding: 0 13px; background: none; border: 0; color: var(--c4-text); font: 700 16px "Barlow Condensed", sans-serif; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; border-bottom: 4px solid transparent; margin-bottom: -4px; }
.c4-dd > button::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); opacity: .7; }
.c4-dd:hover > button, .c4-dd.open > button, .c4-dd:focus-within > button, .c4-nav > a.c4-lk:hover { color: var(--c4-yel); border-bottom-color: var(--c4-yel); }
.c4-sub { position: absolute; top: 100%; left: 0; min-width: 250px; padding: 10px; margin-top: 4px; background: var(--c4-asph2); border-top: 4px solid var(--c4-yel); box-shadow: 0 24px 50px rgba(0,0,0,.5); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s; }
.c4-dd:hover .c4-sub, .c4-dd.open .c4-sub, .c4-dd:focus-within .c4-sub { opacity: 1; visibility: visible; transform: none; }
.c4-sub a { display: block; padding: 10px 12px; font-size: 16px; border-bottom: 1px dashed #3b3f46; }
.c4-sub a:last-child { border-bottom: 0; }
.c4-sub a:hover { background: rgba(44,123,189,.18); color: var(--c4-yel); }
.c4-nav a.c4-giro { color: var(--c4-giro); }
.c4-nav a.c4-giro:hover { color: var(--c4-giro); border-bottom-color: var(--c4-giro); }
.c4-btn { display: flex; align-items: center; gap: 7px; margin-left: 8px; padding: 9px 14px; font: 700 15px "Barlow Condensed", sans-serif; letter-spacing: .12em; text-transform: uppercase; border: 2px solid var(--c4-yel); }
.c4-btn.c4-shop { background: var(--c4-yel); color: #fff !important; }
.c4-btn.c4-shop:hover { background: #fff; border-color: #fff; }
.c4-btn.c4-join { border-color: var(--c4-text); }
.c4-btn.c4-join:hover { background: var(--c4-text); color: var(--c4-asph) !important; }
.c4-usr { display: flex; padding: 8px; margin-left: 4px; color: var(--c4-muted) !important; }
.c4-usr:hover { color: var(--c4-yel) !important; }
.c4-mbtn { margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 2px solid var(--c4-text); background: none; color: var(--c4-text); font: 700 15px "Barlow Condensed", sans-serif; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.c4-mbtn + .c4-mbtn { margin-left: 0; }
.c4-mbtn:hover, .c4-shopm { background: var(--c4-yel); border-color: var(--c4-yel); color: #fff !important; }
.c4-logo { flex: none; }
.c4-name { min-width: 0; overflow: hidden; }
@media (max-width: 600px) { .c4-bar .c4-wrap { gap: 8px; } .c4-name { font-size: 12px; white-space: normal; } .c4-mbtn { padding: 9px 10px; letter-spacing: .08em; } }
@media (max-width: 420px) { .c4-mbtn .t { display: none; } .c4-logo img { width: 40px; height: 40px; } }
@media (min-width: 1100px) { .c4-nav { display: flex; } .c4-mbtn { display: none; } }
@media (min-width: 1100px) and (max-width: 1299px) { .c4-name { display: none; } }

.c4-panel { position: fixed; inset: 0 0 0 auto; z-index: 600; width: min(420px, 100%); background: var(--c4-asph2); color: var(--c4-text); transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; padding: 24px var(--c4-pad) 40px; border-left: 4px solid var(--c4-yel); font-family: Barlow, system-ui, sans-serif; box-sizing: border-box; }
.c4-panel.on { transform: none; }
.c4-shade { position: fixed; inset: 0; z-index: 550; background: rgba(0,0,0,.5); opacity: 0; visibility: hidden; transition: .3s; }
.c4-shade.on { opacity: 1; visibility: visible; }
.c4-x { float: right; background: none; border: 0; color: var(--c4-text); font-size: 34px; cursor: pointer; line-height: 1; }
.c4-panel h4 { clear: both; margin: 22px 0 6px; font: 700 14px "Barlow Condensed", sans-serif; letter-spacing: .2em; color: var(--c4-yel); text-transform: uppercase; }
.c4-panel a { display: block; padding: 10px 0; border-bottom: 1px dashed #3b3f46; font-size: 18px; color: var(--c4-text); text-decoration: none; }
.c4-panel a:hover { color: var(--c4-yel); }

/* ---------- piede ---------- */
.c4-foot { clear: both; margin-top: 60px; background: #141518; color: var(--c4-muted); font: 15px/1.6 Barlow, system-ui, sans-serif; padding: 40px 0 110px; border-top: 4px solid var(--c4-yel); }
.c4-foot a { color: var(--c4-text); text-decoration: none; }
.c4-foot a:hover { color: var(--c4-yel); }
.c4-fcols { display: grid; grid-template-columns: 1.2fr 2fr 1fr; gap: 30px; align-items: start; }
.c4-fbrand { display: flex; gap: 14px; align-items: center; }
.c4-fbrand img { width: 70px; height: 70px; }
.c4-fbrand b { display: block; font: 400 16px/1.25 Aniron, serif; color: var(--c4-text); }
.c4-fbrand span { font-family: Aniron, serif; font-size: 12px; color: var(--c4-yel); }
.c4-foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.c4-social { text-align: right; }
.c4-social img { width: 30px; display: inline-block; vertical-align: middle; margin-left: 6px; }
.c4-copy { margin-top: 26px; padding-top: 16px; border-top: 1px solid #2a2c31; font-size: 13px; }
@media (max-width: 860px) { .c4-fcols { grid-template-columns: 1fr; } .c4-social { text-align: left; } }
@media (min-width: 761px) { .c4-foot { padding-bottom: 40px; } }
.c4-dock { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 450; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; transform: translateY(160%); transition: transform .3s; }
.c4-dock.on { transform: none; }
.c4-dock a { text-align: center; padding: 14px; font: 700 17px "Barlow Condensed", sans-serif; letter-spacing: .12em; text-transform: uppercase; background: var(--c4-giro); color: var(--c4-asph); text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.c4-dock a + a { background: var(--c4-yel); color: #fff; }
@media (min-width: 761px) { .c4-dock { display: none; } }

/* ---------- pagine interne ---------- */
html.c4 body { background: var(--c4-asph) repeating-linear-gradient(-45deg, #1c1e22 0 22px, #202227 22px 44px); color: var(--c4-ink); font: 17px/1.6 Barlow, system-ui, sans-serif; -webkit-text-size-adjust: 100%; }
/* testata della pagina: foto + titolo */
html.c4 #cont.contenitore, html.c4 #cont.vcontenitore { height: clamp(190px, 32vh, 340px) !important; transform: none !important; position: relative; background-size: cover !important; background-position: center 55% !important; clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%); }
html.c4 #cont::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,30,34,.15), rgba(28,30,34,.85)); }
html.c4 #cont .bandiera { display: none; }
html.c4 #titolo { box-sizing: border-box; position: absolute !important; z-index: 2; left: 0 !important; right: 0; width: auto !important; max-width: 1600px; margin: 0 auto !important; bottom: 18% !important; padding: 0 var(--c4-pad) !important; font: 800 clamp(34px, 6vw, 72px)/.95 "Barlow Condensed", Impact, sans-serif !important; font-style: normal !important; text-transform: uppercase; color: #fff !important; text-shadow: 0 4px 18px rgba(0,0,0,.6) !important; }
html.c4 #titolo::before { content: ""; display: block; width: 60px; height: 5px; background: var(--c4-yel); margin-bottom: 14px; }
/* corpo */
html.c4 #testo.testo, html.c4 #testo.vtesto { position: relative; left: auto !important; width: auto !important; max-width: 1600px; margin: -30px auto 0 !important; padding: clamp(20px, 4vw, 44px) !important; background: var(--c4-paper) !important; color: #3a3d44 !important; font-size: 17px !important; box-shadow: 0 30px 60px rgba(0,0,0,.35); border-top: 4px solid var(--c4-yel); display: flex; flex-wrap: wrap; gap: 0 40px; align-items: flex-start; box-sizing: border-box; }
html.c4 #testo > br[clear] { display: none; }
html.c4 #testo .main { float: none !important; flex: 1 1 560px; min-width: 0; width: auto !important; text-align: left !important; }
html.c4 #testo .lato { display: block !important; float: none !important; flex: 0 0 300px; width: 300px !important; margin: 0 !important; font-size: 15px; }
html.c4 #testo .latob { display: none !important; }
@media (max-width: 900px) { html.c4 #testo .lato { flex: 1 1 100%; width: auto !important; margin-top: 30px !important; padding-top: 20px; border-top: 4px solid var(--c4-ink); } }
html.c4 #testo h1, html.c4 #testo h2, html.c4 #testo h3 { font-family: "Barlow Condensed", Impact, sans-serif; text-transform: uppercase; color: var(--c4-ink); line-height: 1; }
html.c4 #testo a { color: #1f6aa8; }
html.c4 #testo a:hover { color: var(--c4-red); }
html.c4 #testo img { max-width: 100%; height: auto; }
html.c4 #testo iframe, html.c4 #testo video, html.c4 #testo table { max-width: 100% !important; }
html.c4 #testo hr { border: 0; border-top: 1px dashed #cfcbc2; margin: 16px 0; }
/* separatore rosso sotto l'introduzione */
html.c4 #testo .main > div[style*="#be2b2c"] { background: var(--c4-yel) !important; height: 5px !important; }
/* intestazioni di sezione colorate (Board / Incursori / Followers) */
html.c4 #testo .main div[style*="font-style:italic"][style*="color:white"] { font: 800 24px "Barlow Condensed", sans-serif !important; letter-spacing: .1em; font-style: normal !important; border-left: 8px solid var(--c4-yel); }
/* schede dei soci: 3 per riga, 2 su tablet, 1 su telefono */
html.c4 #testo .main div[style*="width:31%"] { width: calc(33.333% - 12px) !important; margin: 6px !important; height: 300px !important; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
@media (max-width: 800px) { html.c4 #testo .main div[style*="width:31%"] { width: calc(50% - 12px) !important; height: 260px !important; } }
@media (max-width: 480px) { html.c4 #testo .main div[style*="width:31%"] { width: calc(100% - 12px) !important; } }
@media (max-width: 640px) { html.c4 #testo .main img[align] { float: none !important; width: 100% !important; margin: 0 0 14px !important; } }
/* moduli (login, registrazione, contatti, annunci) */
html.c4 #testo input[type=text], html.c4 #testo input[type=password], html.c4 #testo input[type=email], html.c4 #testo input:not([type]), html.c4 #testo select, html.c4 #testo textarea { font: 16px Barlow, system-ui, sans-serif !important; padding: 10px 12px !important; border: 2px solid #d8d4cb !important; background: #fff !important; color: var(--c4-ink) !important; border-radius: 0; box-sizing: border-box; max-width: 100%; height: auto !important; }
html.c4 #testo input:focus, html.c4 #testo select:focus, html.c4 #testo textarea:focus { outline: none; border-color: var(--c4-yel) !important; }
html.c4 #testo input[type=submit], html.c4 #testo button { font: 700 17px "Barlow Condensed", sans-serif !important; letter-spacing: .12em; text-transform: uppercase; padding: 12px 22px !important; background: var(--c4-yel) !important; color: #fff !important; border: 0 !important; cursor: pointer; width: auto !important; height: auto !important; }
html.c4 #testo input[type=submit]:hover, html.c4 #testo button:hover { background: var(--c4-asph) !important; color: var(--c4-yel) !important; }
@media (max-width: 640px) { html.c4 #testo .labello { width: 100% !important; float: none !important; } html.c4 #testo input, html.c4 #testo select { width: 100% !important; } html.c4 #testo input[type=checkbox], html.c4 #testo input[type=radio] { width: auto !important; } }
/* pulsanti di condivisione */
html.c4 #share-buttons { clear: both; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 30px; padding-top: 16px; border-top: 1px dashed #cfcbc2; }
html.c4 #share-buttons > div { float: none !important; margin: 0 8px 0 0 !important; font: 700 15px "Barlow Condensed", sans-serif; letter-spacing: .12em; text-transform: uppercase; }
html.c4 #share-buttons img { width: 34px !important; }
/* barre laterali (menu della sezione, ultime incursioni, notizie) */
html.c4 .menulato a { display: block; padding: 9px 0; border-bottom: 1px dashed #cfcbc2; color: var(--c4-ink) !important; text-decoration: none; font-weight: 600; }
html.c4 .menulato a:hover { color: var(--c4-red) !important; }
html.c4 .menulato .sel, html.c4 .menulato .voce.sel { color: var(--c4-red); }

/* ---------- classifica incursori (home e classifica.php) ---------- */
.c4-rk { font-family: Barlow, system-ui, sans-serif; color: var(--c4-text); }
.c4-rk a { color: inherit !important; text-decoration: none !important; }
.c4-pod { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 14px; align-items: end; margin-bottom: 14px; }
.c4-p { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 16px 20px; background: var(--c4-asph2); border-top: 4px solid #2c7bbd; transition: transform .2s; }
.c4-p:hover { transform: translateY(-4px); }
.c4-p1 { order: 2; border-top-color: #c42414; padding-top: 36px; }
.c4-p2 { order: 1; }
.c4-p3 { order: 3; }
.c4-p .pos { position: absolute; top: 10px; left: 14px; font: 800 44px/1 "Barlow Condensed", sans-serif; color: rgba(255,255,255,.18); }
.c4-p1 .pos { color: #c42414; }
.c4-p .ft { width: 96px; height: 96px; border-radius: 50%; background: #111 center/cover; border: 4px solid #2c7bbd; margin-bottom: 12px; }
.c4-p1 .ft { width: 126px; height: 126px; border-color: #c42414; }
.c4-p b { font: 700 20px/1.1 "Barlow Condensed", sans-serif; text-transform: uppercase; margin-bottom: 8px; }
.c4-p .km { font: 800 clamp(26px, 3vw, 38px)/1 "Barlow Condensed", sans-serif; }
.c4-p .nn { color: var(--c4-muted); font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin-top: 4px; }
.c4-list { display: grid; gap: 4px; }
.c4-list a { display: grid; grid-template-columns: 44px 40px minmax(120px, 1.3fr) 2fr 110px 70px; gap: 12px; align-items: center; padding: 8px 14px; background: var(--c4-asph2); }
.c4-list a:nth-child(odd) { background: #2a2d33; }
.c4-list a:hover { background: #33373e; }
.c4-list .pos { font: 800 22px "Barlow Condensed", sans-serif; color: var(--c4-muted); text-align: center; }
.c4-list .ft { width: 40px; height: 40px; border-radius: 50%; background: #111 center/cover; }
.c4-list b { font: 700 17px "Barlow Condensed", sans-serif; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c4-list .bar { height: 8px; background: rgba(255,255,255,.08); }
.c4-list .bar i { display: block; height: 100%; background: linear-gradient(90deg, #2c7bbd, #c42414); }
.c4-list .km { font: 700 18px "Barlow Condensed", sans-serif; text-align: right; }
.c4-list .nn { color: var(--c4-muted); font-size: 14px; text-align: right; }
@media (max-width: 700px) {
	.c4-pod { grid-template-columns: 1fr; }
	.c4-p1, .c4-p2, .c4-p3 { order: 0; flex-direction: row; text-align: left; gap: 14px; padding: 14px 16px; }
	.c4-p .pos { position: static; font-size: 34px; color: var(--c4-muted); }
	.c4-p1 .pos { color: #c42414; }
	.c4-p .ft, .c4-p1 .ft { width: 60px; height: 60px; margin: 0; flex: none; }
	.c4-p b { margin: 0; flex: 1; }
	.c4-p .km { font-size: 24px; }
	.c4-p .nn { display: none; }
	.c4-list a { grid-template-columns: 30px 36px 1fr auto; gap: 10px; }
	.c4-list .bar, .c4-list .nn { display: none; }
}
.c4-rk-ord { display: flex; gap: 8px; margin: 0 0 18px; }
.c4-rk-ord a { padding: 8px 14px; border: 2px solid #2c7bbd; font: 700 15px "Barlow Condensed", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #2c7bbd !important; text-decoration: none !important; }
.c4-rk-ord a.on { background: #2c7bbd; color: #fff !important; }
