/*
Theme Name: CCL Theme
Theme URI: https://example.org/
Description: WordPress port of the CCL - Chamber of Commerce & Law website (same look and feel as the original PHP site). Works together with the "CCL Core" plugin.
Version: 1.1.0
Author: CCL
Text Domain: ccl-theme
Requires at least: 5.8
Requires PHP: 7.4
*/
/* All visual styling lives in assets/styloso.css and assets/illdy/css/*.css (loaded in functions.php). */
.ccl-notice{max-width:900px;margin:20px auto;padding:14px 18px;border-radius:4px;font-size:16px}
.ccl-notice.ok{background:#e6f4ea;border:1px solid #2e7d32;color:#1b5e20}
.ccl-notice.err{background:#fdecea;border:1px solid #c62828;color:#b71c1c}
.ccl-hp{position:absolute;left:-9999px;height:0;overflow:hidden}
.ccl-pagination{text-align:center;margin:30px 0}
.ccl-pagination a,.ccl-pagination span{display:inline-block;padding:6px 12px;margin:0 2px}
/* The old markup left a <p> unclosed above the "Informazioni" block; give it room so the text isn't clipped. */
.page-template-template-contact .article-content,.page-template-template-isee-upload .article-content{padding-bottom:70px}

/* Logged-in admin bar: WordPress pushes the page down 32px but the legacy header is fixed at top:0 */
body.admin-bar #head { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar #head { top: 46px; } }

/* "Annulla" button: same look as the Upload / submit button */
a.ccl-cancel{display:inline-block!important;box-sizing:border-box;height:36px!important;line-height:36px!important;padding:0 40px!important;margin:0 0 0 12px!important;border:0!important;border-radius:3px!important;background:#1b5d95!important;color:#fff!important;font-family:lato,sans-serif!important;font-size:13.3333px!important;font-weight:700!important;letter-spacing:normal!important;text-transform:none!important;text-decoration:none!important;cursor:pointer;vertical-align:top}
a.ccl-cancel:hover{background:#333!important;color:#fff!important;text-decoration:none!important}

/* News: image on the left, text on the right; archive notes */
.ccl-news-body{display:flex;align-items:flex-start;gap:30px;margin:10px 0 20px}
.ccl-news-img{flex:0 0 280px;margin:0;width:280px}
.ccl-news-img.tall{flex-basis:260px;width:260px}
.ccl-news-img.square{flex-basis:300px;width:300px}
.ccl-news-img.wide{flex-basis:340px;width:340px}
.ccl-news-img img{display:block;width:100%;height:auto;border-radius:3px;box-shadow:0 1px 6px rgba(0,0,0,.18)}
.ccl-news-text{flex:1 1 auto;min-width:0}
.ccl-news-text p,.ccl-news-text li{line-height:1.6;padding-left:0;margin-left:0}
.ccl-news-text p{margin:0 0 12px}
.ccl-news-text ul{margin:0 0 12px 18px}
.ccl-news-text h3{margin:16px 0 8px;padding:0}
.ccl-news-text>*:first-child{margin-top:0}
.ccl-archive-note{background:#f5f1e8;border-left:4px solid #1b5d95;padding:10px 14px;margin:0 0 18px;font-size:14px;line-height:1.5}
.ccl-archive-note a{font-weight:700}
#ul_risultati li.ccl-year{list-style:none;border:0;background:none;padding:0;margin:26px 0 6px}
#ul_risultati li.ccl-year h2.ccl-year-title{font-size:20px;color:#1b5d95;border-bottom:2px solid #1b5d95;padding-bottom:4px;margin:0}
@media (max-width:700px){.ccl-news-body{display:block}.ccl-news-img,.ccl-news-img.tall,.ccl-news-img.square,.ccl-news-img.wide{width:100%;max-width:340px;margin:0 0 16px}}
.article-content .ccl-news-img{padding:0!important;margin:6px 0 0!important;float:none!important}
.article-content .ccl-news-img img{width:100%!important;max-width:100%!important;height:auto!important;margin:0!important}
.article-content .ccl-news-body{padding:0 30px 0 50px;box-sizing:border-box}
.article-content .ccl-news-text p,.article-content .ccl-news-text h3,.article-content .ccl-news-text ul{margin-left:0!important;padding-left:0!important;padding-right:0!important;width:auto!important}
.article-content .ccl-news-text ul{margin-left:18px!important}
.article-content .ccl-news-text ul{list-style:disc outside!important;margin-left:22px!important}
.article-content .ccl-news-text li{list-style:disc outside!important;padding-left:0!important;margin-left:0!important}
.ccl-brief{background:#eef4fa;border-left:4px solid #1b5d95;padding:10px 16px;margin:0 0 18px;font-size:15px}
.ccl-brief strong{display:block;color:#1b5d95;text-transform:uppercase;font-size:12px;letter-spacing:.06em;margin-bottom:4px}
.ccl-brief ul{margin:0 0 0 18px!important}
.ccl-brief li{margin:2px 0!important}
.ccl-update{background:#f5f1e8;border-radius:3px;padding:10px 14px!important;font-size:14px;margin-top:16px!important}
.ccl-news-text .box-adv{margin-top:20px}
.article-content .ccl-news-text ul,.article-content .ccl-brief ul{list-style:none!important;padding-left:0!important;margin-left:0!important}
.article-content .ccl-news-text li,.article-content .ccl-brief li{position:relative;padding-left:20px!important;list-style:none!important}
.article-content .ccl-news-text li:before,.article-content .ccl-brief li:before{content:"\2022";position:absolute;left:4px;color:#1b5d95;font-weight:bold}
/* Help box ("Hai bisogno di aiuto"): logo always fully visible, vertically centred */
.box-adv{background-size:var(--ccl-help-logo,110px) auto!important;background-position:16px center!important;min-height:calc(var(--ccl-help-logo,110px) + 24px);padding-left:calc(var(--ccl-help-logo,110px) + 32px)!important;padding-top:22px!important;padding-bottom:22px!important;box-sizing:border-box;display:block}
.ccl-news-text .box-adv{margin-left:0!important;margin-right:0!important}
@media (max-width:700px){.box-adv{--ccl-help-logo:56px}}
#stage #article .article-content .box-adv p{text-align:left!important}
@media (max-width:700px){.box-adv,.ccl-news-text .box-adv{margin:16px 0!important;padding-left:76px!important;background-position:10px center!important}}
.box-adv p:last-child:not(:first-child){display:none}
#stage #article .article-content .box-adv p{margin:0!important}
/* Language switcher with flags */
.menu-secondary .ccl-lang{display:inline-flex!important;align-items:center;gap:4px;margin-right:12px;vertical-align:middle}
.ccl-lang a{display:inline-flex!important;align-items:center;gap:5px;padding:3px 7px!important;border-radius:14px;text-decoration:none!important;color:#fff!important;font-size:13px;font-weight:600;line-height:1;opacity:.8;border:1px solid transparent;transition:opacity .15s,background .15s}
.ccl-lang a svg{display:block;width:22px;height:15px;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.25)}
.ccl-lang a:hover{opacity:1;background:rgba(255,255,255,.12)}
.ccl-lang a.current{opacity:1;background:rgba(255,255,255,.18);border-color:rgba(252,214,113,.8)}
.ccl-lang a span{font-family:Montserrat,"Hind Siliguri",sans-serif!important}
.ccl-lang-mobile{display:flex!important;flex-wrap:wrap;gap:6px;padding:12px 16px!important}
.ccl-lang-mobile{justify-content:center}
.ccl-lang-mobile a{color:#1b5d95!important;font-size:15px;padding:6px 12px!important;background:#fff;border:1px solid #d9d2c3!important;opacity:1!important}
.ccl-lang-mobile a.current{background:#1b5d95!important;color:#fff!important;border-color:#1b5d95!important}
.ccl-lang-mobile a svg{width:26px;height:18px}
/* Bangla typography */
html[lang^="bn"] body,html[lang^="bn"] p,html[lang^="bn"] li,html[lang^="bn"] a,html[lang^="bn"] td,html[lang^="bn"] th,html[lang^="bn"] input,html[lang^="bn"] textarea,html[lang^="bn"] select,html[lang^="bn"] label,html[lang^="bn"] button,html[lang^="bn"] h1,html[lang^="bn"] h2,html[lang^="bn"] h3,html[lang^="bn"] h4,html[lang^="bn"] h5,html[lang^="bn"] h6,html[lang^="bn"] .title-section,html[lang^="bn"] .title-section span{font-family:"Hind Siliguri","Noto Sans Bengali",Montserrat,sans-serif!important}
html[lang^="bn"] p,html[lang^="bn"] li{line-height:1.75}
html[lang^="bn"] .fa{font-family:FontAwesome!important}
