/*
Theme Name: Custom Auto Theme
Author: System
Version: 1.0
*/
:root { --bg: #f8f7f4; --text: #1f1f1f; --accent: #3a5a40; --line: #dad7cd; --muted: #7a7570; --font-head: 'Playfair Display', 'Playfair', Georgia, serif; --font-body: 'EB Garamond', Garamond, 'Times New Roman', serif; } @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap'); *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html { scroll-behavior: smooth; font-size: 16px; } body { background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 1.125rem; line-height: 1.75; -webkit-font-smoothing: antialiased; } img { max-width: 100%; height: auto; display: block; } a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s ease; } a:hover { color: var(--accent); } hr { border: none; border-top: 1px solid var(--line); margin: 2.5rem 0; } /* HEADER */ .site-header { border-bottom: 1px solid var(--line); padding: 0 2rem; background: var(--bg); position: sticky; top: 0; z-index: 100; } .header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; } .site-logo { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; text-decoration: none; color: var(--text); } .site-nav { display: flex; gap: 2rem; list-style: none; } .site-nav a { font-family: var(--font-body); font-size: 0.95rem; text-decoration: none; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); transition: color 0.2s; } .site-nav a:hover { color: var(--accent); } .burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; } .burger span { display: block; width: 24px; height: 1px; background: var(--text); transition: all 0.3s; } .mobile-nav { display: none; } @media (max-width: 768px) { .burger { display: flex; } .site-nav { display: none; } .mobile-nav { display: none; background: var(--bg); border-top: 1px solid var(--line); padding: 1.5rem 2rem; } .mobile-nav.open { display: flex; flex-direction: column; gap: 1.2rem; } .mobile-nav a { font-family: var(--font-body); font-size: 1.1rem; text-decoration: none; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); } } /* LAYOUT */ .container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; } .section { padding: 4rem 0; } /* HERO */ .hero { padding: 5rem 2rem 4rem; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 340px; gap: 6rem; align-items: start; border-bottom: 1px solid var(--line); } .hero-label { font-family: var(--font-body); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 1.5rem; } .hero-title { font-family: var(--font-head); font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 2rem; } .hero-title em { font-style: italic; color: var(--accent); } .hero-cta { display: inline-block; font-family: var(--font-body); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--bg); background: var(--accent); padding: 0.8rem 2rem; text-decoration: none; transition: opacity 0.2s; margin-top: 1rem; } .hero-cta:hover { opacity: 0.85; color: var(--bg); } .hero-aside { padding-top: 0.5rem; border-left: 1px solid var(--line); padding-left: 2.5rem; } .hero-aside p { font-family: var(--font-body); font-size: 1.05rem; line-height: 1.7; color: var(--muted); margin-bottom: 1.5rem; } .hero-aside .rubrica-tag { display: inline-block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 1px; } @media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 2.5rem; } .hero-aside { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 2rem; } } /* ARTICLE LAYOUT 1 — grande con immagine sopra */ .art-block-full { max-width: 1200px; margin: 0 auto; padding: 4rem 2rem; border-bottom: 1px solid var(--line); } .art-block-full .art-img { width: 100%; height: 460px; object-fit: cover; margin-bottom: 2.5rem; } .art-block-full .art-meta { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.8rem; } .art-block-full .art-title { font-family: var(--font-head); font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; line-height: 1.15; margin-bottom: 1.2rem; } .art-block-full .art-excerpt { font-family: var(--font-body); font-size: 1.1rem; color: var(--muted); max-width: 680px; line-height: 1.7; } .art-block-full .art-link { display: inline-block; margin-top: 1.5rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; transition: opacity 0.2s; } .art-block-full .art-link:hover { opacity: 0.7; } /* ARTICLE LAYOUT 2 — narrow + aside */ .art-with-aside { max-width: 1200px; margin: 0 auto; padding: 4rem 2rem; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 300px; gap: 5rem; align-items: start; } .art-with-aside .art-col .art-meta { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.8rem; } .art-with-aside .art-col .art-title { font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; line-height: 1.18; margin-bottom: 1.2rem; } .art-with-aside .art-col .art-excerpt { font-family: var(--font-body); font-size: 1.05rem; color: var(--muted); line-height: 1.7; } .art-with-aside .art-col .art-link { display: inline-block; margin-top: 1.5rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; } .art-with-aside .art-col .art-link:hover { opacity: 0.7; } /* ASIDE WIDGET */ .aside-widget { border-left: 1px solid var(--line); padding-left: 2rem; } .aside-widget .widget-title { font-family: var(--font-head); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 1.2rem; border-bottom: 1px solid var(--line); padding-bottom: 0.6rem; } .nota-del-giorno { font-family: var(--font-head); font-style: italic; font-size: 1.1rem; line-height: 1.6; color: var(--text); margin-bottom: 1.8rem; } .letti-ora { list-style: none; margin-bottom: 1.8rem; } .letti-ora li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; } .letti-ora li a { text-decoration: none; color: var(--text); line-height: 1.4; } .letti-ora li a:hover { color: var(--accent); } .tag-cloud { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.8rem; color: var(--muted); } .tag-cloud span::after { content: ' ·'; } .tag-cloud span:last-child::after { content: ''; } @media (max-width: 900px) { .art-with-aside { grid-template-columns: 1fr; } .aside-widget { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 2rem; } } /* ARTICLE LAYOUT 3 — split testo/immagine */ .art-split { max-width: 1200px; margin: 0 auto; padding: 4rem 2rem; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; } .art-split .art-text .art-meta { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.8rem; } .art-split .art-text .art-title { font-family: var(--font-head); font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 600; line-height: 1.2; margin-bottom: 1.2rem; } .art-split .art-text .art-excerpt { font-family: var(--font-body); font-size: 1.05rem; color: var(--muted); line-height: 1.7; } .art-split .art-text .art-link { display: inline-block; margin-top: 1.5rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; } .art-split .art-img-col img { width: 100%; height: 380px; object-fit: cover; } @media (max-width: 900px) { .art-split { grid-template-columns: 1fr; gap: 2rem; } .art-split .art-img-col img { height: 260px; } } /* SUBSCRIPTION */ .subscribe-section { max-width: 1200px; margin: 0 auto; padding: 5rem 2rem; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; } .subscribe-section h2 { font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 600; line-height: 1.2; } .subscribe-section p { margin-top: 1rem; color: var(--muted); font-size: 1rem; } .subscribe-form { display: flex; flex-direction: column; gap: 1rem; } .subscribe-form input[type="email"] { border: none; border-bottom: 1px solid var(--text); background: transparent; padding: 0.8rem 0; font-family: var(--font-body); font-size: 1rem; color: var(--text); outline: none; transition: border-color 0.2s; } .subscribe-form input[type="email"]:focus { border-color: var(--accent); } .subscribe-form input[type="email"]::placeholder { color: var(--muted); } .subscribe-form button { align-self: flex-start; background: var(--accent); color: var(--bg); border: none; padding: 0.85rem 2.2rem; font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; cursor: pointer; transition: opacity 0.2s; min-height: 44px; } .subscribe-form button:hover { opacity: 0.85; } @media (max-width: 768px) { .subscribe-section { grid-template-columns: 1fr; gap: 2rem; } } /* BLOCKQUOTE */ blockquote { border-left: 3px solid var(--accent); margin: 2.5rem 0; padding: 0.5rem 0 0.5rem 2rem; font-family: var(--font-head); font-style: italic; font-size: 1.3rem; line-height: 1.55; color: var(--text); } blockquote cite { display: block; margin-top: 0.8rem; font-family: var(--font-body); font-style: normal; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); } /* RUBRIC STRIP */ .rubric-strip { max-width: 1200px; margin: 0 auto; padding: 2rem 2rem; display: flex; gap: 3rem; border-bottom: 1px solid var(--line); } .rubric-strip a { font-family: var(--font-body); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; text-decoration: none; color: var(--muted); transition: color 0.2s; } .rubric-strip a:hover { color: var(--accent); } .rubric-strip a.active { color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 2px; } /* ARTICLE PAGE */ .article-page { max-width: 1200px; margin: 0 auto; padding: 4rem 2rem; display: grid; grid-template-columns: 1fr 300px; gap: 6rem; } .article-body { } .article-body .art-tag { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 1rem; } .article-body h1 { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; line-height: 1.12; margin-bottom: 1.5rem; } .article-body .art-intro { font-size: 1.15rem; color: var(--muted); margin-bottom: 2.5rem; line-height: 1.7; border-bottom: 1px solid var(--line); padding-bottom: 2rem; } .article-body h2 { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; margin: 2.5rem 0 1rem; } .article-body p { margin-bottom: 1.5rem; } .article-body ul { margin: 1.5rem 0 1.5rem 1.5rem; } .article-body ul li { margin-bottom: 0.6rem; } .highlight-box { background: #eef2ee; border-left: 3px solid var(--accent); padding: 1.5rem 2rem; margin: 2.5rem 0; font-size: 1.05rem; } .article-disclaimer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); font-style: italic; } @media (max-width: 900px) { .article-page { grid-template-columns: 1fr; } } /* FOOTER */ .site-footer { border-top: 1px solid var(--line); padding: 3rem 2rem 2rem; margin-top: 2rem; } .footer-inner { max-width: 1200px; margin: 0 auto; } .footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap; } .footer-logo { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; text-decoration: none; color: var(--text); } .footer-links { display: flex; gap: 2rem; flex-wrap: wrap; } .footer-links a { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none; color: var(--muted); transition: color 0.2s; } .footer-links a:hover { color: var(--accent); } .footer-disclaimer { font-size: 0.82rem; color: var(--muted); line-height: 1.7; border-top: 1px solid var(--line); padding-top: 1.5rem; } .footer-copy { margin-top: 1rem; font-size: 0.78rem; color: var(--muted); } /* COOKIES BANNER */ .cookie-banner-wrap { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999; max-width: 340px; } #cookie-check { display: none; } #cookie-check:checked ~ .cookie-banner { display: none; } .cookie-banner { background: var(--text); color: var(--bg); padding: 1.5rem; font-size: 0.88rem; line-height: 1.6; } .cookie-banner p { margin-bottom: 1rem; } .cookie-banner a { color: #a8c5a0; } .cookie-actions { display: flex; gap: 1rem; flex-wrap: wrap; } .cookie-btn { padding: 0.5rem 1.2rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; cursor: pointer; border: none; font-family: var(--font-body); min-height: 44px; transition: opacity 0.2s; } .cookie-btn.accept { background: var(--accent); color: var(--bg); } .cookie-btn.reject { background: transparent; color: var(--bg); border: 1px solid #555; } .cookie-btn:hover { opacity: 0.8; } /* SUCCESS / POLICY / TERMS / COOKIES PAGES */ .simple-page { max-width: 760px; margin: 6rem auto; padding: 0 2rem; } .simple-page h1 { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; margin-bottom: 2rem; } .simple-page h2 { font-family: var(--font-head); font-size: 1.4rem; margin: 2rem 0 0.8rem; } .simple-page p { margin-bottom: 1.2rem; color: var(--muted); } .simple-page a { color: var(--accent); } .back-home { display: inline-block; margin-top: 2.5rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; } /* 404 */ .page-404 { max-width: 760px; margin: 8rem auto; padding: 0 2rem; text-align: center; } .page-404 .num { font-family: var(--font-head); font-size: 8rem; font-weight: 700; line-height: 1; color: var(--line); } .page-404 h1 { font-family: var(--font-head); font-size: 1.8rem; margin: 1rem 0; } .page-404 p { color: var(--muted); margin-bottom: 2rem; } .page-404 .art-links { display: flex; flex-direction: column; gap: 0.8rem; align-items: center; } .page-404 .art-links a { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; } /* ANIMATIONS */ @keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } } .hero-title { animation: fadeUp 0.7s ease both; } .hero-label { animation: fadeUp 0.5s ease both; } .hero-aside { animation: fadeUp 0.9s ease 0.15s both; } .art-block-full { animation: fadeUp 0.6s ease 0.1s both; } /* UTILITY */ .text-muted { color: var(--muted); } .section-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 1rem; } .mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; }