@import url("/layout/css/layout_009_tecnopack.css");

/* header */
.header-icon-social .header-icon-contact-container .fa { color: #303f51; } /* colore sezione social header */
.header-icon-social .header-icon-contact-pipe { color: #303f51; } /* colore sezione social header */
.header-icon-social .header-icon-contact-container, .header-icon-social .header-icon-contact-container a { color: #303f51; } /* colore sezione social header */
.header-icon-contact-container { top: 10px !important; right: 30px; }
.header-icon-social .fa-facebook-square, .header-icon-social .fa-google-plus-square { color: #303f51; display: inline-block; visibility: visible; font-family: "FontAwesome"; font-weight: 400; }
/* header END */

/* header contenuto img */
#container-header-box {
    min-height: 95px;
    height: auto !important;
    height: 95px;
    background-color: transparent;
    background-image: url(/img/header_bg.png) !important;
    border-bottom: 2px solid #fff;
}
/* header contenuto img END */

/* menu */
section.headline-menu { background-color: #fff; }
.p7PM3-01 ul li a { color: #5d9860; }
.p7PM3-01 ul a:hover span { color: #303f51; }
.p7PM3-01 ul li a.pm3-link:hover { color: #303f51; }
.p7PM3-01 ul li a.current_mark span { color: #303f51; }
.p7PM3-01.transparent ul ul { background: #fff; }
.p7PM3-01 ul li:last-child a.menu-list-container { background-color: transparent !important; color: #303f51; padding: 15px; border-radius: 0px; }
.p7PM3-01 ul li:last-child a.menu-list-container a.current_mark span { color: #dad2c8 !important; }
.p7PM3-01 ul ul li a { color: #FFF; border-bottom: 1px solid #FFF; background-color: #303f51;}
.p7PM3-01 ul ul li a.current_mark { background-color: #303f51 !important; color: #eee; font-weight: bold; text-shadow: none; }
.p7PM3-01 ul li:last-child a.menu-list-container:hover span { color: #303f51; }
.p7PM3-01 ul li a.current_mark, .p7PM3-01 ul li a:hover.current_mark { color: #303f51 !important; background-image: none !important; }


#p7PM3_1 { left: 50px !important; top: 15px !important; }

@media (max-width: 1199px) {
#p7PM3_1 { left: 50px !important; }
}

@media (max-width: 999px) {
#p7PM3_1 { left: 150px !important; }
}

#p7PM3_2.p7PM3-01 ul li a.menu-list-container { margin: 0px 10px; }
#p7PM3_2.p7PM3-01 ul li a { color: #303f51 !important; font-size: 1.5rem !important; line-height: 1.3; font-weight: 500; white-space: break-spaces; }
#p7PM3_2.p7PM3-01 ul a:hover span { color: #5d9860; }
#p7PM3_2.p7PM3-01 ul li a.current_mark span { color: #5d9860; }
#p7PM3_2.p7PM3-01 ul li { background-image: url(/layout/images/tecnopack/menu_bg_divider_white.png); background-repeat: no-repeat;  background-position: right center;  }
#p7PM3_2.p7PM3-01 ul li a:hover.current_mark span { color: #5d9860;}
#p7PM3_2.p7PM3-01 ul li { width: 200px; }
.p7PM3_2.p7PM3-01 ul li a.current_mark, #p7PM3_2.p7PM3-01 ul li a { background-color: transparent !important; background-image: url(/layout/images/tecnopack/menu_bg_divider_white.png); background-repeat: no-repeat;  background-position: right center; padding-left: inherit; padding-right: inherit; }
.p7PM3-01 ul li a.current_mark { border-bottom: 0px solid #fff !important; }

/* menu scroller */
.navbar-fixed-top .p7PM3-01 ul li a { color: #fff; }
/* .navbar-fixed-top .p7PM3-01 ul li a.pm3-link:hover { color: #5d9860 !important; } */
.navbar-fixed-top .p7PM3-01 ul li:last-child a.menu-list-container { color: #FFF; margin-top: -16px; }
.navbar-fixed-top .p7PM3-01 ul li:last-child a.menu-list-container:hover { color: #5d9860; }
.navbar-fixed-top .p7PM3-01 ul li:last-child a.menu-list-container:hover span { color: #5d9860; }
.navbar-fixed-top .p7PM3-01 ul li a.current_mark, .p7PM3-01 ul li a:hover.current_mark { color: #5d9860 !important; background-image: none !important; }
@media (min-width: 1099px) {
.navbar-fixed-top .p7PM3-01 ul ul li a { background-color: #303f51 !important; color: #FFF; }
.navbar-fixed-top .p7PM3-01 ul ul li a:hover { background-color: #303f51 !important; color: #5d9860; }

}
/* da abilitare se il menu desktop viene visualizzato anche su diplay ipad */
@media (min-width: 768px) and (max-width: 1098px) {
.navbar-fixed-top .p7PM3-01 ul { background-color: transparent !important; }
.navbar-fixed-top { background-color: #f5f5f5; background-image: none !important; border-bottom: none !important; -webkit-box-shadow: 0px 5px 5px 0px rgba(103,104,104,0.75); -moz-box-shadow: 0px 5px 5px 0px rgba(103,104,104,0.75); box-shadow: 0px 5px 5px 0px rgba(103,104,104,0.75); }
.navbar-fixed-top img.logo-header { background-image: url(/layout/images/tecnopack/navbar-fixed-top_logo-border.png); background-repeat: repeat-x; background-position: bottom center; }
.navbar-fixed-top .p7PM3-01 ul li { background-color: #f5f5f5; }
.navbar-fixed-top .p7PM3-01 ul li a.menu-list-container { background-color: rgba(255,255,255,0.0) !important; }
.navbar-fixed-top .p7PM3-01 ul li ul li, .navbar-fixed-top .p7PM3-01 ul li ul li a { background-color: #333; }
.navbar-fixed-top .p7PM3-01 ul ul li a:hover { background-color: #303f51 !important; color: #FFF; }
.navbar-fixed-top .p7PM3-01 ul ul li a:hover.current_mark { color: #FFF; }
.navbar-fixed-top .p7PM3-01 ul ul li a.current_mark { background-color: #303f51 !important; color: #FFF; }
}
@media (min-width: 768px) and (max-width: 992px) {
.navbar-fixed-top img.logo-header-scroller { max-width:none !important; }
.navbar-fixed-top #p7PM3_1 { left: 80px !important; }
}
/* da abilitare se il menu desktop viene visualizzato anche su diplay ipad END */
/* custom */
.navbar-fixed-top .p7PM3-01 ul li a { color: #FFF; }
.navbar-fixed-top .p7PM3-01 ul li a.current_mark span { color: #FFF !important; }
.navbar-fixed-top .p7PM3-01 ul a:hover span { color: #5d9860; }
.navbar-fixed-top .p7PM3-01 a.trig_open span { color: #5d9860; }
.navbar-fixed-top .p7PM3-01 li.root_trig.trig_closed.li_current_mark, .navbar-fixed-top .p7PM3-01 li.root_trig.trig_open.li_current_mark { background-image: url(/layout/images/tecnopack/menu_bg_arrow_up_white.png); }
@media (max-width: 1099px) {
.breadcrumbDiv { margin-top: 50px;}
.navbar-fixed-top { background-color: #303f51 !important; }
}
/* custom end */
/* menu scroller end */
/* menu END */

/* list img */
h1.list-img-tpk-title, h2.list-img-tpk-title, h3.list-img-tpk-title, h4.list-img-tpk-title { font-weight: 800; }
.list-img-tpk-item { padding-right: 6px; padding-left: 6px; }
.list-img-tpk-item-container { min-height: 334px; border: 1px solid #ddd; background-size: cover; }

.list-img-tpk-item-header h1, .list-img-tpk-item-header h2, .list-img-tpk-item-header h3, .list-img-tpk-item-header h4 {
    color: #eee;
    font-size: 1.3em;
    margin-top: 0px;
    padding-left: 10px;
}

.list-img-tpk-item-header-title-container {
    background-color: #555;
    background-image: url(/img/list-img-home-arrow-bg.png);
    background-repeat: repeat-y;
    background-position: top right;
}

h2.list-img-tpk-item-header-title:after {
    content: '\f101';
    color: #eee;
    font-family: 'FontAwesome';
    position: absolute;
    display: block;
    top: 50%;
    right: 0;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    margin-right: 15px;
}

@media (min-width: 1099px) {
.navbar-fixed-top {
    background-color: #303f51;
    background-image: none !important;
    border-bottom: none !important;
    -webkit-box-shadow: 0px 5px 5px 0px rgba(103,104,104,0.75);
    -moz-box-shadow: 0px 5px 5px 0px rgba(103,104,104,0.75);
    box-shadow: 0px 5px 5px 0px rgba(103,104,104,0.75);}
.navbar-fixed-top .p7PM3-01 ul li {
    background-color: #303f51;
}
}

@media (max-width: 1199px) {
.list-img-tpk-item-container { border: none; }
}
@media (max-width: 1024px) {
.list-img-tpk-item-container { min-height: 400px; background-position: top 49px center; }
.list-img-tpk-item-header h1, .list-img-tpk-item-header h2, .list-img-tpk-item-header h3, .list-img-tpk-item-header h4 { margin-top: 0px; }
}
@media (max-width: 499px) {
.list-img-tpk-item-container { background-size: contain; }
}
h1.detail-product-tpk-title, h2.detail-product-tpk-title, h3.detail-product-tpk-title, h4.detail-product-tpk-title { font-weight: 800; }
/* list img END */

/* link color */
/* notizie scorrimento orizzontale */
.p7HLS-01 .p7hls-item a, .p7HLS-01 .hls-link { color: #303f51; }
.p7HLS-01 .p7hls-item a:hover, .p7HLS-01 .hls-link:hover { color: #45484d; }
/* contenuto sezione blog */
.blog-page a { color: #303f51; }
.blog-page a:hover { color: #dad2c8; }
/* pulsanti sezione blog */
.blog-page a.btn-u { color: #FFF; }
.blog-page a:hover.btn-u { color: #FFF; }
/* contenuto pagine generiche */


.btn { color: #fff !important;
    background-image: -webkit-linear-gradient(top,#303f51 0,#303f51 100%);
    background-image: -o-linear-gradient(top,#303f51 0,#303f51 100%);
    background-image: -webkit-gradient(linear,left top,left bottom,from(#303f51),to(#303f51));
    background-image: linear-gradient(to bottom,#303f51 0,#303f51 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#303f51', endColorstr='#303f51', GradientType=0);
    filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
    background-repeat: repeat-x;
    border-color: #fff;
 }

 .btn-u { background: #5d9860; color: #fff !important; }
 .btn-u:hover { background: #7ec082; color: #303f51 !important; }

.container-full-custom h1 a { color: #303f51; }
.container-full-custom a { color: #303f51; }
.container-full-custom a:hover { color: #303f51; }
/* contenuto scheda prodotto */
.detail-product-section-tpk a { color: #303f51; }
.detail-product-section-tpk a:hover { color: #dad2c8; }
.detail-product-section-tpk .detail-product-tpk-content-accordion a { color: #a99d9d; }
/* link titolo singolo video */
#yottie_1 .yottie-widget-video-info-title { color: rgba(51,51,51,1.00) !important; }
/* breadcrumb */
.breadcrumb a { color: #333; }
.breadcrumb a:hover { color: #333; }
/* panel */
.panel a { color: #333; }
.panel a:hover { color: #333; }
/* link color END */

.layout-009 .footer-address-custom h1, .layout-009 .footer-address-custom h2, .layout-009 .footer-address-custom h3, .layout-009 .footer-address-custom h4 {
    margin-top: 0px !important;
    font-weight: 700 !important;
    color: #dad2c8;
    line-height: 0.9em;

}
.layout-009 .footer-news-custom .footer-news-custom-border li {
    border-bottom: 1px solid #f3f1ef;
}

@media (max-width: 766px) {
.rcm-tpk-item-sidebar .pkb-section, .pkb-item img { width: 100% !important; max-width: none !important; }
}

/* Timeline Story */
:root {
    --content-width: calc(40vw - 84px);
    --margin: 20px;
    --spacing: 10px;
    --bdrs: 6px;
    --circle-size: 40px;
    --icon-size: 32px;
    --bdrs-icon: 100%;
    --color1: #5d9860;
    --color2: #7ec082;
    --color3: #57708f;
    --color4: #303f51;
    --color5: #a79580;
    --color6: #7a7064;
}


.timeline {
    box-sizing: border-box;
    padding: 0px 20px;
    display: contents;
    flex-direction: column;
    margin: var(--margin) auto;
    position: relative;
    align-items: center;
    gap: 120px; /* nuovo spazio uniforme tra gli eventi */
}

.timeline__event {
    margin-bottom: var(--spacing);
    position: relative;
    display: flex;
    margin: var(--spacing) 0;
    border-radius: var(--bdrs);
    align-self: center;
    width: 50vw;
    margin: 80px 30px; /* aumentato da var(--spacing) 0 */
}

.timeline__event__icon img {
    position: relative;
    z-index: 1;
}

.timeline__event__icon h2 {
    color: #fff;
    margin-top: 20px;
    margin-bottom: 20px;
}

.timeline__event__icon h3 {
    text-align: center;
    font-size: 20px;
    color: #fff;
    margin-top: 20px;
    margin-bottom: 20px;
}

.timeline__event__icon::before {
    content: "";
    width: 2px;
    height: calc(50% + 40px); /* o 80px */
    background: var(--color2);
    position: absolute;
    top: 0px; /* metà del valore aggiunto sopra */
    z-index: -1;
    left: 50%;
    transform: translateX(-50%);
    animation: fillTop 2.5s cubic-bezier(0.4, 0, 0.2, 1) 3.3s forwards;
}

.timeline__event:nth-child(2n+1) .timeline__event__icon::before {
    content: "";
    width: 2px;
    height: calc(50% + 40px);
    /* o 80px */
    background: var(--color2);
    position: absolute;
    top: 0px;
    /* metà del valore aggiunto sopra */
    left: 50%;
    right: auto;
    z-index: -1;
    transform: translateX(-50%);
    animation: fillTop 2.5s cubic-bezier(0.4, 0, 0.2, 1) 3.3s forwards;
}

@keyframes fillLeft {
    100% {
        right: 100%;
    }
}

@keyframes fillTop {
    100% {
        height: calc(100% + 70px);
        top: 100%;
    }
}

@keyframes fillLeftOdd {
    100% {
        left: 100%;
    }
}

.timeline__event__icon::after {
    content: "";
    width: 100%;
    height: 2px;
    background: var(--color2);
    position: absolute;
    left: 0%;
    z-index: -1;
    top: 50%;
    transform: translateY(-50%);
    animation: fillLeftOdd 2s forwards 4s ease-in-out;
}

.timeline__event:nth-child(2n+1) .timeline__event__icon::after {
    content: "";
    width: 100%;
    height: 2px;
    background: var(--color2);
    position: absolute;
    right: 0;
    z-index: -1;
    top: 50%;
    left: auto;
    transform: translateY(-50%);
    animation: fillLeft 2s forwards 4s ease-in-out;
}

.timeline__event:nth-child(2n+1) {
    flex-direction: row-reverse;
}

.timeline__event:nth-child(2n+1) .timeline__event__date {
    border-radius: 0 var(--bdrs) var(--bdrs) 0;
}

.timeline__event:nth-child(2n+1) .timeline__event__content {
    border-radius: var(--bdrs) 0 0 var(--bdrs);
}

.timeline__event__title {
    font-size: 1.8rem;
    line-height: 1;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--color1);
    letter-spacing: 1.5px;
    white-space: nowrap;
}

.timeline__event__content {
    padding: var(--spacing);
    box-shadow: 0 30px 30px -12px rgba(50, 50, 93, 0.25),
        0 18px 36px -18px rgba(0, 0, 0, 0.3),
        0 -12px 36px -8px rgba(0, 0, 0, 0.025);
    background: #fff;
    width: var(--content-width);
    border-radius: 0 var(--bdrs) var(--bdrs) 0;
}

.timeline__event__date {
    color: var(--color2);
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--color1);
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 0px;
    border-radius: var(--bdrs) 0 0 var(--bdrs);
}

.timeline__event__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color1);
    padding: var(--spacing);
    align-self: center;
    margin: 0 var(--spacing);
    background: var(--color2);
    border-radius: var(--bdrs-icon);
    width: var(--circle-size);
    box-shadow: 0 30px 30px -12px rgba(50, 50, 93, 0.25),
        0 18px 36px -18px rgba(0, 0, 0, 0.3),
        0 -12px 36px -8px rgba(0, 0, 0, 0.025);
    padding: 40px;
    height: var(--circle-size);
    position: relative;
}

.timeline__event__icon i {
    font-size: var(--icon-size);
}

.timeline__event__description {
    padding: 8px 5px;
    flex-basis: 60%;
    font-size: 1em !important;
}

.timeline__event--type2::after {
    background: var(--color4);
}

.timeline__event--type2 .timeline__event__date {
    color: var(--color3);
    background: var(--color4);
}

.timeline__event--type2:nth-child(2n+1) .timeline__event__icon::before,
.timeline__event--type2:nth-child(2n+1) .timeline__event__icon::after {
    background: var(--color3);
}

.timeline__event--type2 .timeline__event__icon {
    background: var(--color3);
    color: var(--color4);
}

.timeline__event--type2 .timeline__event__icon::before,
.timeline__event--type2 .timeline__event__icon::after {
    background: var(--color3);
}

.timeline__event--type2 .timeline__event__title {
    color: var(--color4);
}

.timeline__event--type3::after {
    background: var(--color5);
}

.timeline__event--type3 .timeline__event__date {
    color: var(--color6);
    background-color: var(--color5);
}

.timeline__event--type3:nth-child(2n+1) .timeline__event__icon::before,
.timeline__event--type3:nth-child(2n+1) .timeline__event__icon::after {
    background: var(--color6);
}

.timeline__event--type3 .timeline__event__icon {
    background: var(--color6);
    color: var(--color5);
}

.timeline__event--type3 .timeline__event__icon::before,
.timeline__event--type3 .timeline__event__icon::after {
    background: var(--color6);
}

.timeline__event--type3 .timeline__event__title {
    color: var(--color5);
}

.timeline__event:last-child .timeline__event__icon::before {
    content: none;
}

@media (max-width: 786px) {
    /* Disattiva animazioni delle linee */
    .timeline__event__icon::before,
    .timeline__event__icon::after,
    .timeline__event:nth-child(2n+1) .timeline__event__icon::before,
    .timeline__event:nth-child(2n+1) .timeline__event__icon::after {
        animation: none !important;
        transition: none !important;
    }

    .timeline__event {
        flex-direction: column;
        align-self: center;
        margin: 20px 10px;
        width: 80vw;
    }

    .timeline__event__content {
        width: 100%;
    }

    .timeline__event__icon {
        border-radius: var(--bdrs) var(--bdrs) 0 0;
        width: 100%;
        margin: 0;
        box-shadow: none;
        padding: 0px;
    }

    .timeline__event__date {
        border-radius: 0;
        padding: var(--spacing);
    }

    .timeline__event:nth-child(2n+1) {
        flex-direction: column;
        align-self: center;
    }

    .timeline__event:nth-child(2n+1) .timeline__event__date {
        border-radius: 0;
        padding: var(--spacing);
    }

    .timeline__event:nth-child(2n+1) .timeline__event__icon {
        border-radius: var(--bdrs) var(--bdrs) 0 0;
        margin: 0;
    }
}

/* Timeline Story END */

.btn-lavori {
    color: #FFF !important;
    display: inline-block;
    padding: 1.6rem 12rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #303f51;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    margin: 1.5rem 0; /* aggiunge spazio sopra e sotto */
}

.btn-lavori:hover {
    background: #5d9860;
}