/*
 Theme Name:     Divi Child Theme
 Theme URI:      http://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Elegant Themes
 Author URI:     http://www.elegantthemes.com
 Template:       Divi
 Version:        1.0.0
*/
@import url("../Divi/style.css");

/* =Theme customization starts here
------------------------------------------------------- */
:root {
    --color-primary-300: #3aaa35;
    --color-primary-400: #4a783c;
    --color-secondary-400: #7b4d35;
    --color-tertiary-400: #ffca00;
    --color-tertiary-600: #f59c00;
    --color-tertiary-700: #f08262;
    --color-quaternary-400: #8bb8d9;
    --color-quaternary-800: #0f7987;
    --color-quinary-400: #cf89a9;
}

/* fonts */
@font-face {
    font-family: "roc-grotesk", sans-serif;
    font-style: normal;
    font-weight: 500;
}

body {
    font-family: "roc-grotesk", sans-serif;
    font-weight: 500;
    padding-top: 72px;
}

a {
    color: #ffffff;
}

header.et-l--header {
    position: fixed;
    z-index: 99999;
}

html body.page-template-default,
html body.post-template-default {
    background-image: url("/wp-content/uploads/2025/08/line-4-white.webp"),
        url("/wp-content/uploads/2025/07/bg-default.jpg");
    background-position: top center, center !important;
    background-repeat: repeat-y, no-repeat !important;
    background-size: auto, cover !important;
    background-attachment: scroll, fixed !important;
}

#main-content {
    background: transparent;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    padding-bottom: 0 !important;
}

strong {
    font-weight: 700 !important;
}

ul,
ol {
    padding-bottom: 0 !important;
}

/* -- fonts -- */

/* menu */
.et-menu,
.et_pb_menu__menu,
.et-menu-nav {
    width: 100%;
}
.et_pb_menu .et_pb_menu__menu > nav > ul {
    margin: 0;
}

.et_pb_menu .et_pb_menu__menu > nav > ul > li {
    margin-top: 0;
    padding: 0 20px;
}

.et_pb_menu .et_pb_menu__menu > nav > ul > li:first-child {
    padding-left: 0;
}

.et_pb_menu .et_pb_menu__menu > nav > ul > li:last-child {
    padding-right: 0;
}

.menu-margin-r {
    margin-right: auto !important;
}

.menu-margin-l {
    margin-left: auto !important;
}

.et_mobile_menu {
    position: fixed;
    top: 64px !important;
    height: calc(100vh - 92px);
    border-top: 0px;
    padding: 0;
}

.et_pb_menu .et_pb_menu__menu > nav > ul > li > a {
    padding-bottom: 0;
}

#menu-main-menu {
    align-items: center;
}

.et_pb_menu__menu #menu-main-menu > nav > ul > li {
    margin-top: 0;
    line-height: 1;
}

.et_pb_menu--with-logo .et_pb_menu__menu > nav > ul > li > a {
    padding: 0;
}

.menu-sticky-inside ul {
    padding: 0;
    display: flex;
    align-items: flex-start;
    gap: 32px;
    overflow-x: auto;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.menu-sticky-inside ul::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
}

.menu-sticky-inside ul li,
.menu-sticky-inside ul li a {
    color: #ffffff;
    list-style: none;
    padding: 0;
    min-width: max-content;
}

/* -- menu -- */

/* Breadcrumbs */
.fbc-page .fbc-wrap .fbc-items {
    display: flex;
    align-items: center;
    gap: 1.5px;
}

#page-container .fbc-page .fbc-wrap .fbc-items li {
    padding: 0;
    font-family: "roc-grotesk", sans-serif;
    font-weight: 500;
}

.fbc-page .fbc-wrap .fbc-items li a {
    text-decoration: underline;
}

.fbc-page .fbc-wrap .fbc-items .fbc-separator {
    margin: 0 4px;
}

.fbc-page .fbc-wrap .fbc-items li {
    display: inline-flex;
    align-items: center;
}

.fbc-page .fbc-wrap .fbc-items li:first-child:before {
    content: "";
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 10px solid white;
    margin-right: 6px;
}

/* -- Breadcrumbs -- */

/* Content */
img {
    width: auto;
}

.et_pb_toggle_close .et_pb_toggle_title:before {
    background: #ffffff;
    border-radius: 50%;
    margin-right: 0;
}

.et_pb_accordion .et_pb_toggle .et_pb_toggle_title:before {
    right: 0;
}

/* -- Content -- */

/* Custom Tables */
.nutrition-table-wrapper {
    border-radius: 16px;
    margin: auto;
    overflow-x: auto;
}

.nutrition-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 12px 10px; /* Spazio orizzontale + verticale */
    table-layout: fixed;
}

.nutrition-table td {
    background-color: #ffffff;
    padding: 20px;
    font-size: 1.5rem;
    border: none;
}

.nutrition-table .label {
    border-radius: 80px 12px 12px 80px;
    width: 85%;
    color: var(--color-quaternary-800);
}

.nutrition-table .value {
    text-align: right;
    white-space: nowrap;
    border-radius: 12px 80px 80px 12px;
    width: 15%;
    color: var(--color-quaternary-800);
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    border: 0 !important;
    margin-bottom: 0 !important;
}

.info-table td {
    padding: 8px 12px;
    vertical-align: top;
    border: 0 !important;
    padding: 32px 0 0 !important;
}

.info-table .label {
    font-weight: bold;
    white-space: nowrap;
    width: 30%;
    font-size: 1.75rem;
}

.info-table .value {
    width: 70%;
}
/* -- Custom Tables -- */

/* Custom button */

/* -- Custom button -- */

/* Content view */
.fruits-and-vegetables.pt-cv-view .pt-cv-carousel-caption {
    position: initial;
}

.fruits-and-vegetables.all-products .pt-cv-page {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.fruits-and-vegetables.all-products .pt-cv-ifield {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.fruits-and-vegetables.all-products .pt-cv-ifield .pt-cv-title {
    margin-top: auto !important;
}

.fruits-and-vegetables .pt-cv-ifield .pt-cv-title a {
    margin: 0 !important;
}

.fruits-and-vegetables .pt-cv-readmore {
    width: 100%;
}

.pt-cv-scrollable .pt-cv-content-item {
    margin-bottom: 0;
}

.fruits-and-vegetables .pt-cv-thumbnail {
    width: auto;
    max-height: 240px;
}

.fruits-and-vegetables .pt-cv-content-item {
    border-radius: 32px;
    background-color: var(--color-primary-300);
    display: flex;
    flex-direction: column;
}

.fruits-and-vegetables .pt-cv-content-item .pt-cv-carousel-caption {
    margin-top: auto;
}

/* Frutta esotica */
.fruits-and-vegetables .pt-cv-content-item[data-pid="1218"],
.fruits-and-vegetables .pt-cv-content-item[data-pid="788"] {
    background-color: var(--color-tertiary-700);
}

/* Banane */
.fruits-and-vegetables .pt-cv-content-item[data-pid="1216"],
.fruits-and-vegetables .pt-cv-content-item[data-pid="834"] {
    background-color: var(--color-tertiary-600);
}

/* Pere */
.fruits-and-vegetables .pt-cv-content-item[data-pid="1222"],
.fruits-and-vegetables .pt-cv-content-item[data-pid="838"] {
    background-color: var(--color-primary-300);
}

/* Ananas */
.fruits-and-vegetables .pt-cv-content-item[data-pid="1212"],
.fruits-and-vegetables .pt-cv-content-item[data-pid="830"] {
    background-color: var(--color-tertiary-400);
}

/* Piccoli frutti */
.fruits-and-vegetables .pt-cv-content-item[data-pid="1220"],
.fruits-and-vegetables .pt-cv-content-item[data-pid="1086"] {
    background-color: var(--color-quinary-400);
}

/* Avocado */
.fruits-and-vegetables .pt-cv-content-item[data-pid="1214"],
.fruits-and-vegetables .pt-cv-content-item[data-pid="836"] {
    background-color: var(--color-quaternary-400);
}

.fruits-and-vegetables .pt-cv-meta-fields {
    display: none;
}

.pt-cv-wrapper .fruits-and-vegetables .pt-cv-content-item {
    padding: 24px;
    min-height: 320px;
}

.fruits-and-vegetables.pt-cv-view .pt-cv-href-thumbnail,
.fruits-and-vegetables .pt-cv-title a {
    pointer-events: none;
}

.pt-cv-scrollable .pt-cv-carousel {
    padding-bottom: 40px;
}

.pt-cv-view .pt-cv-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pt-cv-view .pt-cv-carousel-indicators li {
    width: 12px;
    height: 12px;
    transition: width 0.3s ease-in-out, height 0.3s ease-in-out;
    background: var(--color-secondary-400);
    box-shadow: none;
}

.pt-cv-view .pt-cv-carousel-indicators li.active {
    width: 32px;
    background: var(--color-primary-300);
}

.pt-cv-readmore,
.pt-cv-readmore:hover {
    transition: all 0.3s ease-in-out;
}
.pt-cv-wrapper .fruits-and-vegetables .row {
    margin: 0;
}

.pt-cv-view .carousel-control.left,
.pt-cv-view .carousel-control.right {
    top: 50%;
    transform: translateY(-50%);
}

.pt-cv-view .carousel-control.right {
    right: -40px;
}

.pt-cv-view .carousel-control.left {
    left: -16px;
    right: initial;
}

.pt-cv-wrapper .carousel-control .glyphicon {
    border-radius: 8px;
    background: #fff;
    color: #1a1214;
    box-shadow: none;
    transition: all 0.3s ease-in-out;
}

.pt-cv-view .carousel-control:hover span {
    box-shadow: 0px 3px 4px #1a1214;
    color: #1a1214;
    transition: all 0.3s ease-in-out;
}

@media (min-width: 768px) {
    .pt-cv-wrapper .fruits-and-vegetables .pt-cv-content-item {
        width: calc(50% - 24px);
    }
    .fruits-and-vegetables.all-products .pt-cv-content-item {
        width: calc(33.333% - 24px);
    }
    .pt-cv-wrapper .fruits-and-vegetables .row {
        display: flex;
        gap: 24px;
    }
    .pt-cv-wrapper .fruits-and-vegetables .pt-cv-content-item {
        min-height: 420px;
    }
}

@media (min-width: 992px) {
    .pt-cv-wrapper .fruits-and-vegetables .pt-cv-content-item {
        width: calc(33.333% - 24px);
    }
    .pt-cv-wrapper .fruits-and-vegetables .row {
        display: flex;
        gap: 24px;
    }
}

@media (max-width: 992px) {
    #page-container [id^="pt-cv-view"] h4.pt-cv-title a {
        font-size: 2rem !important;
    }
    .pt-cv-view .carousel-control.right {
        right: -32px;
    }

    .pt-cv-view .carousel-control.left {
        left: -8px;
    }
}

@media (max-width: 767px) {
    .pt-cv-view .carousel-control.right {
        right: -12px;
    }

    .pt-cv-view .carousel-control.left {
        left: -12px;
    }
}

/* -- Content view -- */

/* CF7 */

/* -- CF7 -- */

@media screen and (max-width: 1280px) {
}

@media (max-width: 1080px) {
    .nutrition-table .label {
        width: 75%;
    }

    .nutrition-table .value {
        width: 25%;
    }
}

@media screen and (min-width: 981px) {
    .box-experiment .et_pb_main_blurb_image {
        width: 100%;
    }

    .box-experiment .et_pb_image_wrap img {
        height: 230px;
        width: 100%;
        object-fit: cover;
    }
}

@media screen and (max-width: 767px) {
    .menu-sticky-inside ul {
        gap: 16px;
        padding: 0 5%;
    }
    .menu-sticky-inside ul li,
    .menu-sticky-inside ul li a {
        font-size: 14px;
    }
    .fruits-and-vegetables .pt-cv-thumbnail {
        max-height: 160px;
    }

    #page-container [id^="pt-cv-view"] h4.pt-cv-title a {
        font-size: 1.75rem !important;
    }
}

@media screen and (max-width: 600px) {
    .pt-cv-scrollable .pt-cv-carousel {
        padding-bottom: 24px;
    }
    html body.page-template-default,
    html body.post-template-default {
        background-image: url("/wp-content/uploads/2025/07/bg-default.jpg");
        background-position: center !important;
        background-repeat: repeat !important;
        background-size: auto, cover !important;
        background-attachment: fixed !important;
    }
}

@media screen and (max-width: 479px) {
}

@media (max-width: 680px) {
    .nutrition-table td {
        display: block;
        width: 100%;
        border-radius: 20px !important;
        text-align: left !important;
        font-size: 1rem;
    }

    .nutrition-table tr {
        display: block;
        margin-bottom: 10px;
    }

    .nutrition-table .value {
        margin-top: 6px;
    }

    .nutrition-table .label {
        width: 100%;
        font-weight: 700;
    }

    .nutrition-table .value {
        width: 100%;
    }

    .info-table,
    .info-table tbody,
    .info-table tr,
    .info-table td {
        display: block;
        width: 100%;
    }

    .info-table .label {
        margin-top: 0;
        font-size: 1.25rem;
        width: 100%;
    }

    .info-table .value {
        padding-top: 0 !important;
        width: 100%;
    }
}
