/*
Theme Name: Corporate-child
Theme URI: https://www.situs.it/
Description: Child theme personalizzato di Themify Corporate per I pasticci di Nico.
Author: I pasticci di Nico
Template: themify-corporate
Version: 2.0.5
Text Domain: ipn-corporate-child
*/

:root {
	--ipn-ink: #201e1b;
	--ipn-terracotta: #965f49;
	--ipn-cream: #fffdf8;
	--ipn-soft: #f5efe7;
	--ipn-cake: #e8b5b0;
	--ipn-fabric: #add9e6;
	--ipn-paper: #eee889;
	--ipn-other: #bddfc4;
	--ipn-shadow: 0 12px 32px rgba(76, 56, 42, .10);
}

body.ipn-site {
	margin: 0;
	background: var(--ipn-cream);
	color: var(--ipn-ink);
	font-family: "Nunito Sans", sans-serif;
	font-size: 16px;
	line-height: 1.55;
}

.ipn-site *,
.ipn-site *::before,
.ipn-site *::after { box-sizing: border-box; }
.ipn-site a { color: inherit; text-decoration: none; }
.ipn-site img { display: block; max-width: 100%; height: auto; }
.ipn-site svg { overflow: visible; }
.ipn-site button,
.ipn-site summary { font: inherit; }
.ipn-site .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.ipn-header {
	position: relative;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 96px;
	padding: 0 clamp(24px, 6vw, 112px);
	background: rgba(255, 253, 248, .98);
	border-bottom: 1px solid #eee7dc;
}
.ipn-brand {
	color: var(--ipn-terracotta) !important;
	font: 600 clamp(2rem, 3vw, 3rem)/1 "Cormorant Garamond", serif;
	letter-spacing: -.025em;
	white-space: nowrap;
}
.ipn-nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 31px); }
.ipn-nav a {
	position: relative;
	padding: 12px 0 9px;
	font-size: 1rem;
	font-weight: 700;
	white-space: nowrap;
}
.ipn-nav a::after {
	content: "";
	position: absolute;
	inset: auto 0 3px;
	height: 2px;
	background: #bca18e;
	transform: scaleX(0);
	transition: transform .28s ease;
}
.ipn-nav a:hover::after,
.ipn-nav a:focus-visible::after,
.ipn-nav a.is-current::after { transform: scaleX(1); }
.ipn-mobile-menu { display: none; position: relative; }
.ipn-site a:focus-visible,
.ipn-site summary:focus-visible { outline: 3px solid #6e9f80; outline-offset: 4px; }

.ipn-home-hero {
	position: relative;
	display: grid;
	place-items: center;
	min-height: clamp(440px, 31vw, 560px);
	padding: 52px clamp(22px, 20vw, 350px);
	background-color: #faf4ea;
	overflow: hidden;
}
.ipn-home-hero__image {
	position: absolute;
	z-index: 0;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
.ipn-home-hero::after {
	content: "";
	position: absolute;
	z-index: 1;
	inset: 8% 26%;
	background: radial-gradient(ellipse, rgba(255,253,248,.84), rgba(255,253,248,.18) 58%, rgba(255,253,248,0) 76%);
	pointer-events: none;
}
.ipn-home-hero__copy { position: relative; z-index: 2; max-width: 760px; text-align: center; animation: ipn-copy-in .75s ease-out both; }
.ipn-home-hero h1 {
	margin: 0;
	color: #171612;
	font: 600 clamp(3.25rem, 5vw, 5.4rem)/.91 "Cormorant Garamond", serif;
	letter-spacing: -.035em;
	text-wrap: balance;
}
.ipn-home-hero p { margin: 22px auto 0; max-width: 680px; font-size: clamp(1.05rem, 1.35vw, 1.3rem); font-weight: 700; line-height: 1.45; text-wrap: balance; }

.ipn-home-categories {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(18px, 2.6vw, 38px);
	padding: 44px clamp(24px, 9vw, 150px) 68px;
	background: #fffdf9;
}
.ipn-home-category {
	display: grid;
	place-items: center;
	align-content: center;
	gap: 10px;
	min-height: clamp(190px, 18vw, 258px);
	padding: 28px 20px;
	border-radius: 48px;
	box-shadow: 0 9px 24px rgba(76,56,42,.07);
	animation: ipn-menu-pop .55s both;
	transition: transform .32s cubic-bezier(.2,.8,.2,1), box-shadow .32s, filter .32s;
}
.ipn-home-category:nth-child(2) { animation-delay: .07s; }
.ipn-home-category:nth-child(3) { animation-delay: .14s; }
.ipn-home-category:nth-child(4) { animation-delay: .21s; }
.ipn-home-category--dolci { background: var(--ipn-cake); }
.ipn-home-category--stoffa { background: var(--ipn-fabric); }
.ipn-home-category--carta { background: var(--ipn-paper); }
.ipn-home-category--altro { background: var(--ipn-other); }
.ipn-home-category svg { width: clamp(68px,7vw,104px); height: clamp(68px,7vw,104px); fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .34s; }
.ipn-home-category strong { font: 600 clamp(1.65rem,2.3vw,2.45rem)/1 "Cormorant Garamond", serif; letter-spacing: -.025em; }
.ipn-home-category:hover { transform: translateY(-9px); box-shadow: 0 20px 34px rgba(76,56,42,.14); filter: saturate(1.06); }
.ipn-home-category:hover svg { transform: translateY(-3px) rotate(-3deg) scale(1.05); }

.ipn-latest { padding: 88px clamp(24px,8vw,132px) 112px; background: var(--ipn-soft); }
.ipn-section-title { margin: 0 0 42px; text-align: center; }
.ipn-section-title span,
.ipn-eyebrow { display: block; margin-bottom: 6px; color: var(--ipn-terracotta); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.ipn-section-title h2 { margin: 0; font: 600 clamp(3rem,5vw,5rem)/.95 "Cormorant Garamond", serif; letter-spacing: -.035em; }

.ipn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.ipn-card { overflow: hidden; margin: 0; background: #fff; border: 1px solid #eee5dc; border-radius: 28px; box-shadow: var(--ipn-shadow); transition: transform .3s, box-shadow .3s; }
.ipn-card:hover { transform: translateY(-7px); box-shadow: 0 20px 38px rgba(72,52,39,.15); }
.ipn-card__link { display: block; height: 100%; }
.ipn-card__media { overflow: hidden; background: #eee7df; }
.ipn-card__media > img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .45s; }
.ipn-card:hover .ipn-card__media > img { transform: scale(1.035); }
.ipn-card__body { padding: 24px 24px 28px; }
.ipn-card time { display: block; color: #756a62; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ipn-card h2 { margin: 10px 0 12px; font: 600 clamp(1.75rem,2.4vw,2.35rem)/1.02 "Cormorant Garamond", serif; letter-spacing: -.02em; }
.ipn-card p { margin: 0; color: #6b625c; line-height: 1.58; }
.ipn-card__open { display: inline-block; margin-top: 18px; font-weight: 800; border-bottom: 2px solid var(--ipn-cake); }
.ipn-category-badge { display: inline-flex; margin-bottom: 9px; padding: 5px 10px; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ipn-category-badge--dolci { background: #f1cbc6; color: #75483f; }
.ipn-category-badge--stoffa { background: #c9e8f0; color: #356775; }
.ipn-category-badge--carta { background: #f1ed9f; color: #6d681f; }
.ipn-category-badge--altro { background: #d2e8d5; color: #416c4a; }
.ipn-image-placeholder { display: grid; place-items: center; width: 100%; aspect-ratio: 4/3; }
.ipn-image-placeholder--dolci { background: var(--ipn-cake); }
.ipn-image-placeholder--stoffa { background: var(--ipn-fabric); }
.ipn-image-placeholder--carta { background: var(--ipn-paper); }
.ipn-image-placeholder--altro { background: var(--ipn-other); }
.ipn-image-placeholder svg { width: 35%; height: 35%; fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }

.ipn-pill-link { display: flex; width: max-content; max-width: 100%; align-items: center; gap: 10px; margin: 36px auto 0; padding: 12px 22px; border: 1px solid #cbbcad; border-radius: 999px; background: #fffdf8; font-weight: 800; transition: transform .25s, background .25s; }
.ipn-pill-link:hover { transform: translateY(-2px); background: #f4e6d8; }

.ipn-category-hero {
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 38px;
	min-height: 330px;
	padding: 64px clamp(24px,11vw,180px);
	border-bottom: 1px solid rgba(80,60,40,.12);
}
.ipn-category-hero--dolci { background: linear-gradient(120deg, var(--ipn-cake), #f9e3df); }
.ipn-category-hero--stoffa { background: linear-gradient(120deg, var(--ipn-fabric), #e8f5f8); }
.ipn-category-hero--carta { background: linear-gradient(120deg, var(--ipn-paper), #fbf9d7); }
.ipn-category-hero--altro { background: linear-gradient(120deg, var(--ipn-other), #e8f4ea); }
.ipn-category-hero::after { content: ""; position: absolute; width: 360px; height: 360px; right: -75px; top: -110px; border: 72px solid rgba(255,255,255,.27); border-radius: 50%; }
.ipn-category-hero__icon { position: relative; z-index: 1; display: grid; place-items: center; width: 150px; height: 150px; border-radius: 42px; background: rgba(255,255,255,.5); box-shadow: 0 15px 34px rgba(74,54,42,.1); }
.ipn-category-hero__icon svg { width: 94px; height: 94px; fill: none; stroke: currentColor; stroke-width: 3.3; stroke-linecap: round; stroke-linejoin: round; }
.ipn-category-hero__copy { position: relative; z-index: 1; max-width: 750px; }
.ipn-category-hero h1 { margin: 0; font: 600 clamp(4rem,7vw,7rem)/.82 "Cormorant Garamond", serif; letter-spacing: -.045em; }
.ipn-category-hero p { max-width: 680px; margin: 22px 0 0; font-size: clamp(1rem,1.4vw,1.22rem); font-weight: 700; line-height: 1.55; }

.ipn-category-switcher { display: flex; justify-content: center; gap: 10px; overflow-x: auto; padding: 20px 18px; background: #fff; border-bottom: 1px solid #eee6dc; }
.ipn-category-switcher a { flex: 0 0 auto; padding: 9px 17px; border: 1px solid #ded4ca; border-radius: 999px; font-weight: 800; transition: background .25s, transform .25s; }
.ipn-category-switcher a:hover,
.ipn-category-switcher a.is-current { background: #f0d5c4; border-color: transparent; transform: translateY(-2px); }

.ipn-archive { max-width: 1260px; margin: 0 auto; padding: 74px 30px 110px; }
.ipn-archive-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 36px; }
.ipn-archive-head h2,
.ipn-all-head h2 { margin: 0; font: 600 clamp(2.8rem,5vw,4.8rem)/.95 "Cormorant Garamond", serif; letter-spacing: -.04em; }
.ipn-archive-head p { max-width: 410px; margin: 0; color: #6f665f; line-height: 1.6; }
.ipn-empty { padding: 28px; border: 1px solid #e2d8ce; border-radius: 22px; background: #fff; }
.ipn-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 46px; }
.ipn-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; padding: 8px 13px; border: 1px solid #d8ccc1; border-radius: 999px; background: #fff; font-weight: 800; }
.ipn-pagination .current { background: var(--ipn-cake); border-color: transparent; }

.ipn-all-page { background: #fbf7f1; }
.ipn-all-hero { padding: 58px clamp(24px,10vw,150px) 52px; background: linear-gradient(115deg,#f4e2d6,#fff7e8 46%,#e2eee5); border-bottom: 1px solid #eadfd4; }
.ipn-all-hero h1 { max-width: 820px; margin: 8px 0 14px; font: 600 clamp(3.7rem,7vw,7rem)/.86 "Cormorant Garamond", serif; letter-spacing: -.045em; }
.ipn-all-hero p { max-width: 650px; margin: 0; color: #625952; font-size: 1.08rem; line-height: 1.62; }
.ipn-all-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.ipn-all-head > span { padding: 8px 14px; border: 1px solid #d9cdc1; border-radius: 999px; color: #6d6259; font-size: .86rem; font-weight: 800; }

.ipn-single-shell { width: 100%; max-width: 1220px; margin: 0 auto; padding: 54px 30px 110px; }
.ipn-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 38px; color: #756b64; font-size: .9rem; }
.ipn-breadcrumb a { text-decoration: underline; text-underline-offset: 4px; }
.ipn-article {
	display: block !important;
	position: static !important;
	clear: both !important;
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}
.ipn-article::before,
.ipn-article::after { content: none !important; display: none !important; }
.ipn-article-head { width: 100%; max-width: 980px; margin: 0 auto 38px; text-align: center; }
.ipn-article-head h1 { margin: 10px 0 20px; font: 600 clamp(3.6rem,7vw,7rem)/.87 "Cormorant Garamond", serif; letter-spacing: -.045em; text-wrap: balance; }
.ipn-article-meta { display: flex; justify-content: center; gap: 18px; color: #6f665f; font-size: .92rem; }
.ipn-article-content { clear: both; float: none; width: 100%; max-width: 1040px; margin: 0 auto; padding: 0; color: #2f2b27; font-family: "Cormorant Garamond", serif; font-size: clamp(1.3rem,2vw,1.55rem); line-height: 1.72; }
.ipn-article-content .post-content,
.ipn-article-content .entry-content {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}
.ipn-article-content > p,
.ipn-article-content > ul,
.ipn-article-content > ol,
.ipn-article-content > blockquote,
.ipn-article-content > h2,
.ipn-article-content > h3 { max-width: 900px; margin-left: auto; margin-right: auto; }
.ipn-article-content p { margin-top: 0; margin-bottom: 1.35em; }
.ipn-article-content > p:first-of-type::first-letter { float: left; margin: 7px 8px 0 0; color: var(--ipn-terracotta); font-size: 4.6rem; font-weight: 600; line-height: .7; }
.ipn-article-content img { border-radius: 22px; }
.ipn-article-content > figure:first-of-type,
.ipn-article-content > p:first-child:has(img) { max-width: 100%; margin: 0 0 50px; }
.ipn-article-content > figure:first-of-type img,
.ipn-article-content > p:first-child:has(img) img { width: 100%; max-height: 650px; aspect-ratio: 16/9; object-fit: cover; border-radius: 34px; box-shadow: 0 18px 45px rgba(67,48,36,.13); }
.ipn-article-content .gallery { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 42px 0 !important; }
.ipn-article-content .gallery-item { float: none !important; width: auto !important; margin: 0 !important; }
.ipn-article-content .gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 0 !important; }
.ipn-article-footer { max-width: 900px; margin: 20px auto 0; }
.ipn-article-footer .ipn-pill-link { margin-left: 0; }

.ipn-standard-shell { min-height: 60vh; padding: 70px 24px 110px; background: var(--ipn-soft); }
.ipn-standard-page { max-width: 900px; margin: 0 auto; padding: clamp(28px,5vw,64px); background: #fff; border-radius: 30px; box-shadow: var(--ipn-shadow); }
.ipn-standard-page h1 { margin: 8px 0 30px; font: 600 clamp(3.2rem,6vw,5.5rem)/.9 "Cormorant Garamond", serif; letter-spacing: -.04em; }
.ipn-standard-content { font-size: 1.1rem; line-height: 1.7; }

.ipn-footer { display: flex; justify-content: space-between; gap: 20px; padding: 46px clamp(24px,8vw,132px); background: #6b5b52; color: #fff; }
.ipn-footer strong { font: 600 1.8rem/1 "Cormorant Garamond", serif; }

@keyframes ipn-copy-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ipn-menu-pop { from { opacity: 0; transform: translateY(15px) scale(.97); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
	.ipn-nav--desktop { display: none; }
	.ipn-mobile-menu { display: block; }
	.ipn-mobile-menu summary { list-style: none; padding: 9px 14px; border: 1px solid #d8c9bc; border-radius: 999px; font-weight: 800; cursor: pointer; }
	.ipn-mobile-menu summary::-webkit-details-marker { display: none; }
	.ipn-nav--mobile { position: absolute; right: 0; top: 50px; display: grid; min-width: 225px; padding: 10px; background: #fffdf8; border: 1px solid #e4d9ce; border-radius: 18px; box-shadow: 0 16px 38px rgba(52,40,31,.18); }
	.ipn-nav--mobile a { padding: 11px 13px; border-radius: 10px; }
	.ipn-nav--mobile a:hover { background: #f3ece3; }
	.ipn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ipn-home-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 800px; margin: 0 auto; }
}

@media (max-width: 700px) {
	.ipn-header { min-height: 72px; padding-inline: 20px; }
	.ipn-brand { font-size: clamp(1.75rem,8vw,2.25rem); }
	.ipn-home-hero { min-height: 420px; padding: 34px 18px 145px; }
	.ipn-home-hero__image { height: 58%; top: auto; object-position: center; }
	.ipn-home-hero::after { inset: 0; background: linear-gradient(#faf4ea 0,rgba(250,244,234,.87) 52%,rgba(250,244,234,0) 72%); }
	.ipn-home-hero h1 { font-size: clamp(2.75rem,12vw,4rem); }
	.ipn-home-hero p { margin-top: 17px; font-size: 1rem; }
	.ipn-home-categories { grid-template-columns: 1fr 1fr; padding: 24px 18px 58px; gap: 14px; }
	.ipn-home-category { min-height: 160px; padding: 18px 10px; border-radius: 31px; }
	.ipn-home-category svg { width: 66px; height: 66px; }
	.ipn-home-category strong { font-size: 1.7rem; }
	.ipn-latest { padding: 66px 18px 80px; }
	.ipn-section-title { margin-bottom: 30px; }
	.ipn-grid { grid-template-columns: 1fr; }
	.ipn-card__link { display: grid; height: auto; grid-template-columns: minmax(125px,.82fr) 1.18fr; align-items: stretch; }
	.ipn-card__media { position: relative; min-height: 100%; }
	.ipn-card__media > img,
	.ipn-card__media > .ipn-image-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
	.ipn-card__body { padding: 18px 17px 20px; }
	.ipn-card h2 { font-size: 1.65rem; }
	.ipn-card p { display: none; }
	.ipn-card__open { margin-top: 12px; font-size: .86rem; }
	.ipn-category-hero { grid-template-columns: 1fr; gap: 18px; min-height: 0; padding: 38px 22px 44px; text-align: center; }
	.ipn-category-hero__icon { width: 98px; height: 98px; margin: auto; border-radius: 30px; }
	.ipn-category-hero__icon svg { width: 62px; height: 62px; }
	.ipn-category-hero h1 { font-size: clamp(3.6rem,18vw,5.2rem); }
	.ipn-category-hero p { margin-top: 14px; }
	.ipn-category-switcher { justify-content: flex-start; }
	.ipn-archive { padding: 52px 18px 78px; }
	.ipn-archive-head,
	.ipn-all-head { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 27px; }
	.ipn-all-hero { padding: 40px 22px 36px; }
	.ipn-all-hero h1 { font-size: clamp(3.5rem,18vw,5rem); }
	.ipn-single-shell { padding: 34px 18px 78px; }
	.ipn-article,
	.ipn-article-head,
	.ipn-article-content,
	.ipn-article-content > p,
	.ipn-article-content > ul,
	.ipn-article-content > ol,
	.ipn-article-content > blockquote,
	.ipn-article-content > h2,
	.ipn-article-content > h3 { width: 100% !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
	.ipn-breadcrumb { margin-bottom: 28px; }
	.ipn-article-head h1 { font-size: clamp(3.2rem,15vw,5rem); }
	.ipn-article-meta { gap: 10px; flex-wrap: wrap; }
	.ipn-article-content > figure:first-of-type img,
	.ipn-article-content > p:first-child:has(img) img { aspect-ratio: 4/3; border-radius: 22px; }
	.ipn-article-content .gallery { gap: 10px; }
	.ipn-footer { flex-direction: column; padding: 34px 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.ipn-site *,
	.ipn-site *::before,
	.ipn-site *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
