/* ===== ELBAF.CSS - Tema La Ciurma (ricostruito per il blog PHP) ===== */

@font-face {
  font-family: 'FuturaWF';
  src: url('fonts/FuturaWF.woff') format('woff'),
       url('fonts/FuturaWF.ttf') format('truetype');
}
@font-face {
  font-family: 'KabelWF';
  src: url('fonts/KabelWF.woff') format('woff'),
       url('fonts/KabelWF.ttf') format('truetype');
}

body, html{
	width: 100%;
	min-height: 100%;
	margin: 0px;
	padding: 0px;
	overflow-x: hidden;
	background-color: #6b5a3f;
}
body{
	background-image: url('images/body-bg.jpg');
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-position: center center;
	background-size: cover;
	text-align: center;
	background-color: #6b5a3f;
	min-height: 100%;
	min-width: 100%;
}
html, body{ display: flex; justify-content: center; }

#container{ width: 1150px; max-width: 100%; margin: 0 auto; left: 0; right: 0; }

#header{
	background-image: url('images/header-bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 975px;
    max-width: 100%;
    height: 675px;
    margin: 175px auto 0 auto;
}

#main{ width: 100%; max-width: 1100px; min-height: 800px; height: auto; margin: -85px auto 0 auto; box-sizing: border-box; }

#topcontent{
    width: 850px;
    max-width: 95%;
    height: 120px;
    margin: 0 auto;
    background: linear-gradient(0deg, rgb(131 187 242) 25%, rgb(164 183 202) 100%);
    border: 2px solid #4e7453;
    border-bottom: 0;
    outline: 1px solid #000;
    box-shadow: 0 0 0 1px #150d15 inset;
    position: relative;
    z-index: 0;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    background-color: #ab713b;
}

#rc{
    background-image: url('images/rc-bg.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: 290px;
    height: 110px;
    margin-left: 30px;
    margin-top: 5px;
    float: left;
}

#notadl{
    width: 90%;
    height: auto;
    padding: 5px;
    background: linear-gradient(0deg, rgb(46 106 208) 35%, rgb(23 66 135) 100%);
    margin: 0 auto;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    font-weight: bold;
    font-size: 15px;
    color: #ffffff;
    text-shadow: #000 1px 1px 2px;
    box-sizing: border-box;
    border-bottom: 2px #4e6174 solid;
    border-right: 2px #4e6174 solid;
    border-left: 2px #4e6174 solid;
}

#pulsanti{ margin-top: 10px; line-height: 15em; text-decoration: none; font-size: 12px; font-weight: bold; }
#pulsanti a, #pulsanti a:visited, #pulsanti a:focus, #pulsanti a:active{ text-decoration: none; color: blue; }

#forum, #mc, #telegram, #fb, #donazioni{
    background-position: center;
    width: 110px;
    height: 75px;
    float: right;
    color: #d4ffdd;
    font-family: 'FuturaWF';
    background-size: 75%;
    background-repeat: no-repeat;
    text-align: center;
    text-indent: 0;
}
#forum{ background-image: url('images/forum-icon.png'); }
#mc{ background-image: url('images/mc-icon.png'); margin-left: -20px; }
#telegram{ background-image: url('images/telegram-icon.png'); }
#fb{ background-image: url('images/fb-icon.png'); margin-left: -20px; }
#donazioni{ background-image: url('images/donazioni-icon.png'); margin-left: -20px; }
#forum:hover, #mc:hover, #telegram:hover, #fb:hover, #donazioni:hover{ text-decoration: none; color: #f0ff7f; }

#contentbg{
    width: 885px;
    max-width: 95%;
    min-height: 800px;
    margin: -2px auto 0 auto;
    background-color: #555555;
    border-left: 5px solid #768a98;
    border-right: 5px solid #768a98;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 1px #000000;
    background: rgb(131 187 242 / 55%);
    padding-bottom: 30px;
    overflow: hidden;
    box-sizing: border-box;
}

#footer{
    width: 850px;
    max-width: 95%;
    height: 40px;
    margin: 0 auto;
    text-align: center;
    line-height: 2.5em;
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
    text-shadow: #000 1px 1px 2px;
    background: linear-gradient(0deg, rgb(46 106 208) 35%, rgb(23 66 135) 100%);
    font-family: verdana;
}

/* ===== NEWS / POST ===== */
h3.titnews {
    font-family: "FuturaWF", Arial, Helvetica, sans-serif;
    padding: 0;
    margin-top: 10px;
    margin-right: 190px;
    font-size: 24px;
    text-align: center;
}
h2.titnews, h3.titnews, h4.titnews, h5.titnews { color: #1f180e; text-transform: capitalize; }

.news{
	width: 800px;
    max-width: 92%;
    margin: 0 auto;
    background-color: #94c2ea;
    border-top: 2px;
    border-right: 4px;
    border-left: 2px;
    border-bottom: 4px;
    border-style: solid;
    border-color: #434343;
    position: inherit;
    z-index: 999;
    border-bottom-left-radius: 30px;
    border-top-right-radius: 30px;
    margin-bottom: -30px;
    overflow: hidden;
}
.news .tag {
    border-radius: 6px;
    width: 90px;
    height: 110px;
    display: block;
    margin: 0 0 4px 0;
    object-fit: cover;
    object-position: top center;
}
.author-box{
    background: linear-gradient(0deg, rgb(131 187 242) 25%, rgb(164 183 202) 100%);
    border-top: 3px solid #4e6174;
    border-bottom: 1px solid #4e6174;
    border-left: 3px solid #4e6174;
    border-right: 1px solid #4e6174;
    padding: 10px;
    border-bottom-left-radius: 30px;
    border-top-right-radius: 30px;
    float: left;
    position: relative;
    margin: 35px 35px 0 30px;
}
.author-name{
    color: #000000;
    font-family: 'KabelWF';
    text-transform: capitalize;
    font-weight: bolder;
    font-size: 25px;
    text-align: center;
}
.news .body{
    font-size: 13px;
    text-align: justify;
    font-family: verdana;
    margin-right: 15px;
    margin-left: 37px;
    color: #1f180e;
    padding-bottom: 10px;
}
.news .body img, .news .body iframe, .news .body video{ max-width: 100%; height: auto; border-radius: 6px; }
.news .body iframe{ width: 640px; max-width: 100%; aspect-ratio: 16/9; height: auto; }
.news .body a{ color: #2255aa; }

.postmeta{
    font-family: "FuturaWF", Arial, Helvetica, sans-serif;
    font-size: 11px;
    float: left;
    margin-left: 22px;
    margin-top: 30px;
    color: #1f180e;
}
.comments {
	font-family: "FuturaWF", Arial, Helvetica, sans-serif;
	text-align: right;
	font-size: 16px;
	font-weight: bold;
	line-height: 1em;
    margin-right:15px;
	margin-top: 7px;
    float: right;
}
.comments em { font-family: "KabelWF", Arial, Helvetica, sans-serif; font-size: 32px; font-style: italic; }
.comments a { text-decoration: none; color: #31281b; }
.comments a:hover { color: #4e2a0d; }

hr.titnews{ background-color:#947844; height:1px; border-style:solid; border-color:#694e34; border-bottom:1px; }
div#contentbg div.sepa{ width: 750px; max-width:90%; height: 15px; margin: 30px auto 3px auto; }
a { color: #2255aa; }

/* ===== RATING (stelle) ===== */
.rating-wrap{ clear: both; text-align: center; padding: 12px 0 4px; }
.stars{ display: inline-flex; flex-direction: row-reverse; justify-content: center; gap: 2px; }
.stars input{ display: none; }
.stars label{ font-size: 30px; color: #6b5a3f; cursor: pointer; transition: color .15s; text-shadow: 0 1px 1px rgba(0,0,0,.35); }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label{ color: #ffc107; }
.stars.readonly label{ cursor: default; }
.rating-info{ font-family: "FuturaWF", Arial, sans-serif; font-size: 13px; color: #1f180e; margin-top: 4px; font-weight: bold; }

/* ===== PAGINAZIONE ===== */
.pagination{ clear: both; text-align: center; padding: 30px 0 10px; }
.pagination a, .pagination span{
    display: inline-block;
    min-width: 34px;
    padding: 6px 10px;
    margin: 2px;
    border: 2px solid #4e6174;
    border-radius: 8px;
    background: linear-gradient(0deg, rgb(131 187 242) 25%, rgb(164 183 202) 100%);
    color: #1f180e;
    text-decoration: none;
    font-family: "FuturaWF", Arial, sans-serif;
    font-weight: bold;
    font-size: 14px;
}
.pagination a:hover{ background: #ffde8a; }
.pagination .current{ background: linear-gradient(0deg, rgb(46 106 208) 35%, rgb(23 66 135) 100%); color:#fff; }
.pagination .disabled{ opacity: .45; }

/* ===== COMMENTI (single post) ===== */
.comments-section{ clear:both; width: 800px; max-width:92%; margin: 20px auto 0; text-align: left; }
.comment-card{
    background: #94c2ea;
    border: 2px solid #434343;
    border-bottom-left-radius: 18px;
    border-top-right-radius: 18px;
    padding: 10px 14px;
    margin-bottom: 12px;
}
.comment-card .c-author{ font-family:'KabelWF',Arial,sans-serif; font-weight:bold; font-size:18px; color:#1f180e; }
.comment-card .c-date{ font-size: 11px; color:#3a2f1e; margin-left: 8px; }
.comment-card .c-body{ font-family: verdana; font-size: 13px; color:#1f180e; margin-top:6px; white-space: pre-wrap; }
.comment-form{ background: rgba(255,255,255,.6); border:2px solid #4e6174; border-radius:12px; padding:14px; margin-top:16px; }
.comment-form input, .comment-form textarea{
    width: 100%; box-sizing: border-box; margin: 4px 0 10px; padding: 8px;
    border: 1px solid #4e6174; border-radius: 6px; font-family: verdana; font-size: 13px;
}
.btn{
    display: inline-block; cursor: pointer; border: 2px solid #4e6174; border-radius: 8px;
    background: linear-gradient(0deg, rgb(46 106 208) 35%, rgb(23 66 135) 100%);
    color: #fff; font-family: "FuturaWF", Arial, sans-serif; font-weight: bold;
    padding: 8px 18px; font-size: 14px; text-decoration: none; text-shadow:#000 1px 1px 2px;
}
.btn:hover{ filter: brightness(1.12); }
.btn.secondary{ background: linear-gradient(0deg, rgb(131 187 242) 25%, rgb(164 183 202) 100%); color:#1f180e; text-shadow:none; }
.btn.danger{ background: linear-gradient(0deg,#c0392b 35%,#7d1e13 100%); }
.btn.small{ padding: 4px 10px; font-size: 12px; }
.flash{ width:800px; max-width:92%; margin: 14px auto; padding:10px 14px; border-radius:8px; font-family:verdana; font-weight:bold; box-sizing:border-box; }
.flash.ok{ background:#c8f7c5; border:2px solid #2e7d32; color:#1b4d1e; }
.flash.err{ background:#f7c5c5; border:2px solid #b71c1c; color:#7d1313; }
.back-link{ display:block; text-align:center; margin: 16px auto; }
.moderation-note{ font-family:"FuturaWF",Arial,sans-serif; font-size:12px; color:#7d1313; text-align:center; }

/* ===== AREA ADMIN ===== */
.admin-body{ background:#e9edf2; display:block; text-align:left; font-family: Verdana, Arial, sans-serif; }
.admin-wrap{ max-width: 1000px; margin: 0 auto; padding: 16px; }
.admin-topbar{
    background: linear-gradient(0deg, rgb(23 66 135) 35%, rgb(46 106 208) 100%);
    color:#fff; padding: 12px 20px; display:flex; justify-content:space-between; align-items:center;
    font-family:"FuturaWF",Arial,sans-serif;
}
.admin-topbar a{ color:#fff; text-decoration:none; margin-left:14px; font-weight:bold; }
.admin-topbar a:hover{ color:#ffde8a; }
.admin-card{ background:#fff; border:1px solid #cdd6e0; border-radius:10px; padding:20px; margin-bottom:20px; box-shadow:0 2px 6px rgba(0,0,0,.06); }
.admin-card h2{ margin-top:0; font-family:"FuturaWF",Arial,sans-serif; color:#173a6b; }
.admin-table{ width:100%; border-collapse: collapse; }
.admin-table th, .admin-table td{ padding: 8px 10px; border-bottom:1px solid #e2e8f0; text-align:left; font-size:14px; vertical-align: top; }
.admin-table th{ background:#f1f5fa; color:#173a6b; }
.admin-table tr:hover td{ background:#f8fafc; }
.field{ margin-bottom:14px; }
.field label{ display:block; font-weight:bold; margin-bottom:5px; color:#173a6b; font-size:14px; }
.field input[type=text], .field input[type=password], .field select, .field textarea{
    width:100%; box-sizing:border-box; padding:9px; border:1px solid #b7c4d4; border-radius:6px; font-size:14px; font-family: inherit;
}
.login-box{ max-width: 380px; margin: 8vh auto; }
.badge{ display:inline-block; padding:2px 9px; border-radius:20px; font-size:12px; font-weight:bold; }
.badge.published{ background:#c8f7c5; color:#1b4d1e; }
.badge.archived{ background:#ffe0b2; color:#7a4a00; }
.badge.pending{ background:#fff3c4; color:#7a5a00; }
.badge.approved{ background:#c8f7c5; color:#1b4d1e; }
.actions a, .actions button{ margin-right:6px; }
.muted{ color:#748095; font-size:13px; }
.stat-grid{ display:grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap:14px; }
.stat{ background:#f1f5fa; border-radius:10px; padding:16px; text-align:center; }
.stat .num{ font-size:28px; font-weight:bold; color:#173a6b; font-family:"FuturaWF",Arial,sans-serif; }
.stat .lbl{ font-size:12px; color:#748095; text-transform:uppercase; letter-spacing:.5px; }
