/*
Theme Name: Andrea Sermoneta
Theme URI: https://www.arteficina.it
Description: Premium Photography Portfolio Theme
Version: 1.5.10
Tags: yellow, white, responsive-layout, custom-header, custom-background, threaded-comments, translation-ready, editor-style, custom-menu
Author: Jacopo
Author URI: https://arteficina.it
License: GNU General Public License
License URI: http://themeforest.net/licenses/regular_extended
Text Domain: photome
Template: photome
*/

@import "../photome/style.css";

html .home .breadcrumbs{display: none!important;}

.breadcrumbs{
padding: 0 30px 0 30px; font-size:12px; 
margin-bottom:20px;
}

.breadcrumbs .fa-solid{font-size:10px;}


:root {
  --sermoneta-verde-link: #39734a;
}

/* Link nei testi e link alle policy, anche in inglese */
:is(
  :is(#page_content_wrapper, .entry-content, main) :is(p, li, blockquote) a[href],
  a[href*="/privacy-policy"],
  a[href*="/cookie-policy"]
):not(:where(nav a, .menu a, .button, .wp-element-button, :has(img, svg))) {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, currentColor 55%, transparent);
  text-underline-offset: 0.2em;
  transition: color 180ms ease, text-decoration-color 180ms ease;

  &:is(:hover, :focus-visible) {
    color: var(--sermoneta-verde-link);
    text-decoration-color: currentColor;
  }
}


/* BLOG - Portfolio associato nella sidebar */

/* Portfolio - Filtri compatti su mobile */
@media only screen and (max-width: 767px) {

.testohpb{display:none;}


    html ul#portfolio_wall_filters {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 4px 12px;
        padding: 0 10px !important;
        margin: 0 0 15px !important;
    }

    html ul#portfolio_wall_filters li {
        float: none !important;
        display: inline-flex;
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.3 !important;
    }

    html ul#portfolio_wall_filters li a {
        font-size: 14px !important;
        line-height: 1.3 !important;
        padding: 5px 0 !important;
        margin: 0 !important;
    }

    html ul#portfolio_wall_filters li .separator {
        display: none !important;
    }
}


.sermoneta-related-portfolio {
    width: 100%;
    margin-bottom: 30px;
}

.sermoneta-related-portfolio a {
    display: block;
    text-decoration: none;
    text-align: center;
}

.sermoneta-related-portfolio img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    transition: opacity .3s ease;
}

.sermoneta-related-portfolio-label {
    display: block;
    padding: 12px 0;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.sermoneta-related-portfolio a:hover img {
    opacity: .7;
}


/* BLOG - Gallery senza bordi e spaziature */
body.single-post .gallery .gallery-item {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

body.single-post .gallery .gallery-icon {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}

body.single-post .gallery .gallery-icon a {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}

body.single-post .gallery img {
    display: block;
    width: 100%;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

body.single-post .gallery .gallery-caption {
    display: none !important;
}


html body.admin-bar .header_style_wrapper {
padding-top: 0px;
}

.page-template-blog_g .page_content_wrapper{padding: 0;}

html #page_caption {
background-color: #ffffff;
padding-top: 30px;
padding-bottom: 30px;
}

.sermoneta-project-taxonomies {
    font-size: 14px;
}

.post_type_icon a i{width: 100%;}

html body.sermoneta-home-overlay.sq-header-scrolled .header_style_wrapper .top_bar.hasbg:not(.scroll){background: none!important;}
#portfolio_filter_wrapper .post_detail{display: none!important;}

@media (min-width: 1025px) {
    html #main_menu.nav {
        position: relative;
    }

    html #main_menu.nav .sq-menu-indicator {
        position: absolute;
        top: 0;
        left: -2px;
        width: 0;
        height: 2px;
        background: currentColor;
        pointer-events: none;
        opacity: 0;
        transform: translate3d(0, 0, 0);
        transition:
            transform 450ms cubic-bezier(.22, 1, .36, 1),
            width 450ms cubic-bezier(.22, 1, .36, 1),
            opacity 200ms ease;
        z-index: 10;
    }
}

@media (min-width: 1025px) {

    #main_menu.nav > li.sq-current > a {
        opacity: 1 !important;
    }

    #main_menu.nav > li.sq-current > a { opacity: 1 !important; }

}


.top_bar{border-bottom: none!important; }

/* Gradient limited to the real header: do not stretch the header over the slideshow. */
body.sermoneta-home-overlay .header_style_wrapper {
    inset: auto !important;
    background: transparent !important;
}
body.sermoneta-home-overlay .header_style_wrapper .top_bar.hasbg:not(.scroll) {
    position: relative;
    background: transparent !important;
}
body.sermoneta-home-overlay .header_style_wrapper .top_bar.hasbg:not(.scroll)::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0,0,0,.65), rgba(0,0,0,0));
}

/* Homepage header: white over photographs, black after scrolling. */
@media (min-width: 1025px) {
    body.sermoneta-home-overlay:not(.sq-header-scrolled) #main_menu.nav .sq-menu-indicator {
        background-color: #fff !important;
    }
    body.sermoneta-home-overlay.sq-header-scrolled #main_menu.nav .sq-menu-indicator {
        background-color: #111 !important;
    }
    body.sermoneta-home-overlay:not(.sq-header-scrolled) #main_menu.nav > li > a {
        color: #fff !important;
    }
    body.sermoneta-home-overlay.sq-header-scrolled #main_menu.nav > li > a {
        color: #111 !important;
    }
    body.sermoneta-home-overlay.sq-header-scrolled .top_bar {
        background-color: #fff !important;
    }
    body.sermoneta-home-overlay.sq-header-scrolled .top_bar::before { display: none; }
}
/* Reading progress, anchored to the top of the viewport. */
#sermoneta-scroll-progress{
    position:fixed;top:0;left:0;width:100%;height:3px;
    margin:0;padding:0;border:0;background:#000;
    transform:scaleX(0);transform-origin:left center;
    pointer-events:none;z-index:100000;will-change:transform;
}


#logo_wrapper img{image-rendering: auto!important;}

/* FIX PORTFOLIO WIDE */
body.page-template-portfolio-4-wide #page_main_content.sidebar_content.full_width,
body.page-template-portfolio-4-wide-php #page_main_content.sidebar_content.full_width,
body #page_content_wrapper.wide #page_main_content {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body #page_content_wrapper.wide .inner,
body #page_content_wrapper.wide .inner_wrapper {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body #page_content_wrapper.wide #portfolio_filter_wrapper {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}


html #toTop{right:20px!important; bottom:20px!important;}


.errore img {
  max-width: 450px !important;
}

.sermoneta-portfolio-single {
	max-width: 1200px;
	margin: 0 auto;
}

.portfolio-header {
	text-align: center;
	margin-bottom: 40px;
}

.portfolio-title {
	margin-bottom: 10px;
}

.portfolio-subtitle {
	font-size: 18px;
	margin-bottom: 15px;
}

.portfolio-taxonomies {
	font-size: 13px;
	line-height: 1.8;
	margin: 15px 0;
}

.portfolio-taxonomies a {
	text-decoration: none;
}

.portfolio-meta-label {
	font-weight: 600;
}

.portfolio-details {
	margin-top: 10px;
	font-size: 14px;
}

.portfolio-featured-image {
	margin-bottom: 40px;
}

.portfolio-featured-image img {
	width: 100%;
	height: auto;
	display: block;
}

.sermoneta-portfolio-single .portfolio-content {
	max-width: 900px;
	margin: 0 auto 40px;
}

.portfolio-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px;
	margin-top: 40px;
}

.portfolio-gallery-item {
	margin: 0;
}

.portfolio-gallery-item img {
	width: 100%;
	height: auto;
	display: block;
}

.portfolio-gallery-item figcaption {
	font-size: 12px;
	line-height: 1.4;
	margin-top: 6px;
}

.portfolio-credits {
	max-width: 900px;
	margin: 40px auto 0;
	font-size: 13px;
}

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

	.portfolio-gallery {
		grid-template-columns: repeat(2, 1fr);
	}

}

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

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

}
/* Shared header alignment: share, language, fullscreen, side menu. */
#logo_wrapper{position:relative}
#logo_wrapper .logo_align{font-size:0;line-height:0}
#logo_wrapper #logo_right_button{
    display:flex!important;align-items:center!important;justify-content:flex-end;
    top:50%!important;bottom:auto!important;transform:translateY(-50%)!important;
    height:32px;gap:14px;line-height:1;margin-top:0!important;margin-bottom:0!important;
}
#logo_right_button .post_share_wrapper,
#logo_right_button .header_cart_wrapper,
#logo_right_button .sermoneta-header-tools{
    display:flex;align-items:center;justify-content:center;
    height:32px;line-height:1;margin:0;float:none;flex-shrink:0;
}
#logo_right_button .sermoneta-header-tools{gap:13px}
#logo_right_button .sermoneta-language-switcher{
    display:flex;align-items:center;height:32px;line-height:1;margin:0;padding:0;
}
#logo_right_button #page_share,
#logo_right_button .sermoneta-fullscreen{
    display:inline-flex;align-items:center;justify-content:center;
    width:25px;height:32px;line-height:1;margin:0;padding:0;vertical-align:middle;
}
#logo_right_button i{line-height:1;margin:0;vertical-align:middle}
#logo_right_button #mobile_nav_icon{
    display:inline-block!important;position:relative;top:0!important;
    margin:0!important;float:none;flex-shrink:0;align-self:center;
}
/* A single browser-fullscreen button replaces the old PhotoMe control. */
#logo_wrapper .view_fullscreen_wrapper{display:none!important}
#logo_wrapper #sermoneta_socials{
    position:absolute;top:50%;left:30px;transform:translateY(-50%);
    display:flex;align-items:center;gap:18px;height:32px;line-height:1;
    margin:0!important;padding:0;
}
#sermoneta_socials a{display:inline-flex;align-items:center;justify-content:center;height:32px;line-height:1}
/* One mobile row in both transparent and scrolled header states. */
@media(max-width:960px){
    body .header_style_wrapper .top_bar{
        height:88px!important;padding:0 16px!important;box-sizing:border-box;
    }
    body .header_style_wrapper .top_bar #logo_wrapper{
        display:grid!important;grid-template-columns:minmax(0,1fr) auto auto 25px;
        align-items:center;column-gap:10px;width:100%;min-width:0;
        height:88px;min-height:88px;box-sizing:border-box;
        padding:14px 0!important;border:0!important;text-align:left;
    }
    body .header_style_wrapper .top_bar #logo_wrapper .logo_container{
        grid-column:1;grid-row:1;justify-self:start;display:block!important;
        width:100%!important;max-width:120px;min-width:0;height:auto!important;margin:0!important;
    }
    body .header_style_wrapper .top_bar #logo_wrapper .logo_align{display:block;line-height:0;font-size:0}
    body .header_style_wrapper .top_bar #logo_wrapper .logo_wrapper{margin:0!important;float:none}
    body .header_style_wrapper .top_bar #logo_wrapper #custom_logo img,
    body .header_style_wrapper .top_bar #logo_wrapper #custom_logo_transparent img{
        display:block;width:auto!important;height:auto!important;
        max-width:100%!important;max-height:60px!important;margin:0!important;
    }
    body .header_style_wrapper .top_bar #logo_wrapper #logo_right_button,
    body .header_style_wrapper .top_bar #logo_wrapper #logo_right_button .sermoneta-header-tools{
        display:contents!important;position:static!important;transform:none!important;
        top:auto!important;right:auto!important;bottom:auto!important;height:auto!important;
    }
    body .header_style_wrapper .top_bar #logo_wrapper #sermoneta_socials{
        grid-column:2;grid-row:1;position:static!important;transform:none!important;
        display:flex!important;align-items:center;flex-wrap:nowrap;gap:7px;
        width:auto;height:32px;margin:0!important;padding:0!important;
    }
    body .header_style_wrapper .top_bar #logo_wrapper #sermoneta_socials a{width:20px;height:32px;flex:0 0 20px}
    body .header_style_wrapper .top_bar.hasbg:not(.scroll) #logo_wrapper #sermoneta_socials,
    body .header_style_wrapper .top_bar.hasbg:not(.scroll) #logo_wrapper .sermoneta-language-switcher{color:#fff}
    body .header_style_wrapper .top_bar #logo_wrapper .sermoneta-language-switcher{
        grid-column:3;grid-row:1;justify-self:end;white-space:nowrap;gap:5px;height:32px;
    }
    body .header_style_wrapper .top_bar #logo_wrapper #mobile_nav_icon{
        grid-column:4;grid-row:1;justify-self:end;align-self:center;
    }
    body .header_style_wrapper .top_bar #logo_wrapper .post_share_wrapper,
    body .header_style_wrapper .top_bar #logo_wrapper .header_cart_wrapper,
    body .header_style_wrapper .top_bar #logo_wrapper .sermoneta-fullscreen,
    body .header_style_wrapper .top_bar #logo_wrapper .view_fullscreen_wrapper,
    body .header_style_wrapper .top_bar #menu_wrapper{display:none!important}
}

/* Override the homepage transparent-header rules even when PhotoMe does not
   add its .scroll class (e.g. in some Safari configurations). */
body.sermoneta-home-overlay.sq-header-scrolled .header_style_wrapper .top_bar.hasbg:not(.scroll) {
    background: #fff !important;
    background-color: #fff !important;
}
body.sermoneta-home-overlay.sq-header-scrolled .header_style_wrapper .top_bar.hasbg:not(.scroll)::before {
    display: none !important;
}
body.sermoneta-home-overlay.sq-header-scrolled .top_bar.hasbg:not(.scroll) #logo_right_button,
body.sermoneta-home-overlay.sq-header-scrolled .top_bar.hasbg:not(.scroll) #sermoneta_socials,
body.sermoneta-home-overlay.sq-header-scrolled .top_bar.hasbg:not(.scroll) #sermoneta_socials a {
    color: #111 !important;
}

@media only screen and (min-width: 1100px) {
  #logo_right_button {
    right: 30px!important;
  }
}


html #wrapper .header_style_wrapper {
    background: linear-gradient(
        to bottom,
        rgba(51, 51, 51, 0.8) 0%,
        rgba(51, 51, 51, 0) 100%
    )!important;
}


.sermoneta-language-switcher a {
    font-weight: 700 !important;
    opacity: 1 !important;
}

.sermoneta-language-switcher a:hover {
    opacity: .75 !important;
}

.sermoneta-language-switcher .current-language {
    font-weight: 400 !important;
    opacity: .65 !important;
}

.sermoneta-language-switcher .language-unavailable {
    font-weight: 400 !important;
    opacity: .30 !important;
}


.wpcf7 .cf7-row {
    display: flex;
    gap: 15px;
}

.wpcf7 .cf7-col {
    flex: 1;
    min-width: 0;
}

.wpcf7 .cf7-col input {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .wpcf7 .cf7-row {
        flex-direction: column;
        gap: 0;
    }
}
/* Blog gallery captions */
body.single-post .gallery .gallery-caption,
body.single-post .wp-block-gallery figcaption { display: none !important; }
.sermoneta-blog-lightbox .mfp-bottom-bar { display: block !important; visibility: visible !important; }
.sermoneta-blog-lightbox .mfp-title { display: block !important; visibility: visible !important; opacity: 1 !important; color: #fff !important; font-size: 14px; font-weight: 400; line-height: 1.5; text-align: center; padding: 0 15px; }
.sermoneta-blog-lightbox .mfp-title:empty,
.sermoneta-blog-lightbox .mfp-counter { display: none !important; }
