/*
Theme Name:   GeneratePress Child - FlyingSugar
Theme URI:    https://flyingsugar.com
Description:  Child theme for FlyingSugar.com with custom components and post types
Author:       FlyingSugar Team
Template:     generatepress
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  generatepress-child
*/

html {
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
body {
	-webkit-overflow-scrolling: touch;
}

/* Blog archive + Recent Posts: one column, horizontal-friendly images (no crop) */
.blog-archive-page .blog-archive-grid {
	grid-template-columns: 1fr !important;
}
.blog-archive-page .brand-image,
.blog-archive-page .blog-card-placeholder {
	aspect-ratio: 16 / 9 !important;
}
.single-recent-posts-grid.blog-archive-grid {
	display: grid !important;
	grid-template-columns: 1fr !important;
}
.single-recent-posts-grid .blog-card .brand-image,
.single-recent-posts-grid .blog-card-placeholder {
	aspect-ratio: 16 / 9 !important;
}

.blog-archive-page .blog-archive-title {
	text-transform: uppercase;
}

/* Homepage: 30px desktop, 32px mobile (titolo visibile sotto header) */
body.home #main,
body.home .site-main,
body.home main {
	padding-top: 30px !important;
}
@media (max-width: 768px) {
	body.home,
	body.home #main,
	body.home .site-main,
	body.home main {
		padding-top: 32px !important;
	}
}

/* Compare Tools page: 50px desktop, 48px mobile */
.comparison-tools-page #main,
.comparison-tools-page .site-main,
.comparison-tools-page main,
.comparison-tools-page .comparison-tools-main {
	padding-top: 50px !important;
}
@media (max-width: 768px) {
	.comparison-tools-page #main,
	.comparison-tools-page .site-main,
	.comparison-tools-page main,
	.comparison-tools-page .comparison-tools-main {
		padding-top: 48px !important;
	}
}

/* Full-page templates: main content below fixed header */
.legal-page #main,
.legal-page .site-main,
.legal-page .legal-main {
	padding-top: 60px !important;
}
.about-us-page #main,
.about-us-page .site-main,
.about-us-page .about-us-main {
	padding-top: 20px !important;
}
.blog-archive-page #main,
.blog-archive-page .site-main,
.blog-archive-page .blog-archive-main {
	padding-top: 50px !important;
}
.add-your-tool-page main,
.add-your-tool-page .addtool-wrap {
	padding-top: 70px !important;
}
.saved-tools-page #main,
.saved-tools-page .site-main,
.saved-tools-page main,
.saved-tools-page .saved-tools-main,
.saved-tools-page .custom-header-component + main,
.saved-tools-page .custom-header-component + * {
	padding-top: 70px !important;
}
@media (max-width: 768px) {
	.legal-page #main,
	.legal-page .site-main,
	.legal-page .legal-main {
		padding-top: 60px !important;
	}
	.about-us-page #main,
	.about-us-page .site-main,
	.about-us-page .about-us-main {
		padding-top: 28px !important;
	}
	.blog-archive-page #main,
	.blog-archive-page .site-main,
	.blog-archive-page .blog-archive-main {
		padding-top: 40px !important;
	}
	.add-your-tool-page main,
	.add-your-tool-page .addtool-wrap {
		padding-top: 72px !important;
	}
	.saved-tools-page #main,
	.saved-tools-page .site-main,
	.saved-tools-page main,
	.saved-tools-page .saved-tools-main,
	.saved-tools-page .custom-header-component + main,
	.saved-tools-page .custom-header-component + * {
		padding-top: 60px !important;
	}
}

/* Interactive Preview: 0 on desktop, 40px on mobile */
body.interactive-preview-page #main,
body.interactive-preview-page .site-main,
body.interactive-preview-page main,
body.interactive-preview-page .interactive-preview-main {
	padding-top: 0 !important;
}
@media (max-width: 768px) {
	body.interactive-preview-page #main,
	body.interactive-preview-page .site-main,
	body.interactive-preview-page main,
	body.interactive-preview-page .interactive-preview-main {
		padding-top: 40px !important;
	}
}

/* Category page – Related: "Explore all categories" in uppercase like other links */
.related-categories-section .related-categories-list li:last-child .related-categories-link {
	text-transform: uppercase;
}

/* About Us page – title in uppercase */
.about-us-page .about-us-title {
	text-transform: uppercase;
}

/* Single post (articolo): nascondi breadcrumb BLOG + link (ridondante con Recent Posts) */
body.single-post .rank-math-breadcrumb,
body.single-post [class*="breadcrumb"] {
	display: none !important;
}
