/* ==========================================================================
    HTML5 Boilerplate styles - h5bp.com (generated via initializr.com)
   ========================================================================== 

   Circle Template 
   
   http://www.templatemo.com/preview/templatemo_410_circle 

*/

/* =======================
    INIZIO Stile per NEWS
   =======================
*/

#ticker dt { font:normal 18px Georgia; padding:0 10px 5px 10px; background-color:trasparent; color:#FFFFFF; background-image: url(../img_site/trama.jpg); padding-top:100px; border:0px solid #ffffff; border-bottom:none; border-right:none; position:relative; }
#ticker dd { margin-left:0; font:normal 14px Georgia; padding:0 10px 10px 10px; border-bottom:1px solid #aaaaaa; background-color:trasparent; background-image: url(../img_site/trama.jpg); border-left:0px solid #ffffff; position:relative; }
#ticker dd.last { border-bottom:1px solid #ffffff; }
#ticker div { margin-top:0px; }

/* =======================
     FINE Stile per NEWS
   =======================
*/

html,
button,
input,
select,
textarea {
    color: #000000;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

img {
    vertical-align: middle;
}


fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.blue {
	color: #06F;
}

.green {
	color: #0A0;
}

.menu-wrapper ul.menu, ul.tabs {
    padding: 0;
    margin: 0;
    list-style: none;
}

.spacing {
	margin-bottom: 40px;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */
.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

.hidden {
    display: none !important;
    visibility: hidden;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
    Forms
   ========================================================================== */
form input[type="text"],
form input[type="email"],
form input[type="number"],
form input[type="password"] {
    background: #fff;
    border: 1px solid #fff;
    padding: 7px 10px;
    width: 100%;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="number"]:focus,
form input[type="password"]:focus {
    outline: none !important;
}

form .button {
    background: #fff;
    border: 1px solid #fff;
    padding: 7px 20px;
    text-transform: uppercase;
}

form .button:focus, form .button:active {
    outline: none !important;
}

form .button.yellow {
    background: #e7af2a;
    color: #fff;
    border: 1px solid #c89316;
}

/* ==========================================================================
   Print styles
   ========================================================================== */
@media print {
    * {
        background: transparent !important;
        color: #000 !important;
    /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
  a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

  /*
   * Don't show links for images, or javascript/internal links
   */
  .ir a:after,
  a[href^="javascript:"]:after,
  a[href^="#"]:after {
    content: "";
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
}

thead {
    display: table-header-group;
    /* h5bp.com/t */;
}

tr,
  img {
    page-break-inside: avoid;
}

img {
    max-width: 100% !important;
}

@page {
    margin: 0.5cm;
}

p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
}

h2,
  h3 {
    page-break-after: avoid;
}
}
/* ==========================================================================
    Structure & Defaults
   ========================================================================== */
html, body {
    font-size: 100%;
    width: 100%;
    height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    vertical-align: baseline;
}

body {
    font: 14px/19px "Open sans", Arial, sans-serif;
    font-weight: 600;
    color: #660000;
    background-color: #4c4c4c;
}

a {
    color: #d8aa46;
    text-decoration: none !important;
    -webkit-transition: all 200ms ease-in;
    -moz-transition: all 200ms ease-in;
    -ms-transition: all 200ms ease-in;
    -o-transition: all 200ms ease-in;
    transition: all 200ms ease-in;
}

a:hover {
    color: #d8aa46;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Open Sans", Arial, sans-serif;
    color: #333333;
    margin: 0 0 30px 0;
    text-transform: uppercase;
    font-weight: 700;
}

h1 {
    font-size: 2.6em;
}

h2 {
    font-size: 2.2em;
}

h3 {
    font-size: 18px;
        text-align: center;
        color: #007bff;
}

h4 {
    font-size: 1.4em;
}

h5 {
    font-size: 1em;
}

h6 {
    font-size: .8em;
}

p {
	font-size: 16px;
	line-height: 1.8;
	text-align: justify;
	text-justify: inter-word;
	line-height: 2;
}

.important {
	color: #007bff;
	font-weight: bold;
}

.call-to-action {
	background: #007bff;
	color: #ffffff;
	padding: 10px;
	text-align: center;
	margin-top: 20px;
}

.call-to-action a {
	color: #ffffff;
	text-decoration: none;
	font-weight: bold;
}

*, *:before, *:after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.bg-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.container-fluid {
    padding: 60px 80px;
}

.content {
    display: none;
}

/* ==========================================================================
    Header Site Styling
   ========================================================================== */
.sidebar-menu {
    position: relative;
    z-index: 9;
    padding-right: 80px;
}

.logo-wrapper {
    //background-color: #e5e8ed;
    background-color: #FFFFFF;
    text-align: center;
    padding: 40px;
}

.logo-wrapper h1 {
    font-size: 36px;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0;
}

.logo-wrapper h1 span {
    margin-top: 10px;
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #CE0052;
}

.menu-wrapper {
    display: block;
}

.menu-wrapper ul.menu {
/*    display: none; */
    background-color: #FFFFFF;
    text-align: center;
}

.menu-wrapper ul.menu li {
    border-top: 1px solid #c7cdd8;
}

.menu-wrapper ul.menu li a {
    text-transform: uppercase;
    display: block;
    padding: 7px 20px;
    color: #333333;
    font-weight: 600;
    font-size: 13px;
}

.menu-wrapper a.toggle-menu {
    display: block;
    //background-color: #d8aa46;
    background-color: #CE0052;
    color: white;
    text-align: center;
}

.menu-wrapper a.toggle-menu i {
    padding: 10px 20px;
    font-size: 24px;
}

#prevslide {
    position: absolute;
    right: 40px;
    top: 0;
}

#nextslide {
    position: absolute;
    top: 41px;
    right: 40px;
}

#prevslide, #nextslide {
    width: 40px;
    height: 40px;
    //background-color: #d8aa46;
    background-color: #CE0052;
    color: white;
    opacity: 1 !important;
    cursor: pointer;
    text-align: center;
    line-height: 40px;
}

#prevslide i, #nextslide i {
    font-size: 24px;
}

/* ==========================================================================
    About Styling
   ========================================================================== */
.toggle-content {
    /*margin-top: 10px;
    display: block;
    padding: 30px;
    background-color: #FFFFFF;
    overflow: hidden;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    background-clip: padding-box;*/
	background: #fff;
	color: #043161;
	padding: 20px;
	margin: 20px 0;
	box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: justify;
  /* stops bg color from leaking outside the border: */;
}

.icon-item {
    margin-bottom: 30px;
    padding: 10px 5px;
    background-color: white;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    background-clip: padding-box;
  /* stops bg color from leaking outside the border: */
    display: block;
}

.icon-item i {
    font-size: 30px;
}

.icon-item.active {
    //background-color: #d8aa46;
    background-color: #CE0052;
    color: white;
}

ul.tabs {
    text-align: center;
    display: block;
}

.member-item {
    margin-top: 30px;
    overflow: hidden;
    padding: 20px;
    background-color: white;
    text-align: center;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    background-clip: padding-box;
  /* stops bg color from leaking outside the border: */;
}

.member-item .thumb {
    width: 100%;
    border: 2px solid #CE0052;
    overflow: hidden;
}

.member-item .thumb img {
    width: 100%;
}

.member-item h4 {
    margin: 20px 0 10px 0;
}

.member-item span {
    text-transform: uppercase;
    color: #d8aa46;
    font-weight: 600;
}

/* ==========================================================================
    Services Styling
   ========================================================================== */
.services .icon-item {
    padding: 70px 40px;
}

/* ==========================================================================
    Gallery Styling
   ========================================================================== */
.g-item {
    margin-bottom: 30px;
    padding: 6px;
    position: relative;
    background-color: white;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
  /* Chrome, Safari, Opera */
    backface-visibility: hidden;
}

.g-item img {
    overflow: hidden;
    width: 100%;
}

.g-item .overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #d8aa46;
    text-align: center;
    top: 0;
    left: 0;
    opacity: 0;
    filter: alpha(opacity=0);
}

.g-item:hover .overlay {
    opacity: 1;
    filter: alpha(opacity=100);
}

.g-item span {
    color: white;
    font-weight: 300;
    font-size: 60px;
    height: 60px;
    width: 100%;
    top: 50%;
    text-align: center;
    line-height: 60px;
    margin-top: -30px;
    position: absolute;
    left: 0;
}

/* ==========================================================================
    Contact Styling
   ========================================================================== */
.google-map {
    height: 250px;
    padding: 6px;
    background-color: white;
    margin-bottom: 40px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    background-clip: padding-box;
  /* stops bg color from leaking outside the border: */;
}

.google-map iframe {
    width: 100%;
    outline: 0;
    border: 0;
    margin: 0;
    padding: 0;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    background-clip: padding-box;
  /* stops bg color from leaking outside the border: */;
}

form input, form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 30px;
    outline: 0;
    border: 0;
    border: 2px solid #e5e8ed;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    background-clip: padding-box;
  /* stops bg color from leaking outside the border: */;
}

.contact-form textarea {
    min-height: 160px;
}

.contact-form input.button {
    width: auto;
    background-color: #CE0052;
    border-color: #d8aa46;
    color: white;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 600;
    padding: 15px 35px;
}

.footer {
    overflow: hidden;
    position: fixed;
    bottom: 10px;
    color: white;
    font-size: 13px;
}

.footer a {
    color: white;
}

/*------------------------------------------------------
	RESPONSIVE STYLES 
--------------------------------------------------------*/
@media (max-width: 1024px) {
    .sidebar-menu {
        padding-right: 40px;
    }

    #prevslide {
        right: 0;
    }

    #nextslide {
        right: 0;
    }

    .footer {
        position: relative;
    }
}

@media (max-width: 991px) {
    .sidebar-menu {
        margin-bottom: 30px;
        padding-right: 40px;
    }

    .icon-item {
        position: relative;
        z-index: 99;
    }
}

@media (max-width: 767px) {
    .container-fluid {
        padding: 20px;
    }
}

/* Aggiunta per gestire l'orientamento orizzontale sui dispositivi mobili */
@media (max-height: 600px) and (orientation: landscape) {
    .sidebar-menu {
        /* Limita la larghezza del menu all'altezza del viewport,
           meno un po' di spazio per non occupare tutto lo schermo */
        width: 100vh; /* Potresti dover aggiustare questo valore */
        /* Opzionale: puoi aggiungere una regola per centrare il menu se necessario */
        margin-left: auto;
        margin-right: auto;
    }
}








/* ==========================================================================
   NEWS (card + media responsive + overlay zoom)
   ========================================================================== */
.news-card{
    background: #ffffff;
    padding: 18px 18px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin: 18px auto;
    max-width: 900px;
    overflow: hidden;
}

.news-embed{
    width: 100%;
    text-align: center;
    margin: 0 auto 14px auto;
}

.news-embed img{
    display: block;
    margin: 0 auto;      /* centra */
    max-width: 30%;      /* miniatura al caricamento */
    height: auto;
    border-radius: 12px;
    object-fit: contain;
    cursor: zoom-in;
}

/* (Consigliato) su mobile 30% è minuscolo: aumentiamo */
@media (max-width: 767px){
    .news-embed img{ max-width: 85%; }
}

/* === Overlay zoom (lightbox) === */
.news-img-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.78);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 18px;
}

.news-img-overlay.open{
    display: flex;
}

.news-img-overlay img{
    max-width: 95vw;   /* zoom “100%” su schermo, ma senza sfondare */
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    cursor: zoom-out;
}

.news-img-close{
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 34px;
    line-height: 34px;
    color: #fff;
    cursor: pointer;
    user-select: none;
    font-weight: 800;
}

.news-share{
  text-align: center;
  margin: 10px 0 18px 0;
}

.news-updated{
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  opacity: .75;
  margin: 0 0 6px 0;
}

.fb-share-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: #1877F2;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.fb-share-btn:hover{
  filter: brightness(0.95);
}
.fb-share-btn i{
  font-size: 18px;
}