/*
Theme Name:     Franscesca Madonna Child Theme
Theme URI:      aferrigno.it
Description:    Tema Child per il tema Hello Theme
Author:         Alessandro Ferrigno
Author URI:     https://www.aferrigno.it/
Template:       francescamadonna
Version:        1.0.0
*/

html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4, html[lang="ar"] h5, html[lang="ar"] h6, html[lang="ar"] p, html[lang="ar"] span {
  direction: rtl;
  unicode-bidi: isolate;
}



/* HEADER */

div#header-mobile.elementor-sticky--effects {
    background: #000000;
}

#contact-form-modal {
	opacity:0!important; 
	z-index:-1!important; 
	height:0!important; 
	transition: all 300ms cubic-bezier(0.65,0,.076,1);
}

#contact-form-modal.view-modal{
	opacity:1!important; 
	z-index:9999!important; 
	height:100vh!important; 
}

body.page-id-15 footer#site-footer, 
body.page-id-1471 footer#site-footer, 
body.page-id-1704 footer#site-footer  {
    display: none!important;
}

.form-container {
    border-radius: 5px;
    padding: 5px;
    background: linear-gradient(#060606, rgb(0 0 0)) padding-box, linear-gradient(to bottom, rgba(175, 175, 175, 0.8), rgba(73, 73, 73, 0.1)) border-box;
    border: 1px solid transparent;
}

@media screen and (min-width:768px) {
.fixd-header .elementor-widget {
    background: #333;
    border-radius: 50px;
    padding: 24px;
    background: rgba(217, 217, 217, 0.05);
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(50px);
	max-width:1400px!important;
	margin:auto!important
}

.fixd-header .elementor-widget::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px; /* spessore bordo */
    background: linear-gradient(to left, rgba(175, 175, 175, 0.8), rgba(73, 73, 73, 0.1));
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;

}
}

.curiosity-column {
    background: linear-gradient(180deg, rgb(0 0 0) 0%, #000000 27%, #541729 66.47%, #ffffff 100%) !important;
}

/* Menu Mobile */

@media screen and (max-width:768px) {
	.e-n-menu-wrapper {
    top: 50px !important;
}
	
	.elementor-widget-n-menu .e-n-menu[data-layout=dropdown] .e-n-menu-title {
    background-color: #ffffff00!important;
	}
	
    ul.e-n-menu-heading {
        border-radius: 0px;
        padding: 24px;
        background: rgba(217, 217, 217, 0.01);
        backdrop-filter: blur(3px);
        background: linear-gradient(to left, rgba(175, 175, 175, 0.8), rgba(73, 73, 73, 0));
        padding: 20px 0px !important;
		        padding-left: 100px !important;
    }	
	
	span.e-n-menu-title-text {
    font-weight: 700 !important;
    font-size: 22px !important;
}
	
	.elementor-widget-n-menu .e-n-menu[data-layout=dropdown] .e-n-menu-title:not(.e-current) .e-n-menu-title-container .e-n-menu-title-text {
    color: #211317!important;
}
	
	.e-n-menu-title-text {
        font-size: 18px !important;
    }
}

#scroll-to-top, #lang-menu, #modal-contact-close, .icon-lang, .lang-menu-toggle{
	cursor:pointer;
}


.lang-menu {
    position: fixed;
    right: 40px;
    top: 140px;
    z-index: -1;
	opacity:0; 
	height:0; 
}

.lang-menu.visible {
	    z-index: 9999;
	opacity:1; 
	height:inherit;
}

.lang-menu-bar {
    display: flex;
    background: #fff;
    padding: 15px;
    border-radius: 50px;
	  gap: 8px;
}

.disabled-lang {
    opacity: 0.3;
    pointer-events: none;
}

.icon-lang {
    display: flex;
    background: rgba(217, 217, 217, 1);
    border-radius: 50px;
    height: 44px;
    width: 44px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    padding-top: 8px;
}

.icon-lang.selected {
	    border: 5px solid rgba(255, 202, 34, 1);
}

.four-block-home {
    max-height: 175px;
}

@media screen and (max-width:768px) {
	.lang-menu {
    top: 70px!important;
		
	}}

.four-block-home::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(to bottom, rgba(175, 175, 175, 0.8), rgba(73, 73, 73, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.griglia .griglia-int::before {
	    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(to bottom, rgba(175, 175, 175, 0.8), rgba(73, 73, 73, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.floating-social {
    position: fixed;
    top: 500px;
    rotate: 270deg;
    left: -70px;
}

.row-social-floating {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.row-social-floating a {
    font-family: Poppins;
    font-weight: 600;
    font-size: 20px;
    line-height: 20px;
    text-align: center;
    color: #fff;
}
.row-social-floating span.spacer {
    display: block;
    border-bottom: 0px;
    border-color: #ffffff;
    border-style: solid;
    width: 40px;
    margin-left: 15px;
    margin-right: 15px;
}

@media screen and (max-width:768px) {
.floating-social {
	display:none;
	}}


/* Bottoni */

a.pill-button {
  position: relative;
  display: flex;
  align-items: center;
  gap:12px;
  min-height:70px;
  min-width:233px;
  cursor: pointer;
  background: rgba(255, 251, 240, 1);
  padding: 0 25px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height:30px;
  color: #360000;
  border:1px solid #000;
  border-radius:200px;
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(50px);
  overflow:hidden;
  transition: background 1s linear;
  justify-content: center;
}

span.inner-button {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}

a.pill-button .circle {  
  transition: transform 0.24s cubic-bezier(0.65,0,.076,1), opacity 0.45s ease, left 0.24s ease;
  position: relative;
  display: block;
  left: 25px; 
  width: 26px;
  height: 26px;
  border-radius: 50px;
  background: linear-gradient(90deg, #1F020B 0%, #000000 100%);
  position:absolute;
  z-index:0;
  overflow:hidden;
  transform-origin: left center;
}


a.pill-button .button-text {
  position:relative;
  left:24px;
  transition: all 0.45s cubic-bezier(0.65,0,.076,1);
  z-index: 1;
  text-align: center;
  text-decoration:none;
}


a.pill-button:hover .circle {
  transform: scale(50); /* cresce in tutte le direzioni */
  opacity: 1;
  left: 0px;
}

a.pill-button:hover .button-text {
  color: #fff;
  left: 0px;
}


/* Preordina libro CTA */

a.pill-button.preordina-libro .circle, 
a.pill-button.donna-madonna .circle, 
a.pill-button.esplora .circle,
a.pill-button.prenota-una-consulenza .circle  {
	  background: linear-gradient(90deg, #A30133 0%, #740024 100%);
}

a.pill-button.preordina-libro {
	min-width:419px;
	justify-content: center;
}

a.pill-button.prenota-una-consulenza {
	min-width:420px;
	justify-content: center;
}

/* Donnamadonna CTA */

a.pill-button.donna-madonna {
	min-width:325px;
	justify-content: center;
		background: linear-gradient(90deg, #F1E5CA 0%, #FFFBF0 100%)!important;
}

/* Esplora CTA */

a.pill-button.esplora {
	min-width:220px;
	max-width:220px;
	justify-content: center;
	background: linear-gradient(90deg, #F1E5CA 0%, #FFFBF0 100%)!important;

}

@media screen and (max-width:768px) {
	a.pill-button.preordina-libro {
		min-width: 340px!important;}


    a.pill-button.prenota-una-consulenza {
	min-width:289px;
	justify-content: center;
}
	
}

@media screen and (max-width:600px) {
a.pill-button {
    min-height: 60px!important;
    font-size: 14px!important;
    padding: 0 15px!important;
}

#openModalForm {
    max-width:200px!important;
    min-width:200px!important;
}
}



/* SLIDER PAGINA CONTATTI */


@media screen and (min-width:768px) {
.swiper-slide {
    min-height: 500px!important;
    max-height: 500px!important;
	max-width: 400px!important;
    max-height: 500px!important;
    min-width: 400px!important;
    min-height: 500px!important;
}


img.swiper-slide-image.swiper-lazy.swiper-lazy-loaded {
    object-fit: cover;
    max-width: 400px;
    max-height: 500px;
    min-width: 400px;
    min-height: 500px;
}
}


@media screen and (max-width:768px) {
.swiper-slide {
    max-height: 360px!important;
	max-width: 310px!important;
    min-width: 310px!important;
    min-height: 360px!important;
}


img.swiper-slide-image.swiper-lazy.swiper-lazy-loaded {
    object-fit: cover;
    max-width: 310px;
    max-height: 360px;
    min-width: 310px;
    min-height: 360px;
}
}



/* MENU OVERLAY MOBILE */

/* Overlay full screen */
.menu-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease, visibility .4s ease;
    z-index: 9998;
}

/* Mostra menu */
.menu-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Pulsante X chiusura */
.menu-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 40px;
    line-height: 1;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    background: #000000!important;
}

/* Container link */
.menu-mobile-container ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.menu-mobile-container li {
    margin: 25px 0;
}

.menu-mobile-container a {
    font-family:'Poppins', sans-serif;
    font-size: 20px;
    color: #fff;
    text-decoration: none;
    font-style: Medium;
    letter-spacing: -2%;
    font-weight: 500;
    line-height:24px;
    transition: color .3s;    
}

.menu-mobile-container a:hover {
    color: #d5b77a; /* oro elegante simile allo screenshot */
}

.menu-mobile-container a.active {
    color: #d5b77a;
}

.icon-cv {
    width: 40px;
    padding: 12px;
    height: 40px;
    display: flex;
    align-items: center;
    align-content: center;
}


body.page-id-1471 footer, 
body.page-id-1704 footer {
    display: none!important;
}

.no-rtl {
    direction: ltr!important;
}


.tel-ar {
 display:none!important;
}


html[lang="ar"] .tel-ar {
 display:block!important;
}

html[lang="ar"] .tel-it {
 display:none!important;
}



/* CONSULENZA */
.border-top-glass::before {
    content: " "!important;
    position: absolute!important;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(to bottom, rgba(175, 175, 175, 0.8), rgba(73, 73, 73, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}



/* Modali Content Creator */

#open-modale-nico-de-gregorio,
#open-modale-pietrantonio-pollio,
#open-modale-angela-del-grosso,
#open-modale-giulia-polizzotto,
#open-modale-francesco,
#open-modale-stefania-dandria, 
#close-modal {
    cursor:pointer;
}

.modale-content-creator {
    position: fixed!important;
    top: 0!important;
    left: 0!important;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    z-index: -1;
    pointer-events: none;
    transition: opacity 300ms cubic-bezier(0.65, 0, .076, 1);
}

#modale-nico-de-gregorio.view-modal, 
#modale-pietrantonio-pollio.view-modal, 
#modale-angela-del-grosso.view-modal, 
#modale-giulia-polizzotto.view-modal, 
#modale-francesco.view-modal, 
#modale-stefania-dandria.view-modal{
	opacity:1!important; 
	z-index:9999!important; 
	height:100vh!important; 
        pointer-events: auto!important;
}

body.modal-view-open {
    overflow: hidden;
}


/* Articolo  */


.wp-share-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.wp-share-links a {
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.wp-share-links a:hover {
    transform: scale(1.1);
}


.post-attachments-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.gallery-main,
.gallery-side-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.gallery-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
}

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

/* Mobile */
@media (max-width: 767px) {
    .post-attachments-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-side {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr;
    }
}


.post-attachments-gallery  img {
    border-radius: 30px!important;
}

@media (min-width:768px) {
    .gallery-side {
            padding-left: 80px;
    }
.gallery-side-item {
    max-width: 75%;
}

.gallery-main {
    width: 120%;
}
}

.background-scroller {
  --overlay-opacity: 0;
}

.background-scroller::before {
  opacity: var(--overlay-opacity);
  transform: scale(
    calc(1 + var(--overlay-opacity) * 0.06)
  );

  will-change: opacity, transform;
}