/**
 * Theme Name: Falegnameria Valentini
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: falegnameria-valentini
 */


.gr-button .wp-block-button__link {
    background: linear-gradient(90deg, rgba(255, 206, 96, 1) 0%, rgba(255, 176, 0, 1) 100%);
	margin-top: 20px;
}

a.wp-block-button__link:after {
    content: "";
    display: inline-block;
    margin-left: 8px;
    margin-top: 2px;
    background-image: url(/wp-content/uploads/2025/02/arrow.svg);
    background-size: contain;
    width: 1em;
    height: 1em;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    transition: transform .2s ease;
}

a.wp-block-button__link:hover:after {
    transform: translateX(5px);
}

.cta-corso {
    background-color: #0F395B;
}

/* Contenitore del blocco */
.acf-video-background-block {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Video */
.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Overlay con gradient da destra */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0) 50%);
    z-index: -1;
}

/* Contenuto */
.content-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    max-width: 1500px;
    padding: 20px;
}

.empty-column {
    flex: 1;
}

.text-column {
    flex: 1;
    max-width: 600px;
    text-align: left;
}

.text-column h1, .text-column p{
	color: #fff;
}


/* Media query per tablet e mobile */
@media screen and (max-width: 1024px) { 
    .content-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .empty-column {
        display: none; 
    }

    .text-column {
        max-width: 90%;
    }
}

@media screen and (max-width: 768px) { 
    .text-column {
        max-width: 100%;
        padding: 30px;
    }

    .text-column h2 {
        font-size: 1.8rem;
    }

    .text-column p {
        font-size: 1.2rem;
    }
}


/*blocco servizi*/
.btn-empty .wp-block-button__link {
    background-color: transparent;
    padding: 0;
}

.service-block {
    background-image: linear-gradient(#081D2E, #081D2E);
    background-size: 0 100%;
    background-repeat: no-repeat;
    transition: .4s;
    padding: 2em;
    border-left: 1px solid #D9D9D9;
	margin-bottom: 0 !important;
}

.service-block:hover {
    background-size: 100% 100%;
    color: #fff;
}

.service-block:hover h3  {
    color: #fff;
}

.service-block:hover .btn-empty .wp-block-button__link {
    color: #fff;
}

.service-block:hover a.wp-block-button__link:after {
	content: "";
    display: inline-block;
    margin-left: 8px;
    margin-top: 2px;
    background-image: url(/wp-content/uploads/2025/02/arrow-white.svg);
    background-size: contain;
    width: 1em;
    height: 1em;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    transition: transform .2s ease;
}

.services-list {
	display: grid;
     grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    column-gap: 20px;
	row-gap: 40px;
	list-style-type: none;
}

.cta {
    margin: 0 8%;
}

@media screen and (max-width: 1024px) {
	.cta {
    margin: 0 4%;
}
}

@media screen and (max-width: 768px) {
.cta {
    margin: 0 2%;
}

	.service-block {
		  padding: 1em;
	}	
}

/*slider partner*/
.partner-slider {
    display: flex;
    justify-content: center;
    align-items: center;
}
.partner-slider .slide {
    padding: 10px;
    text-align: center;
}
.partner-slider img {
    max-width: 100%;
    height: auto;
}

.slick-dots li button:before {
    font-family: 'slick';
    font-size: 10px !important;
    line-height: 20px;
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    content: '•';
	text-align: center;}

.slick-dots li.slick-active button:before {
    opacity: .75;
    color: var(--theme-palette-color-1) !important;
}

/*footer*/
.logo-ft-block {
    display: flex;
    gap: 10px;
    color: white;
    align-items: center;
}

.logo-ft-block figure {
    margin: 0 !important;
}

.text-ft-block {
    color: white;
    display: flex;
	gap: 70px;}

.text-ft-block p {
	margin: 0 !important;
}

.wp-block-separator:not(.is-style-dots) {
    height: 1px;
}

@media screen and (max-width: 768px) {
.logo-ft-block {
    display: unset;}
	
	.logo-ft-block figure {
    margin-bottom: 20px;
}
	
	.text-ft-block {
    display: unset;}
	
	.text-ft-block p {
	padding-bottom: 20px;
}
}

/*single project*/
.single-progetti [data-vertical-spacing*=top] {
    padding-top: 0 !important;
}

.single-progetti [data-vertical-spacing*=bottom] {
	 padding-bottom: 0 !important;
}


.first-section-project {
    margin: 100px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.second-section-project {
	margin-bottom: 100px;
}

.text-up {
    border-bottom: 1px solid #D9D9D9;
    margin-bottom: 30px;
}

span.titoletto {
    text-transform: uppercase;
    color: var(--theme-palette-color-2);
}

.wp-block-button.gr-button {
    display: flex;
	justify-content: center;
	margin-top: 40px;
}

.releated-post-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px;
    background-image: url(https://falegnameriagenova.it/wp-content/uploads/2025/02/bg-white.svg);
    background-position: center;
    background-size: cover;
	background-repeat: no-repeat;
}

.related-post-thumbnail {
    text-align: center;
    margin-bottom: 10px;
}

.related-post-thumbnail img {
    max-width: 100%;
    height: auto;
}

.related-post-title {
    text-align: center;
	padding: 20px;
}

.releated-post-section ul {
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    column-gap: 30px;
    row-gap: 20px;
	list-style-type: none;
}

.releated-post-section h3 {
	margin-bottom: 40px;
}

@media screen and (max-width: 768px) {
.first-section-project {
    margin: 80px 0;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 50px;
}
}

/*grid project*/
ul.project-grid {
	display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    column-gap: 30px;
    row-gap: 20px;
	list-style-type: none;
	padding: 0;
}

.project-img-grid {
    text-align: center;
    margin-bottom: 10px;
}

.project-img-grid img {
    max-width: 100%;
    height: auto;
}

.project-title-grid {
	padding: 20px;
	text-align: center;
}

.project-title-grid h5 {
	font-size: 24px;
	margin-bottom: 5px;
}

/*filter*/

.project-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
	justify-content: center;
	margin-bottom: 50px !important;
}

.filter-btn {
    background-color: #f2f2f2;
    color: #1D5C8E;
    text-transform: uppercase;
    font-family: 'Montserrat';
    font-weight: 600;
    letter-spacing: 1px;
    border: none;
    padding: 10px 10px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    min-width: 120px;
    text-align: center;
	
}

.filter-btn:hover,
.filter-btn.active { 
    text-decoration: underline;
}

.filter-btn:focus {
    outline: none;
}

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

	ul.project-grid {
	display: flex;
	flex-direction: column;
	list-style-type: none;
	padding: 0;
}
	
	.project-title-grid {
	padding: 10px 0 0 0 !important;
	text-align: center;
}
	
}

.shadow {
    box-shadow: 2px 5px 8px #99999950;
}

.shadow ::before {
    padding-right: 8px;
}

