/*
Theme Name: FDF
Theme URI: https://www.fdfvideoproduzioni.com/
Author: Teodoro Laines
Author URI: https://3designer.it/
Description: Sito creato in codice smart per visualizzazione sui vari device
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: black, brown, orange, tan, white, yellow, light, one-column, two-columns, right-sidebar, flexible-width, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, translation-ready
Text Domain: twentythirteen

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/



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

:root{
    --black: #1b1b1b;
    --grey: #777;
    --white: #fff;
    --color: #8FAF9D;
}

/*-----------------------------------------------
RESET
-----------------------------------------------*/

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}


body, p{
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    font-style: normal;
	font-size: 16px; 
}

h1,h2,h3,h4,h5,h6,p, .wp-block-buttons{
    padding: 0.5rem 2rem;
}

h1, h2, h3, h4, h5, h6{
  font-family: "Cambo", serif;
  font-weight: 400;
  font-style: normal;
}

.pd-0, .wp-block-columns{
    padding: 0;
    margin: 0;
}

.wp-block-button__link {
  color: #333 !important;
  background-color: transparent !important;
  border-radius: 0 !important;
  box-shadow: none;
  text-decoration: none;
  padding: calc(.667em + 2px) calc(1.333em + 2px);
  font-size: 1.125em;
  border: 1px solid #333 !important;
}

input, textarea{width: 100%;}
input{padding: 10px;}
.wpcf7-submit {
    display: inline;
    padding: 10px 40px;
    width: auto;
    background-color: transparent;
}

:where(.wp-block-columns.is-layout-flex) {
    gap: 0;
    row-gap: 0px;
    column-gap: 0px;
}

footer a{color: #8FAF9D;}

.container{
	width: 80%;
	display: block;
	margin: 0 auto;
}
/*-----------------------------------------------
NAVIGAZIONE E CONTENITORE
-----------------------------------------------*/

.app{
    display: flex;
    min-height: 100vh;
}

.sidebar{
    /*flex: 1 1 0;*/
	width: 450px;
    max-width: 300px;
    padding: 2rem 1rem;
    background-color: var(--black);
    color: var(--white);
}

nav{
    position: fixed;
}

.content{
	width: 100%;
}

.sidebar ul{
    margin: -1rem;
    position: fixed;
    width: 300px;
}

.logo img {
    width: 150px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
}


.sidebar ul li a{
    color: var(--white);
    font-weight: 200;
}

.sidebar ul li {
    display: flex;
    padding: 1rem;
    color: var(--white);
    transition: 0.2s linear;
    width: 100%;
	margin-bottom: 10px;
}
.sidebar ul li a:hover{
    color: var(--color);
}
.sidebar ul li:hover,
.sidebar ul li.is-active{
    color: var(--color);
    border-right: 3px solid var(--color);
}

ul.sub-menu li{
	padding: 40px 50px !important;
	margin-bottom: 20px !important;
}



.content{
    flex: 1 1 0;
    overflow: auto;
}

.menu-toggle{
    display: none;
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 99px;
    background-color: var(--black);
    cursor: pointer;
}

.hamburger{
    position: relative;
    top: calc(50% - 2%);
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
}

.hamburger > span,
.hamburger > span::before,
.hamburger > span::after{
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    border-radius: 99px;
    background-color: var(--white);
    transition-duration: .25s;
}

.hamburger > span::before{
    content: "";
    top: -8px;
}

.hamburger > span::after{
    content: "";
    top: 8px;
}

.menu-toggle.is-active .hamburger > span{
    transform: rotate(45deg);
}

.menu-toggle.is-active .hamburger > span::before{
    top: 0;
    transform: rotate(0deg);
}

.menu-toggle.is-active .hamburger > span::after{
    top: 0;
    transform: rotate(90deg);
}

@media (max-width: 1024px){
    .sidebar, .sidebar ul{
        max-width: 200px;
    }
}

@media(max-width: 768px){
    .menu-toggle{
        display: block;
        z-index: 9999;
    }

    .sidebar{
        position: fixed;
        top: 0;
        left: -300px;
        height: 100vh;
        width: 100%;
        max-width: 300px;
        transition: 0.2s linear;
        z-index: 9999;
    }

    .sidebar ul li {
        width: 300px;
    }

    .sidebar ul{
        width: 300px;
    }

    .sidebar.is-active{
        left: 0;
    }
    
	.revers{
		display: flex;
		flex-direction: column-reverse;
		flex-wrap: nowrap;
		justify-content: flex-start;
		align-items: stretch;
		align-content: stretch;
		 
	}
}

/*-----------------------------------------------
HERO
-----------------------------------------------*/

.hero{
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 10rem;
}

.hero__img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(00, 00, 00, .5);
    z-index: -1;
}

.content__hero{
    width: 50%;
    color: var(--white);
}

.content__hero h1{
    font-size: 4.5rem;
    line-height: 5rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .2rem;
    position: relative;
    margin: 20px 0;
}

.content__hero h1::before{
    content: "";
    position: absolute;
    width: 50%;
    height: 1px;
    background-color: var(--color);
    bottom: 0;
    left: 0;
}

.content__hero .description__hero{
    font-weight: 200;
    margin: 20px 0;
    font-size: 1.5rem;
}

.btn{
    color: var(--color);
    text-transform: uppercase;
    letter-spacing: .2rem;
    position: relative;
    padding: 10px 0;
}

.btn::before{
    position: absolute;
    content: "";
    background-color: var(--color);
    width: 50%;
    height: 1px;
    bottom: 0;
    left: 0;
    transition: .23s linear;
}

.btn:hover::before{
    left: 50%;
}

@media(max-width: 1024px){
    .hero{
        padding: 3rem;
    }

    .content__hero{
        width: 100%;
        margin: auto;
    }
	
	.content__hero h1{
		font-size: 1.5em;
	}
}

/*-----------------------------------------------
Title
-----------------------------------------------*/
.title{
    width: 100%;
    height: 350px;
    display: flex;
    justify-content: flex-start;
    align-items: end;
    padding: 2rem;
    position: relative;
}

.title h1{
    font-size: 2.5rem;
    font-weight: 200;
    color: var(--white);
    text-transform: uppercase;
}

.title h1 a{
    color: var(--color);
}

.title h1 a:hover{
    color: var(--white);
}

img.title_img{
    position: absolute;
    width: 100%;
    height: 350px;
    object-fit: cover;
    top: 0;
    left: 0;
    z-index: -1;
}

/*-----------------------------------------------
CONTENITORE ARTICOLI
-----------------------------------------------*/

article{
    padding: 2rem;
}

/*-----------------------------------------------
CARD
-----------------------------------------------*/
.box-card{
    padding: 1rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
	width: 80%;
	margin: 20px auto;
}

.card{
    position: relative;
    width: 350px;
    height: 450px;
	min-height: 450px;
    margin: 5px;
    overflow: hidden;
}

.content__card{
    height: 450px;
	min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    color: var(--white);
}

.content__card a{
    color: var(--white);
}

.card img{
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: -1;
    transition: 1.5s all ease-in-out;
    object-fit: cover;
}

.card:hover img{
    transform: scale(1.2);
}

.card__title{
    font-weight: 200;
    position: relative;
    padding: 10px 0;
}

.card__title::before{
    content: "";
    width: 50%;
    height: 1px;
    background-color: var(--color);
    position: absolute;
    bottom: 0;
    left: 0;
    transition: all .3s;
}

.card__title:hover::before{
    left: 50%;
}

.social__card a{
    padding: 5px;
	z-index: 55;
}

.card .card-critic{
	color: #fff !important;
	position: relative !important;
	z-index: 99 !important;
	display: block !important;
	visibility: visible !important;
}

.card .card__title,
.card .content__card,
.card .social__card{
    /* Aggiungi eventuali stili per il contenuto */
    z-index: 5;  /* Impedisce che il contenuto si sovrapponga */

}

.card-link {
    display: block;
    text-decoration: none; /* Rimuove la sottolineatura */
}

.card-link .card {
    display: block;
    width: 350px;  /* Assicura che il link copra tutta la larghezza */
    height: 450px; /* Assicura che il link copra tutta l'altezza */
    position: relative;
}

.card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);  /* Colore semi-trasparente per overlay */
    z-index:0;  /* Fa in modo che l'overlay stia sopra agli altri elementi */
}

.card-link:hover .overlay {
    /* Aggiungi effetti hover, se necessario */
    background: rgba(0, 0, 0, 0.6);
}

footer{
    padding: 20px;
    text-align: center;
}

.social__footer a{
    color: var(--grey);
    font-size: 1.5rem;
    margin: 20px 10px;
    display: inline-block;
}

.social__footer a:hover{
    color: var(--color);
}

.info__footer p{
    font-size: .8rem;
    line-height: 1.5rem;
}

/*--------------- GUTENBE>RG --------------------*/
.guten-KE0oSg .icon-box.icon-box-body .title{
	height: auto !important;
}

.is-style-container-80 {
    max-width: 80%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .is-style-container-80 {
        max-width: 90%;
    }
}


.wpcf7-form-control{
    border: 1px solid #333 !important;
    padding: 20px 40px !important;
    text-transform: uppercase !important;
}

/* Assicurati che il nome del critico sia visibile su dispositivi mobili */
@media (max-width: 768px) {
    .card-critic {
        font-size: 14px;   /* Riduci la dimensione del font per mobile */
        margin-top: 5px;   /* Aggiungi un po' di spazio per mobile */
        display: block;    /* Forza il blocco del testo per non incasinare il layout */
		 visibility: visible !important; /* Forza la visibilità */
        opacity: 1 !important;        /* Evita che venga nascosto */
    }
}

/* Assicurati che il nome sia ben visibile anche su dispositivi più piccoli (smartphone) */
@media (max-width: 480px) {
    .card-critic {
        font-size: 13px;   /* Riduci ancora la dimensione del font su schermi molto piccoli */
        margin-top: 3px;    /* Aggiusta lo spazio sopra */
		display: block;
		 visibility: visible !important; /* Forza la visibilità */
        opacity: 1 !important;        /* Evita che venga nascosto */
    }
}

.page-social {
    margin-top: 40px;
    display: flex;
    justify-content: center; /* centra le icone */
    gap: 20px;              /* spazio tra le icone */
}

.page-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;     /* padding interno */
    color: #ccc;             /* icone più scure */
    border-radius: 8px;      /* angoli leggermente arrotondati */
    font-size: 1.6rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.page-social a:hover {
    color: #999;             /* icona bianca al hover */
    transform: translateY(-2px); /* leggero effetto sollevamento */
}
