/*
Theme Name: Fondazione officina delle Culture
Theme URI: https://fondazioneofficinadelleculture.it
Author: Mauro De Falco
Author URI: maurodefalco.it
Description: Tema personalizzato per Fondazione officina delle Culture
Version: 1.0
Text Domain: foc
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* RESET */

*,
*:before,
*:after {
  box-sizing: border-box !important;
  padding: 0;
  margin: 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

body {
  overflow-x: hidden;
}

@font-face {
  font-family: "Bebas Neue Pro";
  src: url("fonts/BebasNeuePro-Bold.woff2") format("woff2"),
    url("fonts/BebasNeuePro-Bold.woff") format("woff"),
    url("fonts/BebasNeuePro-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bebas Neue Pro Book";
  src: url("fonts/BebasNeuePro-Book.woff2") format("woff2"),
    url("fonts/BebasNeuePro-Book.woff") format("woff"),
    url("fonts/BebasNeuePro-Book.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bebas Neue Pro";
  src: url("fonts/BebasNeuePro-Light.woff2") format("woff2"),
    url("fonts/BebasNeuePro-Light.woff") format("woff"),
    url("fonts/BebasNeuePro-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bebas Neue Pro";
  src: url("fonts/BebasNeuePro-Regular.woff2") format("woff2"),
    url("fonts/BebasNeuePro-Regular.woff") format("woff"),
    url("fonts/BebasNeuePro-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bebas Neue";
  src: url("fonts/BebasNeue-Regular.woff2") format("woff2"),
    url("fonts/BebasNeue-Regular.woff") format("woff"),
    url("fonts/BebasNeue-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bebas Neue";
  src: url("fonts/BebasNeue-Bold.woff2") format("woff2"),
    url("fonts/BebasNeue-Bold.woff") format("woff"),
    url("fonts/BebasNeue-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #0b66c2;
  --text: #000;
  --font_titoli: "Bebas Neue Pro", serif;
  --font: "Inter", sans-serif;
  --white: #ffffff;
  --bgsfondo: #f3f4f8;
  --contrast: #23629f;
  --br: 4px;
}

img,
video,
figure {
  max-width: 100%;
  height: auto;
  object-fit: cover;
	margin-bottom: 20px;
	border-radius: 8px;
}

a {
  color: black;
  transition: all 0.3s ease-in-out;
}

a:hover {
  color: var(--primary) !important;
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font_titoli) !important;
}

h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 10px;
}

.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6,
.single-content h2,
.single-content h3,
.single-content h4,
.single-content h5,
.single-content h6 {
  margin-bottom: 25px;
	font-family: var(--font_titoli);
}

.page-content h2 {
  font-size: clamp(28px, 5vw, 36px);
  position: relative;
}

.page-content h3 {
  font-size: clamp(24px, 5vw, 34px);
  position: relative;
	line-height: 1.1;
}
.page-content h4, .titolo-widget {
  font-size: clamp(22px, 5vw, 32px);
  position: relative;
	line-height: 1.1;
}
.page-content h5 {
  font-size: clamp(20px, 5vw, 26px);
  position: relative;
	line-height: 1.1;
}
.page-content h6 {
  font-size: clamp(18px, 5vw, 22px);
  position: relative;
	line-height: 1.1;
}

.page-content h2::before,
.page-content h3::before,
.page-content h4::before,
.page-content h5::before,
.page-content h6::before {
  content: "";
  position: absolute;
  left: 0px;
  bottom: -5px;
  width: 30px;
  height: 3px;
  background: var(--primary);
}


b,
strong {
  font-weight: 600 !important;

}

ol,
ul {
  margin-bottom: 20px;
}

p,
ul,
li,
a,
span,
div {
  font-family: var(--font);
	  font-size: 16px;
  line-height: 24px;
}

p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 24px;
  color: rgb(38, 38, 38);
}

i {
  font-size: 45px;
  font-weight: 700;
}

.ml-25 {
  margin-left: 25%;
}

.btn {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  -webkit-appearance: none;
  appearance: none;
  outline: none !important;
  background-color: var(--primary);
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  padding: 17px 50px;
  overflow: hidden;
  transition: all 0.5s linear;
  z-index: 1;
  text-align: center;
  color: white;

  text-decoration: none;
}

.btn:hover {
  background: #333;
}

.btn__contrast {
  background-color: var(--contrast) !important;
  color: white !important;
}

/* HEADER */

.logo a {
  text-transform: uppercase;
  text-decoration: none;
  color: var(--primary);
  font-size: 26px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 20;
  background: white;
  padding: 20px 0px;
  top: 0px;
  width: 100%;
  border-radius: var(--br);
}

.home header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  z-index: 20;
  background: white;
  padding: 20px 50px;
  top: 35px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  border-radius: var(--br);
}

nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
}

nav ul li a {
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  color: black;
  font-weight: 400;
}

@media (min-width: 768px) {
  .header-mobile {
    display: none;
  }

  .header-desktop {
    display: flex;
  }
}

@media (max-width: 768px) {
  .header-mobile {
    display: flex;
    padding: 20px;
  }

  .home header {
    padding: 20px 50px 10px 50px;
  }

  nav ul li a {
    font-size: 18px;
	  text-align: center;
  }

  .logo h3 {
    font-family: var(--font_titoli);
    font-size: 28px;
    line-height: 29px;
  }

  .header-desktop {
    display: none !important;
  }

  .menu-icon {
    width: 30px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2000;
  }

  .menu-icon.open .line:nth-child(1) {
    transform: rotate(45deg) translate(0px, 8px);
  }

  .menu-icon.open .line:nth-child(2) {
    opacity: 0;
  }

  .menu-icon.open .line:nth-child(3) {
    transform: rotate(-45deg);
    translate: -6px -10px;
  }

  span.line {
    background: black;
    height: 4px;
    display: block;
    transition: all 0.3s ease-in-out;
  }

  .logo {
    max-width: 200px;
    height: auto;
  }

  .outside-menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 10;
    transform: translateX(-100%);
    transition: all 0.3s ease-in-out;
  }

  .outside-menu.open {
    transform: translateX(0%);
  }

  .outside-menu ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    align-items: center;
    justify-content: center;
    height: 100vh;
  }
}

/* BACK TO TOP */

.back-to-top-btn {
  display: inline-block;
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  background: black;
  box-shadow: 0px 8px 16px rgba(3, 4, 28, 0.3);
  border-radius: 50%;
}

.back-to-top-wrapper {
  position: fixed;
  right: 50px;
  bottom: 0;
  height: 44px;
  width: 44px;
  cursor: pointer;
  display: block;
  border-radius: 50%;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
}

.back-to-top-wrapper.back-to-top-btn-show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}

/* HOME SLIDER */

.home-slider {
  height: 990px;
  width: 100%;
  background-size: cover;
  position: relative;
}

.home-slider:before {
  position: absolute;
  content: "";
  background: linear-gradient(to top, #00000085, #00000025);
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.home-slider h1 {
  font-size: clamp(38px, 5vw, 120px);
  font-weight: 700;
  color: white;
  position: relative;
  line-height: 1;
  z-index: 10;
  color: white;
}

.home-slider h1:before {
  position: absolute;
  content: "";
  background: var(--primary);
  left: -25px;
  top: -25px;
  width: 90%;
  height: 100%;
  z-index: -1;
}

.home-slider .text-wrapper {
  width: 100%;
}

.content-slide {
  height: 100%;
}

.content-testo-slide {
  display: grid;
  place-items: center;
  height: 100%;
}

.content-testo-slide p {
  z-index: 10;
  color: white;
  position: relative;
  max-width: 450px;
}

.content-testo-slide h4 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
  z-index: 10;
  color: white;
  position: relative;
}

@media (max-width: 768px) {
  .home-slider .text-wrapper {
    padding: 0 20px;
  }

  .home-slider h1:before {
    left: -15px;
    top: -15px;
  }
}

/* esperienza */

.esperienza-unica {
  margin-top: -150px !important;
  position: relative;
  z-index: 10;
}

@media (max-width: 768px) {
  .esperienza-unica {
    margin-top: -150px !important;
    position: relative;
    z-index: 10;
    background: white;
    padding: 40px 0;
    margin-left: 20px !important;
    margin-right: 20px !important;
  }
}

/* ICONE */

.icons {
  padding: 80px 0;
}

.icons h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--tp-heading-1);
  margin-bottom: 16px;
  transition: 0.3s;
}

/* ! Grid System */

@media (max-width: 767px) {
  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(1, 1fr);
  }
}

.grid {
  display: grid;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.flex-container {
  display: flex;
  gap: 20px;
}

.items-center {
  align-items: center;
}

@media (max-width: 768px) {
  .flex-container {
    flex-direction: column !important;
  }

  [class^="grid-"],
  .grid-3,
  .grid-4,
  .grid-2 {
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 25px !important;
  }
}

.flex--center {
  justify-content: center;
}

.flex--vertical-c {
  align-items: center;
}

.min-grid {
  max-width: 1200px;
  margin: 40px auto 25px auto;
}

.col {
  flex: 1;
}

[class*="col-"] {
  position: relative;
  padding: 0 25px;
}

.col-20 {
  width: 20%;
}

.col-25 {
  width: 25%;
}

.col-30 {
  width: 30%;
}

.col-33 {
  width: 33.33%;
}

.col-40 {
  width: 40%;
}

.col-50 {
  width: 50%;
}

.col-60 {
  width: 60%;
}

.col-70 {
  width: 70%;
}

.col-80 {
  width: 80%;
}

.col-90 {
  width: 90%;
}

.col-100 {
  width: 100%;
}

@media (max-width: 991px) {
  .tab-20 {
    width: 20%;
  }

  .tab-25 {
    width: 25%;
  }

  .tab-33 {
    width: 33.33%;
  }

  .tab-50 {
    width: 50%;
  }

  .tab-100 {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .col-20 {
    width: 100%;
  }

  .col-25 {
    width: 100%;
  }

  .col-30 {
    width: 100%;
  }

  .col-33 {
    width: 100%;
  }

  .col-40 {
    width: 100%;
  }

  .col-50 {
    width: 100%;
  }

  .col-60 {
    width: 100%;
  }

  .col-70 {
    width: 100%;
  }

  .col-80 {
    width: 100%;
  }

  .col-90 {
    width: 100%;
  }

  .col-100 {
    width: 100%;
  }
}

/* Nested Grid */
.grid .grid {
  margin-left: -15px;
  margin-right: -15px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.row-reverse {
  flex-direction: row-reverse;
}

.container-max {
  max-width: 1480px;
  margin: 0 auto;
}

/* SINGLE FEATURE */

.text-col {
  padding: 0 20px;
}

.single-feature {
  margin: 60px auto !important;
}

/* SINGLE ICONA */

.single-icon:not(:last-child) {
  padding: 20px;
  border-right: 1px solid #ededed;
}

.single-icon {
  padding: 20px;
}

/* NEWS */
.post-home .container {
  position: relative;
  display: flex;
  column-gap: 60px;
  margin: 170px auto 120px;
}

.post-home .container:before {
  content: "";
  position: absolute;
  top: -120px;
  left: 0;
  width: 100%;
  height: 1px;
  background: #ededed;
}

.post-home .title, .post-home .title-events {
  position: absolute;
  top: -90px;
  left: 0;
  color: var(--primary);
  font-size: 50px;
  font-weight: 400;
  letter-spacing: 1px;
  padding-bottom: 10px;
}

.post-home .title-events {

	left: inherit !important;
}

.post-home .latest-post {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;
  align-items: start;
  height: fit-content;
  width: 70%;
}

.post-home .latest-post:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: 1px;
  background: #ededed;
  transform: translateX(-50%);
}

.article-item {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;

}

.content-article li a:hover {
  color: var(--primary);
}

.content-article h3 {
  font-size: 30px;
  color: var(--primary);
}

.article-item:nth-child(1) {
  position: relative;
  grid-column: 1;
  grid-row: 1 / span 2;
}

.article-item:nth-child(2),
.article-item:nth-child(3) {
  grid-column: 2;
}

.article-item:nth-child(2) {
  grid-row: 1;
  margin-bottom: 44px;
}

.article-item:nth-child(3) {
  grid-row: 2;
}

.img-news img {
  max-height: 380px;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.article-item:not(:nth-child(1)) img {
  height: 140px;
}

.archive-article .img-wrap {
  width: 100%;
  height: 130px;
}

.archive-article .img-wrap img {
  width: 100%;
  max-height: 130px;
  object-fit: cover;
}

.content-news {
  display: flex;
  flex-direction: column;
}

.title-news {
  font-size: 22px;
  margin: 15px 0 0 0;
  text-transform: uppercase;
}

.content-news p {
  font-size: 15px;
  line-height: 1.2;
  margin: 5px 0 5px;
}

.content-news a {
  color: var(--rosso);
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
}

.content-news a:hover {
  color: var(--giallo);
}

.short-content a {
  color: var(--rosso);
  transition: all 0.3s ease-in-out;
}

.post-events{
  width: 30%;
  max-height: auto;
  overflow-y: hidden;
}

.post-events img {
  width: 100%;
  object-fit: cover;
  height: auto;
}

/* Contenitore degli eventi */
.latest-events {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 40px;
    width: 100%;
}

/* Singolo evento */
.event-item {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--bgsfondo);
    padding: 20px;
    border-radius: var(--br);
}

/* Immagine evento */
.img-event img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--br);
}

/* Titolo evento */
.title-event {
    font-size: 22px;
    margin: 15px 0 5px;
    text-transform: uppercase;
    color: var(--primary);
}

/* Testo evento */
.content-event p {
    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 10px;
}

/* Link "Scopri di più" */
.content-event a {
    color: var(--rosso);
    font-weight: bold;
    text-decoration: none;
    font-size: 18px;
}

.content-event a:hover {
    color: var(--giallo);
}

/* Responsive */
@media (max-width: 768px) {
    .latest-events {
        grid-template-columns: 1fr;
    }
}

/* Layout Generale */
.post-news-page .container {
    max-width: 1200px;
    margin: 0 auto;
}

.content-wrapper {
    display: flex;
    gap: 40px;
}

/* Lista Articoli */
.post-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
}

/* Singolo Articolo */
.post-item {
    width: calc(33.333% - 20px);
    background: var(--bgsfondo);
    padding: 20px;
    border-radius: var(--br);
    text-align: center;
}

/* Immagine */
.post-thumbnail img {
    width: 100%;
    border-radius: var(--br);
}

/* Titolo */
.post-title {
    font-size: 22px;
    margin: 15px 0 5px;
    text-transform: uppercase;
    color: var(--primary);
}

/* Testo */
.post-item p {
    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 10px;
}

/* Link "Leggi di più" */
.read-more {
    color: var(--primary);
    font-weight: bold;
    text-decoration: none;
    font-size: 18px;
}

.read-more:hover {
    color: var(--primary);
}

/* Paginazione */
.pagination {
    margin-top: 20px;
    text-align: center;
    width: 100%;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: var(--br);
}

.pagination .current {
    background: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .post-item {
        width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }

    .post-item {
        width: 100%;
    }

    .sidebar {
        width: 100%;
    }
}

/* NEWS PAGE */

h3.post-title:before{
	content: none;
	
}

h3.post-title {
	  line-height: 22px !important;
	margin-bottom:10px !important;
}
.news-post-thumbnail img{
	    object-fit: cover;
    border-radius: var(--br);
    width: 100%;
    height: 190px;
}   
 


h3.post-title a {
    text-decoration: none;
    font-size: 20px;
    text-transform: capitalize
  
}

/* PAGE */

.main-bg-page {
  background: var(--primary);
  padding: 40px 20px;
  margin-bottom: 40px;
}

.main-bg-page h1 {
  font-size: clamp(38px, 5vw, 58px) !important;
  color: white;
	line-height: 1 !important;
}

#simple-page {
  margin-bottom: 120px !important;
}

  .description {
    padding: 0px;
  }

@media (max-width: 768px) {
  .description {
    padding: 0 20px;
  }
}

/* SINGLE */

#article-page img {
	width:100%;
	margin-bottom:20px;
}

/* FOOTER */

footer {
  background-color: #232331;
  padding: 50px 0;
}

footer a {
  color: white;
}

footer p,
footer h3,
footer h4 {
  color: white;
  margin-bottom: 20px;
}

.copyright p {
  margin-bottom: 0 !important;
}

footer ul {
  list-style: none;
  margin: 0;
  padding: 0 10px;
}

footer ul li a {
  text-decoration: none;
  line-height: 1.5;
}

.copyright {
  padding: 10px 0;
}

.copyright .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
}

@media (max-width: 768px) {
  .copyright .container {
    padding: 15px;
  }
}

/* CONTATTI */

.page-contatti .container {
  display: flex;
  gap: 50px;
}

#simple-page:has(.page-contatti){
	margin-bottom:0 !important;
}

.map {
  margin-top: 40px;
}

.recapiti .socials {
  margin-top: 40px;
}

.recapiti .socials h3 {
  margin-bottom: 20px;
}

.recapiti .socials ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
}

.recapiti ul li a {
  text-decoration: none;
  font-size: 18px;
  text-transform: uppercase;
  color: black;
  line-height: 1.5;
}

.recapiti ul li a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.recapiti .socials ul li a {
  text-decoration: none;
  font-size: 18px;
  text-transform: uppercase;
  color: black;
  font-weight: 400;
}

@media (max-width: 768px) {
  .recapiti .socials ul li a {
    font-size: 14px;
  }
}

/* WIDGET */

.sidebar-wrapper {
	position: relative;
}

.sidebar {
	top:25px;
	position: sticky;
}

.sidebar .widget {
  width: 100%;
  background: var(--bgsfondo);
  padding: 20px;
  border-radius: var(--br);
  margin-bottom: 20px;
}

.widget ul {
  list-style: none;
}


.heateor_sss_sharing_container {
	margin-bottom: 50px;
	margin-top: 50px;
}

.event-info {
	display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    background: var(--bgsfondo);
    padding: 20px;
    border-radius: 8px;
}

.event-info h3 {
	margin-bottom: 5px;
}

.event-info .fa, .event-info .fas {
	font-size: 30px;
}

@media(max-width:768px){
	.event-info{
    flex-direction: column;
    gap: 30px;
	}
	
	.post-home .latest-post {
		flex-direction: column;
    display: flex;
    width: 100%;
    padding: 0 15px;
    gap: 30px;
	}
	
	.post-home .title, .post-home .title-events {
		position: inherit;
		
	}
	   
	.post-home .title {
		padding: 0 15px;
	}
	
	.post-events {
		width: 100%;
		padding: 0 15px;
	}
	
	.post-home .container {
		flex-direction: column;
	}
	
	.post-home .latest-post:before {
    content: none;
} 
	
	.post-home .title-events {
		position: inherit;
	}
	
	.sidebar {
	top:25px;
	position: relative;
}
}


.socials .fab {
	font-size:25px;
}


/* SUGGERIMENTI CHAT */

