/* MAPPE RIBELLI - Stylesheet Definitivo 
   Design: Editoriale, Pulito, con Box Unificati e Social Buttons
*/

/* --- RESET E LAYOUT BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.8;
    color: #333;
    background: #fafafa;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

article {
    padding: 40px;
}

header {
    background: #2c3e50;
    padding: 15px 30px;
    text-align: center;
}

header a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-family: sans-serif;
}

header a:hover {
    color: #e74c3c;
}

/* --- TIPOGRAFIA --- */
h1 {
    color: #2c3e50;
    font-size: 2.2em;
    margin-bottom: 25px;
    line-height: 1.3;
    border-bottom: 4px solid #e74c3c;
    padding-bottom: 15px;
}

h2 {
    color: #34495e;
    font-size: 1.6em;
    margin: 50px 0 20px 0;
    border-left: 5px solid #e74c3c;
    padding-left: 15px;
}

h3 {
    color: #555;
    font-size: 1.3em;
    margin: 30px 0 15px 0;
}

p {
    margin-bottom: 20px;
    text-align: justify;
}

strong {
    color: #2c3e50;
}

a {
    color: #e74c3c;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- IMMAGINI --- */
img {
    width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: block;
}

/* --- STILE UNIFICATO BOX (Info, Share, Author) --- */
.info-box, .share-section, .author-box {
    background: #ecf0f1;            /* Grigio chiaro coerente */
    border-left: 5px solid #e74c3c; /* Barra rossa distintiva */
    padding: 25px;
    margin: 40px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Tipografia interna ai box */
.info-box p, .author-info p, .share-title {
    margin: 8px 0;
    text-align: left;
    font-size: 0.95em;
    color: #444;
}

.info-box ul {
    margin: 10px 0 10px 20px;
    list-style-type: none;
}

.highlight-box {
    background: #fff9e6;
    border-left: 5px solid #f39c12;
    padding: 20px;
    margin: 25px 0;
    border-radius: 5px;
}

.warning-box {
    background: #ffe6e6;
    border-left: 5px solid #e74c3c;
    padding: 20px;
    margin: 25px 0;
    border-radius: 5px;
}

.author-info h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-family: sans-serif;
}

/* --- BOTTONI SOCIAL --- */
.share-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.btn-gpx {
    display: inline-block;
    background: #e74c3c;
    color: white !important;
    padding: 12px 25px;
    border-radius: 5px;
    font-family: sans-serif;
    font-weight: bold;
    text-decoration: none;
    margin: 15px 0;
    border: none !important;
}
.btn-gpx:hover {
    background: #c0392b; 
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    color: white !important;
    font-size: 14px;
    font-family: sans-serif;
    font-weight: bold;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.share-btn i {
    font-size: 1.2em;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    filter: brightness(1.1);
}

.btn-whatsapp { background: #25d366; }
.btn-facebook { background: #1877f2; }
.btn-instagram { background: #e4405f; }
.btn-link { background: #34495e; }

/* --- SPECIFICHE AUTHOR BOX --- */
.author-box {
    display: flex;
    align-items: flex-start;
}

.author-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 20px !important;
    margin-top: 0 !important;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
}

/* --- FOOTER --- */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 30px;
    margin-top: 50px;
}

footer a {
    color: #e74c3c;
}

hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 40px 0;
}

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
    article { padding: 20px; }
    h1 { font-size: 1.8em; }
    .author-box { flex-direction: column; text-align: center; }
    .author-img { margin: 0 auto 15px auto !important; }
    .author-info p { text-align: center; }
    .share-buttons { justify-content: center; }
}