Newer
Older
tonitalia-theme / assets / css / singlepage.css
/* Titoli homepage: tipografia esplicita (colori da Customizer / tema). */
.singlepage-section__title,
body.page:not(.twentyseventeen-front-page) .entry-header .entry-title.tents-home-title-typography {
	font-family: "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif;
	font-size: 1.25rem;
	font-weight: 300;
	letter-spacing: normal;
	line-height: 1.4;
	text-transform: none;
}

@media screen and (min-width: 48em) {
	.singlepage-section__title,
	body.page:not(.twentyseventeen-front-page) .entry-header .entry-title.tents-home-title-typography {
		font-size: 1.625rem;
	}
}

body.page:not(.twentyseventeen-front-page) .tents-page-header {
	margin-bottom: 1.5em;
}

.singlepage-section {
	position: relative;
	padding: 80px 0;
}

.singlepage-section--no-content {
	min-height: 650px;
}

.singlepage-section--has-bg {
	color: #fff;
}

/* Se l'utente sceglie un colore testo, forziamo anche i link a ereditarlo */
.singlepage-section--has-text-color a {
	color: inherit;
}

/* Twenty Seventeen imposta colori espliciti sugli heading: forza l'ereditarietà */
.singlepage-section--has-text-color .singlepage-section__title,
.singlepage-section--has-text-color h1,
.singlepage-section--has-text-color h2,
.singlepage-section--has-text-color h3,
.singlepage-section--has-text-color h4,
.singlepage-section--has-text-color h5,
.singlepage-section--has-text-color h6 {
	color: inherit;
}

/* Override specifico per regole del tema padre tipo `.home.blog .entry-title` */
.home.blog .singlepage-section--has-text-color .entry-title,
.home.blog .singlepage-section--has-text-color .entry-title a,
.singlepage-section--has-text-color .entry-title,
.singlepage-section--has-text-color .entry-title a {
	color: inherit !important;
}

.singlepage-section__inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 20px;
}

.singlepage-section__bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center center;
	opacity: 1 !important;
	filter: none !important;
	mix-blend-mode: normal !important;
	z-index: 0;
}

.singlepage-section__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #000;
	opacity: 1;
	z-index: 0;
}

.singlepage-section__content {
	position: relative;
	z-index: 1;
}

.singlepage-section--has-banner {
	padding-bottom: 60px;
}

.singlepage-section__banner {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 60px;
	z-index: 2;
	width: 100%;
	background: var(--tents-fixed-header-bg, #326a34);
	color: #ffffff;
	padding: 24px 20px;
	text-align: center;
}

.singlepage-section__banner-text {
	margin: 0;
	font-weight: 700;
	font-size: clamp(1.67rem, 1.33rem + 2vw, 2.67rem);
	text-transform: uppercase;
	line-height: 1.3;
}

.singlepage-section__buttons {
	margin-top: 20px;
}

.singlepage-section__buttons .button {
	display: inline-block;
	margin-right: 12px;
	margin-bottom: 12px;
}

.singlepage-section__stack-buttons {
	position: absolute;
	top: 44px;
	right: max(20px, calc((100% - 1180px) / 2 + 20px));
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 14px;
	width: max-content;
	max-width: min(300px, 42vw);
}

.singlepage-section__stack-button {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	height: 44px;
	min-height: 44px;
	padding: 0 20px;
	border-radius: 2px;
	background-color: var(--section-button-bg);
	color: var(--section-button-text);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.singlepage-section--has-text-color .singlepage-section__stack-button {
	color: var(--section-button-text);
}

.singlepage-section__stack-button:hover,
.singlepage-section__stack-button:focus {
	background-color: color-mix(in srgb, var(--section-button-bg) 70%, #ffffff 30%);
	color: var(--section-button-text);
}

/* Hamburger menu: always collapsed until toggled */
/* Header navigation / hamburger */
.singlepage-nav {
	text-align: right;
}

/* Bottone custom sempre visibile (non influisce sulla logica JS del tema padre) */
.singlepage-menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	background: none;
	border: 0;
	padding: 0.75em 1em;
}

/* Contenitore menù: visibile di default (evitiamo di nasconderlo lato CSS
 * per non rischiare di perdere il menù se lo script non gira).
 * Si può comunque aggiungere una leggera transizione di opacità.
 */
.singlepage-menu-container {
	opacity: 1;
	visibility: visible;
	max-height: none;
	overflow: visible;
	transform: none;
	transition: opacity 180ms ease-out;
	display: flex;
	align-items: center; /* allinea verticalmente menu e icone */
	justify-content: space-between;
}

.singlepage-social-links {
	display: inline-flex;
	align-items: center;
	gap: 0.75em;
	margin-left: 1em;
}

.singlepage-social-link .icon {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.singlepage-social-link--facebook {
	color: #1877f2;
}

.singlepage-social-link--instagram {
	color: #e4405f;
}

.singlepage-social-link--youtube {
	color: #ff0000;
}

/* Sticky: usiamo la classe nativa site-navigation-fixed applicata dallo script di Twenty Seventeen */
.navigation-top.site-navigation-fixed {
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	z-index: 1000;
}

body.has-tents-fixed-header #masthead {
	margin: 0;
	padding: 0;
	background: transparent;
}

body.has-tents-fixed-header-hidden-branding .site-branding {
	display: none;
}

body.has-tents-fixed-header .site-content-contain {
	position: relative;
	z-index: 5;
	padding-top: var(--tents-fixed-header-height, 120px);
	background-color: #fff;
}

body.has-tents-fixed-header #content,
body.has-tents-fixed-header #primary,
body.has-tents-fixed-header #main {
	position: relative;
	z-index: 1;
	float: none;
	width: 100%;
	max-width: none;
}

body.has-tents-fixed-header .singlepage-section {
	position: relative;
	z-index: 1;
	color: #222;
}

body.has-tents-fixed-header .navigation-top,
body.has-tents-fixed-header .navigation-top.site-navigation-fixed {
	position: fixed;
	top: 0;
	bottom: auto;
	left: 0;
	right: 0;
	height: auto;
	z-index: 1000;
	width: 100%;
	background: var(--tents-fixed-header-bg, #fff);
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

body.admin-bar.has-tents-fixed-header .navigation-top,
body.admin-bar.has-tents-fixed-header .navigation-top.site-navigation-fixed {
	top: 32px;
}

body.has-tents-fixed-header .navigation-top .wrap {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

body.has-tents-fixed-header .singlepage-nav {
	text-align: left;
}

body.has-tents-fixed-header .singlepage-nav > .menu-toggle {
	display: none !important;
}

.singlepage-menu-toggle .icon-close {
	display: none;
}

.singlepage-nav.is-open .singlepage-menu-toggle .icon-bars {
	display: none;
}

.singlepage-nav.is-open .singlepage-menu-toggle .icon-close {
	display: inline-block;
}

.tents-fixed-header {
	background: var(--tents-fixed-header-bg, #fff);
	color: var(--tents-fixed-header-text, #ffffff);
}

.tents-fixed-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: start;
	gap: 18px;
	max-width: 1180px;
	margin: 0 auto;
	padding: 10px 20px;
}

.tents-fixed-header__left,
.tents-fixed-header__right {
	display: flex;
	min-width: 0;
}

.tents-fixed-header__left {
	align-self: start;
	justify-self: start;
	align-items: flex-start;
	justify-content: flex-start;
}

.tents-fixed-header__right {
	display: inline-flex;
	flex-direction: column;
	align-items: stretch;
	align-self: start;
	justify-self: end;
	gap: 8px;
	min-width: 0;
	width: max-content;
}

.tents-fixed-header__cta-row {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-height: 36px;
}

.tents-fixed-header__brand {
	display: flex;
	align-self: center;
	justify-self: center;
	justify-content: center;
	align-items: center;
	min-width: 0;
}

.tents-fixed-header__logo-link {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.tents-fixed-header__logo {
	display: block;
	width: auto;
	height: auto;
	max-width: min(420px, 70vw);
	max-height: var(--tents-fixed-header-logo-max-height, 58px);
}

.tents-fixed-header .tents-fixed-header__site-title {
	color: var(--tents-fixed-header-text, #ffffff);
	font-size: 1.1rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.tents-fixed-header__actions {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.tents-fixed-header__social {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	gap: 4px;
}

.tents-fixed-header__social-icons {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	gap: 4px;
}

.tents-fixed-header__social-label {
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
}

.tents-fixed-header .singlepage-social-link,
.tents-fixed-header .singlepage-social-link--facebook,
.tents-fixed-header .singlepage-social-link--instagram,
.tents-fixed-header .singlepage-social-link--youtube {
	color: inherit;
}

.tents-fixed-header .singlepage-social-link .icon {
	fill: currentColor;
	width: 18px;
	height: 18px;
}

.tents-fixed-header__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 8px 14px;
	border-radius: 2px;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.tents-fixed-header .tents-fixed-header__cta--primary,
body.has-tents-fixed-header .navigation-top .tents-fixed-header .tents-fixed-header__cta--primary {
	background-color: var(--tents-fixed-header-primary-cta-bg, #4d963d);
	color: var(--tents-fixed-header-primary-cta-text, #fff);
}

.tents-fixed-header .tents-fixed-header__cta--primary:hover,
body.has-tents-fixed-header .navigation-top .tents-fixed-header .tents-fixed-header__cta--primary:hover,
.tents-fixed-header .tents-fixed-header__cta--primary:focus,
body.has-tents-fixed-header .navigation-top .tents-fixed-header .tents-fixed-header__cta--primary:focus {
	background-color: color-mix(in srgb, var(--tents-fixed-header-primary-cta-bg, #4d963d) 70%, #ffffff 30%);
	color: var(--tents-fixed-header-primary-cta-text, #fff);
}

.tents-fixed-header .tents-fixed-header__cta--secondary,
body.has-tents-fixed-header .navigation-top .tents-fixed-header .tents-fixed-header__cta--secondary {
	background-color: var(--tents-fixed-header-secondary-cta-bg, transparent);
	border: none;
	color: var(--tents-fixed-header-secondary-cta-text, #ffffff);
}

.tents-fixed-header .tents-fixed-header__cta--secondary:hover,
body.has-tents-fixed-header .navigation-top .tents-fixed-header .tents-fixed-header__cta--secondary:hover,
.tents-fixed-header .tents-fixed-header__cta--secondary:focus,
body.has-tents-fixed-header .navigation-top .tents-fixed-header .tents-fixed-header__cta--secondary:focus {
	background-color: color-mix(in srgb, var(--tents-fixed-header-secondary-cta-bg, transparent) 70%, #ffffff 30%);
	border: none;
	color: var(--tents-fixed-header-secondary-cta-text, #ffffff);
}

body.has-tents-fixed-header .singlepage-menu-container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 20px 10px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	justify-content: center;
}

body.has-tents-fixed-header .singlepage-menu-container .menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

body.has-tents-fixed-header .singlepage-menu-container .menu > li > a,
body.has-tents-fixed-header .navigation-top .singlepage-menu-container .menu > li > a {
	color: var(--tents-fixed-header-text, #ffffff);
}

body.has-tents-fixed-header .singlepage-menu-container .sub-menu a,
body.has-tents-fixed-header .navigation-top .singlepage-menu-container .sub-menu a {
	color: #222222;
}

body.has-tents-fixed-header .singlepage-menu-container .sub-menu li:hover > a,
body.has-tents-fixed-header .singlepage-menu-container .sub-menu li.focus > a,
body.has-tents-fixed-header .singlepage-menu-container .sub-menu a:hover,
body.has-tents-fixed-header .singlepage-menu-container .sub-menu a:focus {
	color: #ffffff;
}

@media (max-width: 600px) {
	.singlepage-section {
		padding: 60px 0;
	}

	.singlepage-section__stack-buttons {
		right: max(16px, calc((100% - 1180px) / 2 + 20px));
		max-width: min(240px, 58vw);
	}

	.singlepage-section__stack-button {
		height: 40px;
		min-height: 40px;
		padding: 0 14px;
		font-size: 0.875rem;
	}
}

@media (max-width: 782px) {
	body.admin-bar.has-tents-fixed-header .navigation-top,
	body.admin-bar.has-tents-fixed-header .navigation-top.site-navigation-fixed {
		top: 46px;
	}
}

@media (max-width: 900px) {
	.tents-fixed-header__inner {
		grid-template-columns: 1fr;
		grid-template-areas:
			"brand"
			"left"
			"right";
		gap: 10px 14px;
	}

	.tents-fixed-header__brand {
		grid-area: brand;
	}

	.tents-fixed-header__left {
		grid-area: left;
		justify-self: center;
	}

	.tents-fixed-header__right {
		grid-area: right;
		justify-self: center;
		align-items: center;
	}
}

@media (max-width: 767px) {
	.tents-fixed-header__inner {
		padding: 8px 16px;
	}

	.tents-fixed-header__logo {
		max-width: min(320px, 82vw);
	}

	.tents-fixed-header__right {
		gap: 8px;
	}

	.tents-fixed-header__social-label,
	.tents-fixed-header__cta--secondary {
		display: none;
	}

	body.has-tents-fixed-header .singlepage-menu-container {
		display: none;
		padding: 0 16px 14px;
	}

	body.has-tents-fixed-header .singlepage-nav.is-open .singlepage-menu-container {
		display: block;
	}

	body.has-tents-fixed-header .singlepage-menu-container .menu {
		display: block;
	}
}