/*
  Theme Name: veneta
  Theme URI: https://venetacucine.be/
  Version: 1.0.0
  Template: Divi
  Author: designer@arpeggio.be
  Author URI: https://www.arpeggio.be/fr
  Description: Veneta Cucine
  Text Domain: veneta
  License: GNU General Public License v2 or later
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* DEBUG */
html body #page-container .et_pb_section_0.et_pb_section {
    background-color: transparent !important;
}

.blurb-fix .et_pb_blurb_content {
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.entry-content table:not(.variations) {
    border: 0px solid #eee !important;
}
.entry-content tr td {
    border-top: 0px solid #eee !important;
}


/* BOUTON */

.et-db #et-boc .et-l .et_pb_menu ul li a.dipi-cta-button span:after, header.et-l--header .et_pb_button.dipi-cta-button span:after, #top-header #et-secondary-menu .et_pb_button.dipi-cta-button span:after, header#main-header .et_pb_button.dipi-cta-button span:after {
    margin-left: 10px;
}
body #page-container .et_pb_section .et_pb_button:after {
    padding-left: 3px !important;
}


/* MENU */

#mobile_menu2 li {
  position: relative;
  border-bottom: 1px solid #dc0814;
}

#mobile_menu2 li a {
  display: block;
  padding-right: 30px;
}

#mobile_menu2 li a::after {
  font-family: 'ETmodules';
  content: '\35';
  color: #dc0814;
  font-size: 1em;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  transition: right 0.3s ease;
}

#mobile_menu2 li a:hover::after {
  right: 5px;
}

/* Ajouter une icône devant les éléments du sous-menu Divi */
.et_pb_menu li li a:after {
    font-family: 'ETMODULES';
    content: '\35';
    /* text-align: center; */
    vertical-align: middle;
    margin-right: 10px;
    /* padding: 12px; */
    color: #fff;
    font-size: 1em;
    position: absolute;
    right: 0;
  transform: translateX(-50%);
  transition: color 0.3s ease, right 0.3s ease;
}


.et_pb_menu li li a:hover::after {
  color: #dc0814;

}
#menu-item-718 {
  border-top: 1px solid #dc0814;
  border-bottom: 1px solid #dc0814;
}

/* --- */

.nav li ul {
    position: absolute;
    padding: 0px 0;
    z-index: 9999;
    width: 240px;
    background: #fff;
    visibility: hidden;
    opacity: 0;
    border-top: none !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
    -moz-box-shadow: 0 2px 5px rgba(0,0,0,.1);
    -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
    -webkit-transform: translateZ(0);
    text-align: left;
}

.nav li li {
    padding: 0 0px;
    margin: 0;
}

.et_pb_menu .et-menu>li {
    padding-left: 32px;
    padding-right: 16px;
}

.et-menu li li a {
    padding: 16px 20px !important;
    width: 100% !important;
}

.et_pb_menu .et-menu-nav>ul ul {
    padding: 0px 0;
    text-align: left;
}
.et-menu-nav ul.et-menu li, #top-menu li {
    padding-right: 0px !important;
}


.et-menu .menu-item-has-children>a:first-child:after {
    color: #dc0814 !important;
}

/* --- */
ul.sub-menu.veneta-style li {
  position: relative;
}

ul.sub-menu.veneta-style li a {
  display: block;
  padding-right: 40px;
}

ul.sub-menu.veneta-style li::after {
  font-family: 'FontAwesome';
  font-style: normal;
  font-weight: normal;
  speak: never;
  content: '\f105';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
}


/* ============================================
   FUTURA PT MEDIUM – Tous les titres du site
   Divi 5 + Divi Pixel modules
   ============================================ */

/* --- Balises H natives --- */
h1, h2, h3, h4, h5, h6 {
  font-family: "futura-pt", sans-serif !important;
  font-weight: 500 !important;
  font-style: normal !important;
}

/* --- Modules Texte Divi 5 --- */
.et_pb_text h1,
.et_pb_text h2,
.et_pb_text h3,
.et_pb_text h4,
.et_pb_text h5,
.et_pb_text h6 {
  font-family: "futura-pt", sans-serif !important;
  font-weight: 500 !important;
  font-style: normal !important;
}



/* --- Titres des modules Divi 5 (blurb, CTA, etc.) --- */
.et_pb_module h1,
.et_pb_module h2,
.et_pb_module h3,
.et_pb_module h4,
.et_pb_module h5,
.et_pb_module h6,
.et_pb_module .et_pb_title,
.et_pb_module .et-pb-title,
.et_pb_module .et_pb_module_header,
.dipi-faq-title span {
  font-family: "futura-pt", sans-serif !important;
  font-weight: 500 !important;
  font-style: normal !important;
}

/* --- Titres spécifiques Divi 5 --- */
.et_pb_blurb_content h4,
.et_pb_blurb_title,
.et_pb_pricing_heading h2,
.et_pb_pricing_heading h3,
.et_pb_testimonial_title,
.et_pb_team_member_name,
.et_pb_portfolio_title,
.et_pb_tab h2,
.et_pb_accordion_item h5 {
  font-family: "futura-pt", sans-serif !important;
  font-weight: 500 !important;
  font-style: normal !important;
}

/* --- Modules Divi Pixel --- */
.dpwl-heading h1,
.dpwl-heading h2,
.dpwl-heading h3,
.dpwl-heading h4,
.dpwl-heading h5,
.dpwl-heading h6,
.dpwl-module h1,
.dpwl-module h2,
.dpwl-module h3,
.dpwl-module h4,
.dpwl-module h5,
.dpwl-module h6,
[class*="dpwl-"] h1,
[class*="dpwl-"] h2,
[class*="dpwl-"] h3,
[class*="dpwl-"] h4,
[class*="dpwl-"] h5,
[class*="dpwl-"] h6,
[class*="dipi-"] h1,
[class*="dipi-"] h2,
[class*="dipi-"] h3,
[class*="dipi-"] h4,
[class*="dipi-"] h5,
[class*="dipi-"] h6 {
  font-family: "futura-pt", sans-serif !important;
  font-weight: 500 !important;
  font-style: normal !important;
}

/* --- Titres dans les sections et rows Divi --- */
.et_pb_section h1,
.et_pb_section h2,
.et_pb_section h3,
.et_pb_section h4,
.et_pb_section h5,
.et_pb_section h6,
.et_pb_row h1,
.et_pb_row h2,
.et_pb_row h3,
.et_pb_row h4,
.et_pb_row h5,
.et_pb_row h6 {
  font-family: "futura-pt", sans-serif !important;
  font-weight: 500 !important;
  font-style: normal !important;
}

/* ============================================
   CLASSE CUSTOM – Futura PT Medium
   Paragraphes & texte dans modules Divi
   ============================================ */

.arp-font,
.arp-font p,
.arp-font span,
.arp-font li,
.arp-font a,
.arp-font div {
  font-family: "futura-pt", sans-serif !important;
  font-weight: 500 !important;
  font-style: normal !important;
}


/* BOUTON */

.et_pb_bg_layout_light.et_pb_button:hover, .et_pb_bg_layout_light .et_pb_button:hover {
    background-color: rgba(0, 0, 0, 0);
}
.dipi_filterable_grid_0 .dipi-fg-readmore-button.et_pb_button::after {
    font-family: "ETmodules" !important;
    content: "\35" !important; /* icône flèche Divi */
}

/* =========================================================
   CARD STORY OVERLAY
   Classe à mettre sur le module Filterable Grid
   ========================================================= */

/* Le bloc de la card prend toute la hauteur */
.card-story-overlay .grid-item {
    position: relative;
    height: 100%;
}

/* Le lien principal prend toute la card */
.card-story-overlay .grid-item > a {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

/* Fallback si DiviPixel utilise directement .img-container */
.card-story-overlay .grid-item > .img-container {
    display: block;
    width: 100%;
    height: 100%;
}

/* Zone image */
.card-story-overlay .img-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.card-story-overlay .img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Contenu en overlay */
.card-story-overlay .dipi-grid-item-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none; /* laisse le clic passer vers le lien */
}


/* Dégradé */
.card-story-overlay .img-container::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(109, 105, 91, 0.95) 0%,
        rgba(109, 105, 91, 0.85) 25%,
        rgba(109, 105, 91, 0.1) 50%,
        rgba(109, 105, 91, 0) 95%
    );
}

/* Le contenu reste visuellement au-dessus */
.card-story-overlay .dipi-grid-item-title,
.card-story-overlay .dipi-grid-item-text,
.card-story-overlay .dipi-fg-readmore-button-wrapper,
.card-story-overlay .dipi-grid-item-content > * {
    position: relative;
    z-index: 2;
}


/* =========================================================
   LOOP-CARD / Column = Grille cuisines 
   ========================================================= */

.loop-card .et_pb_image {
    overflow: hidden;
}

.loop-card .et_pb_image img {
    transform: scale(1.08);
    transition: transform 0.6s ease;
}

.loop-card:hover .et_pb_image img {
    transform: scale(1);
}

.loop-card .et_pb_button {
    transition: transform 0.6s ease, opacity 0.6s ease;
}

/* Couleur normale */
.loop-card .et_pb_button,
.loop-card .et_pb_button:link,
.loop-card .et_pb_button:visited {
    color: #38393c !important;
}

/* Hover via la colonne */
.loop-card:hover .et_pb_button,
.loop-card:hover .et_pb_button:link,
.loop-card:hover .et_pb_button:visited {
    color: #dc0814 !important;
}

.loop-card:hover a.et_pb_button {
    color: #dc0814 !important;
}

body #page-container .et_pb_section .et_pb_button_0_tb_body:after, body #page-container .et_pb_section .et_pb_button_1_tb_body:after, body #page-container .et_pb_section .et_pb_button_2_tb_body:after
 { margin-left: 0.5em !important; }



/* =========================================================
   SLIDER cuisines 
   ========================================================= */

.et-pb-arrow-prev:before {
    content: "4";
    background-color: #dc0814;
    font-size: 42px;
    padding-bottom: 2px;
    border-radius: 4px;
	color: #fff;
}

.et-pb-arrow-next:before {
    content: "5";
    background-color: #dc0814;
    font-size: 42px;
    padding-bottom: 2px;
    border-radius: 4px;
	color: #fff;
}


.et_pb_bg_layout_light .et-pb-controllers a {
    background-color: rgba(0, 0, 0, .3);
}
.et_pb_bg_layout_light .et-pb-controllers .et-pb-active-control {
    background-color: #dc0814;
}

/* =========================================================
   CARD STORY / Column = 
   ========================================================= */

/* === FX-COL-HOVER — ZOOM BG === */
.fx-col-hover {
  overflow: hidden;
  position: relative;
}

.fx-col-hover::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--col-bg, inherit);
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
  transform: scale(1);
  will-change: transform;
}

.fx-col-hover:hover::before {
  transform: scale(1.08);
}

.fx-col-hover .et_pb_module {
  position: relative;
  z-index: 1;
}

/* === FX-COL-HOVER — BOUTON === */
.fx-col-hover .et_pb_button {
  transition: transform 0.3s ease, border-bottom-color 0.3s ease;
}

/* .fx-col-hover:hover .et_pb_button {
  transform: translateY(-6px);
  border-bottom-color: #ff0000 !important;
} */


/* =========================================
   ARP — Scroll Reveal Text
   Usage : ajouter .arp-scroll-reveal sur le module
   Variantes : .arp-scroll-reveal--blur | --color | (défaut = fade)
   ========================================= */

.arp-word {
  display: inline-block;
  transition: opacity 0.5s ease, filter 0.5s ease, color 0.5s ease;
  will-change: opacity, filter, color;
}

/* --- FADE (défaut) --- */
.arp-word--fade {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.arp-word--fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- BLUR --- */
.arp-word--blur {
  opacity: 0.2;
  filter: blur(6px);
}
.arp-word--blur.is-visible {
  opacity: 1;
  filter: blur(0);
}

/* --- COLOR FILL (gris → couleur) --- */
.arp-word--color {
  color: #aaaaaa;
}
.arp-word--color.is-visible {
  color: inherit; /* récupère la couleur du parent = celle définie dans Divi */
}



/* =========================================
   ARP — Blog cards
   Class : arp-card-btn-bottom / arp-card-hover
   ========================================= */

/* --- Bouton aligné en bas --- */
.arp-card-btn-bottom .grid-item {
  display: flex;
  flex-direction: column;
}
.arp-card-btn-bottom .dipi-grid-item-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.arp-card-btn-bottom .dipi-fg-readmore-button-wrapper {
  margin-top: auto;
}

/* --- Hover synchronisé image + bouton --- */
.arp-card-hover .grid-item .img-container {
  overflow: hidden;
}
.arp-card-hover .grid-item .dipi-fg-zoom-out img {
  transform: scale(1);
  transition: transform 0.6s ease;
}
.arp-card-hover .grid-item:hover .dipi-fg-zoom-out img {
  transform: scale(1);
}
.arp-card-hover .grid-item:hover .dipi-fg-readmore-button {
  color: #dc0814 !important;
}

/* =========================================
   Time line
   ========================================= */
.dipi_horizontal_timeline .dipi_horizontal_timeline_item_0 .ribbon-ico.ribbon-ico-circle {
    background-color: #dc0814 !important;
}

.dipi_horizontal_timeline .dipi_horizontal_timeline_item_0 .ribbon-ico.ribbon-ico-circle.active {
    background-color: #dc0814 !important;
}




/* =========================================
   MENU FOOTER
   ========================================= */
.arp-menu-footer-vertical .et_pb_menu__menu .et-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.arp-menu-footer-vertical .et_pb_menu__menu .et-menu > li {
  display: block;
  width: 100%;
}

/* Supprime l'animation underline Divi */
.arp-menu-footer-vertical .et_pb_menu__menu .et-menu > li > a::before,
.arp-menu-footer-vertical .et_pb_menu__menu .et-menu > li > a::after {
  display: none !important;
}

/* Flèche avant chaque item */
.arp-menu-footer-vertical .et_pb_menu__menu .et-menu > li > a span::before {
  content: "›";
  margin-right: 6px;
  font-size: 1.1em;
  line-height: 1;
  color: #dc0814;
}

/* Couleur rouge au survol */
.arp-menu-footer-vertical .et_pb_menu__menu .et-menu > li > a:hover span {
  color: #dc0814;
  transition: color 0.2s ease;
}

.arp-menu-footer-vertical .et-menu > li {
    padding-left: 0 !important;
    padding-right: 16px !important;
}


/* =========================================
   FORMULAIRE
   ========================================= */

/* Niveau 1 : wrapper principal en flex */
#gform_wrapper_2 {
    display: flex;
    flex-direction: column;
}

#gform_wrapper_2 .gform_heading {
    order: 2;
    margin-top: 10px;
}

#gform_wrapper_2 > form {
    order: 1;
}

/* Niveau 2 : formulaire interne en flex */
#gform_wrapper_2 form {
    display: flex;
    flex-direction: column;
}

#gform_wrapper_2 .gform_body {
    order: 1;
}

#gform_wrapper_2 .gform-footer {
    order: 2;
}

/* RGPD */
.gform-theme--framework .gfield_consent_description:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)) {
    border: none !important;
    padding: 0px !important;
}


/* =========================================
   Tableau
   ========================================= */
.dipi-at-panel-text ul {
    padding-left: 20px;
    list-style: none !important;
}

.dipi-at-panel-text ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    list-style: none !important;
}

.dipi-at-panel-text ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #e20000;
    font-weight: 700;
}


/* =========================================
   FAQ
   ========================================= */
.dipi-faq-entry .dipi-faq-title {
    background-color: #fff !important;
}

/* =========================================
   Slider cuisine custom
   ========================================= */

.dipi_blog_slider_1 .dipi-blog-post {
    padding-top: 0px !important;
    padding-right: 0px !important;
    padding-bottom: 0px !important;
    padding-left: 0px !important;
}
/* On passe le <a> dipi-blog-post en flexbox */
.dipi-blog-post-custom-layout .dipi-blog-post {
    display: flex;
flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
}

/* L'image prend toute la largeur sur sa propre ligne */
.dipi-blog-post-custom-layout .dipi-blog-post .dipi-entry-featured-image-url {
    width: 100%;
}

/* post-content prend l'espace restant */
.dipi-blog-post-custom-layout .dipi-blog-post .dipi-post-content {
    flex: 1;
}

/* bottom-content se place à côté, centré verticalement */
.dipi-blog-post-custom-layout .dipi-blog-post .dipi-bottom-content {
    flex-shrink: 0;
    align-self: center;
}

/* Cacher dipi-bottom-content en tablette et smartphone */
@media (max-width: 980px) {
    .dipi-blog-post-custom-layout .dipi-blog-post .dipi-bottom-content {
        display: none;
    }
}