
/* ================================================================
   Cms_Eventi_style.css
   Lista eventi + Pagina dettaglio evento
   ================================================================ */


/* ----------------------------------------------------------------
   Lista eventi
   ---------------------------------------------------------------- */

   .sectionNews {
      position: relative;
      width: 100%;
      background: #0D1222;
   }

   .newslistarea {
      position: relative;
      width: 1250px;
      margin: 0 auto;
   }

   .nwlarea {
      position: relative;
      padding-bottom: 40px;
      padding-top: 0;
      width: 30%;
      margin-left: 1.5%;
      margin-right: 1.5%;
      background-color: #fff;
      float: left;
      height: 530px;
      margin-top: 55px;
   }

   .nwlimg1area {
      position: relative;
      width: 100%;
      height: 200px;
      overflow: hidden;
   }

   .nwlimg1area img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center center;
   }

   .boxContentNews {
      position: relative;
      width: 90%;
      margin: 0 auto;
   }

   .nwlDate {
      position: relative;
      width: 100%;
      font-family: "Abel", Sans-serif;
      font-size: 21px;
      font-weight: 400;
      padding-top: 15px;
   }

   .nwlTitle {
      position: relative;
      width: 100%;
      text-align: left;
      font-family: "Abel", Sans-serif;
      font-size: 24px;
      font-weight: 500;
      padding-top: 15px;
   }

   .nwltextarea {
      position: relative;
      width: 100%;
      text-align: left;
      font-family: "Abel", Sans-serif;
      font-size: 18px;
      font-weight: 400;
      padding-top: 15px;
   }

   .material-symbols-outlined {
      font-size: 1.3em !important;
      position: relative;
      top: 7px;
      font-weight: 700 bold !important;
   }

   .material-symbols-outlined img {
      width: 30px;
      top: -9px;
      position: relative;
   }

   .boxNwsFile {
      position: absolute;
      width: 90%;
      text-align: center;
      margin: 0 auto;
      bottom: 25px;
      left: 5%;
   }

   .buttonFileNws {
      justify-content: center;
      align-items: center;
      border-radius: 3px 3px 3px 3px;
      width: 100%;
      margin: 0 auto;
      height: 53px;
      background-color: #2D2C2C;
      transition: all .3s;
   }

   .buttonFileNws a {
      font-family: "Abel", Sans-serif;
      font-size: 22px;
      color: #ffffff;
      padding: 14px 50px 9px 50px;
      top: 11px;
      position: relative;
   }

   .buttonFileNws:hover {
      background-color: #0D1222;
   }


/* ----------------------------------------------------------------
   Pagina dettaglio evento
   ---------------------------------------------------------------- */

   .containerBlogPage {
      position: relative;
      margin: 0 auto;
      width: 1250px;
   }

   .fasciaBannerBlog {
      position: relative;
      width: 100%;
      height: 400px;
   }

   .fasciaBannerBlog img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
   }

   .fasciaContent {
      position: relative;
      width: 100%;
      background-color: #0D1222;
      padding-top: 40px;
      padding-bottom: 40px;
   }

   .titoloBlogPage {
      position: relative;
      width: 100%;
      text-align: center;
      font-family: "Abel", Sans-serif;
      font-size: 30px;
      font-weight: 600;
      color: #fff;
      padding-bottom: 50px;
   }

   .dataBlogRow {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      padding-bottom: 50px;
   }

   .dataBlog {
      position: relative;
      font-family: "Abel", Sans-serif;
      font-size: 24px;
      font-weight: 400;
      color: #fff;
   }

   .btnDownloadFile {
      display: inline-flex;
      align-items: center;
      gap: 14px;
      color: #ffffff;
      font-family: "Abel", Sans-serif;
      font-size: 22px;
      font-weight: 400;
      text-decoration: none;
      white-space: nowrap;
      flex-shrink: 0;
      background-color: #2E9CFF;
      padding: 10px 26px;
      border-radius: 6px;
      transition: background-color 0.3s;
   }

   .btnDownloadFile:hover {
      background-color: #2e9dffd8;
      color: #ffffff;
   }

   .btnDownloadFile svg {
      flex-shrink: 0;
   }

   /* --- Video evento --- */
   .sectionVideoEvento {
      width: 100%;
      margin: 0 0 44px 0;
   }

   .eventoVideoWrap {
      position: relative;
   }

   .videoEvento {
      width: 100%;
      display: block;
      border-radius: 4px;
      background: #000;
   }

   .btnAttivaAudio {
      position: absolute;
      top: 14px;
      right: 14px;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      background: rgba(0, 0, 0, 0.60);
      color: #ffffff;
      border: 1px solid rgba(255, 255, 255, 0.30);
      border-radius: 20px;
      padding: 7px 15px;
      font-family: "Abel", Sans-serif;
      font-size: 15px;
      cursor: pointer;
      z-index: 10;
      transition: background 0.2s, border-color 0.2s;
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
   }

   .btnAttivaAudio:hover {
      background: rgba(46, 156, 255, 0.80);
      border-color: rgba(46, 156, 255, 0.50);
   }

   /* --- Immagine top --- */
   .topImage {
      position: relative;
      width: 100%;
      height: auto;
      padding-bottom: 50px;
   }

   .topImage img {
      position: relative;
      width: 100%;
      height: auto;
   }

   /* --- Contenuto testo --- */
   .sectionContent {
      position: relative;
      margin: 0 auto;
      text-align: left;
      font-family: "Abel", Sans-serif;
      font-size: 23px;
      font-weight: 400;
      color: #fff;
      line-height: 1.9;
      padding-bottom: 60px;
   }

   .sectionContent ul,
   .sectionContent ol {
      margin: 0.5em 0;
      padding-left: 1.2em;
      list-style-position: outside;
   }

   .sectionContent li {
      margin-bottom: 0.5em;
   }

   .sectionContent pre {
      white-space: pre-wrap;
      word-break: break-word;
      overflow-wrap: break-word;
      font-family: inherit;
      font-size: inherit;
   }

   .sectionContent img {
      max-width: 100%;
   }

   .sectionContent table td,
   .sectionContent table th {
      padding: 10px 14px;
   }

   /* --- Gallery immagini --- */
   .sectionImg {
      position: relative;
      width: 100%;
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      padding-bottom: 60px;
   }

   .sectionImg .boxImgBlog {
      flex: 0 0 calc(50% - 10px);
      overflow: hidden;
   }

   .sectionImg img {
      width: 100%;
      height: auto;
      object-fit: cover;
      display: block;
      cursor: pointer;
   }

   /* --- Condivisione Social --- */
   .sectionShare {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 45px;
      padding: 10px 0 36px 0;
   }

   .shareRow {
      display: flex;
      align-items: center;
      gap: 16px;
   }

   .labelShare {
      font-family: "Abel", Sans-serif;
      font-size: 18px;
      color: #ffffff;
   }

   .btnLinkedin {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: #0A66C2;
      color: #ffffff;
      font-family: "Abel", Sans-serif;
      font-size: 16px;
      font-weight: 600;
      padding: 8px 18px;
      border-radius: 4px;
      text-decoration: none;
      transition: background 0.2s ease;
      line-height: 1;
   }

   .btnLinkedin:hover {
      background: #004182;
      color: #ffffff;
   }

   .btnLinkedin svg {
      width: 17px;
      height: 17px;
      fill: #ffffff;
      flex-shrink: 0;
      position: relative;
      top: 1px;
   }

   /* --- CTA Contattaci --- */
   .sectionCtaBlog {
      text-align: center;
      padding: 50px 0 60px;
      border-top: 1px solid rgba(255,255,255,0.08);
   }

   .ctaBlogDesc {
      font-family: "Abel", Sans-serif;
      font-size: 22px;
      color: #ffffff;
      margin-bottom: 28px;
   }

   .btnCtaBlog {
      display: inline-block;
      background-color: #2E9CFF;
      color: #ffffff;
      font-family: "Abel", Sans-serif;
      font-size: 18px;
      font-weight: 400;
      text-decoration: none;
      padding: 12px 42px;
      border-radius: 20px;
      box-shadow: 4px -3px 60px 0px rgba(46, 156, 255, 0.50);
      transition: background-color 0.2s, box-shadow 0.2s;
   }

   .btnCtaBlog:hover {
      background-color: #1a7fd4;
      box-shadow: 4px -3px 80px 0px rgba(46, 156, 255, 0.75);
      color: #ffffff;
   }


/* ----------------------------------------------------------------
   Lightbox immagini
   ---------------------------------------------------------------- */

   #cmsLightbox {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.88);
      z-index: 9999;
      align-items: center;
      justify-content: center;
   }

   #cmsLightbox.aperto {
      display: flex;
   }

   #cmsLightbox img {
      max-width: 90vw;
      max-height: 90vh;
      width: auto;
      height: auto;
      object-fit: contain;
      border-radius: 4px;
      box-shadow: 0 8px 40px rgba(0,0,0,0.6);
   }

   #cmsLightboxClose {
      position: fixed;
      top: 20px;
      right: 28px;
      font-size: 38px;
      color: #fff;
      cursor: pointer;
      line-height: 1;
      opacity: 0.8;
   }

   #cmsLightboxClose:hover {
      opacity: 1;
   }

   #cmsLightboxPrev,
   #cmsLightboxNext {
      position: fixed;
      top: 50%;
      transform: translateY(-50%);
      font-size: 42px;
      color: #fff;
      cursor: pointer;
      opacity: 0.7;
      padding: 10px 18px;
      user-select: none;
   }

   #cmsLightboxPrev { left: 16px; }
   #cmsLightboxNext { right: 16px; }

   #cmsLightboxPrev:hover,
   #cmsLightboxNext:hover {
      opacity: 1;
   }


/* ================================================================
   Responsive
   ================================================================ */

@media (max-width: 1600px) {
   .containerBlogPage {
      width: 90%;
   }
}

@media (max-width: 1280px) {
   .newslistarea {
      width: 94%;
   }

   .containerBlogPage {
      width: 94%;
   }

   .titoloBlogPage {
      font-size: 22px;
   }
}

@media (max-width: 1023px) {
   .nwlarea {
      width: 47%;
   }

   .sectionContent {
      font-size: 21px;
      line-height: 1.5;
   }

   .fasciaBannerBlog {
      height: 320px;
   }
}

@media (max-width: 680px) {
   .nwlarea {
      width: 97%;
      margin-top: 35px;
   }

   .dataBlogRow {
      flex-direction: column;
      align-items: flex-start;
      gap: 35px;
   }

   .titoloBlogPage {
      font-size: 19px;
   }

   .dataBlog {
      font-size: 22px;
   }

   .sectionContent {
      font-size: 18px;
   }

   .sectionImg {
      flex-direction: column;
      gap: 16px;
   }

   .sectionImg .boxImgBlog {
      width: 100%;
      flex: none;
   }

   .sectionImg img {
      height: auto;
   }

   .fasciaBannerBlog {
      height: 270px;
   }

   /* Tabelle su mobile: layout verticale */
   .sectionContent table {
      display: block !important;
      width: 100% !important;
      height: auto !important;
   }

   .sectionContent table colgroup { display: none; }

   .sectionContent table tbody {
      display: block;
      width: 100%;
      height: auto !important;
   }

   .sectionContent table tr {
      display: block !important;
      height: auto !important;
      margin-bottom: 18px;
      border: 1px solid rgba(255,255,255,0.2);
      border-radius: 4px;
      overflow: hidden;
   }

   .sectionContent table tr:first-child {
      display: none !important;
   }

   .sectionContent table td {
      display: block !important;
      width: 100% !important;
      height: auto !important;
      box-sizing: border-box;
      padding: 10px 14px;
      border: none !important;
      border-bottom: 1px solid rgba(255,255,255,0.1) !important;
      text-align: left !important;
      vertical-align: top;
   }

   .sectionContent table td:last-child {
      border-bottom: none !important;
   }

   .sectionContent table td::before {
      content: attr(data-label);
      display: block;
      font-family: "Abel", Sans-serif;
      font-size: 20px;
      font-weight: 700;
      color: #ffffff;
      margin-bottom: 6px;
   }
}
